* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #000000, #000000, #000000);
    overflow: hidden;
    position: relative;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    z-index: 10;
}

h1 {
    color: rgb(0, 0, 0);
    font-size: 2.8rem;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.subtitle {
    color: #fbff03;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.lamp-container {
    position: relative;
    width: 200px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.lamp {
    position: relative;
    margin: 0 auto;
    width: 70px;
    height: 160px;
    background: none;
    box-shadow: none;
}

.lamp-light {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 110px;
    background: radial-gradient(circle, #fffde4 60%, #fff9b0 100%);
    border-radius: 50%;
    filter: blur(14px);
    opacity: 0;
    z-index: 1;
    box-shadow: 0 0 48px 16px #fffbe6, 0 0 80px 32px #fff9b0;
    transition: opacity 0.5s, height 0.5s, filter 0.5s, background 0.5s;
}

.lamp.on .lamp-light {
    opacity: 1;
    height: 140px;
    background: radial-gradient(circle, #fffde4 60%, #fff9b0 100%, rgba(255,255,200,0.08) 100%);
    box-shadow: 0 0 96px 32px #fffbe6, 0 0 160px 64px #fff9b0;
    filter: blur(18px);
}

.lamp-bulb {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(180deg, #f8fafd 70%, #fffde4 100%);
    border-radius: 50%;
    box-shadow: 0 0 32px 8px #fffbe6, 0 0 60px 18px #fff9b0;
    z-index: 3;
    border: 2px solid #b0b0b0;
    opacity: 0.97;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: background 0.5s, box-shadow 0.5s, border 0.5s, opacity 0.5s;
}

.lamp.on .lamp-bulb {
    background: linear-gradient(180deg, #fffbe6 80%, #fff9b0 100%);
    box-shadow: 0 0 64px 24px #fffbe6, 0 0 120px 60px #fff9b0;
    border-color: #ffd966;
    opacity: 1;
}

.lamp-filament {
    position: absolute;
    bottom: 24px;
    left: 50%;
    width: 32px;
    height: 32px;
    transform: translateX(-50%);
    z-index: 4;
}

.lamp-filament::before,
.lamp-filament::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    width: 32px;
    height: 16px;
    left: 0;
    border: 2.5px solid #ffb300;
    border-bottom: none;
    border-top-color: #ffb300;
    border-left-color: transparent;
    border-right-color: transparent;
    top: 8px;
}

.lamp-filament::after {
    top: 0;
    border-top: none;
    border-bottom: 2.5px solid #ffb300;
    border-left: none;
    border-right: none;
}

.lamp.on .lamp-filament::before,
.lamp.on .lamp-filament::after {
    border-color: #ffd700;
    box-shadow: 0 0 8px 2px #fffbe6;
}

.lamp-body, .lamp-base {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    box-shadow: 0 2px 8px #888 inset;
    border: 2px solid #888;
}

.lamp-body {
    top: 75px;
    width: 28px;
    height: 28px;
    background: linear-gradient(180deg, #b0b0b0 60%, #888 100%);
    border-radius: 10px 10px 14px 14px / 12px 12px 16px 16px;
}

.lamp-base {
    bottom: 0;
    width: 28px;
    height: 24px;
    background: linear-gradient(160deg, #b0b0b0 60%, #888 100%);
    border-radius: 30% 30% 60% 60% / 40% 40% 100% 100%;
}

.lamp-base::after {
    content: "";
    display: block;
    position: absolute;
    left: 3px;
    bottom: 4px;
    width: 20px;
    height: 6px;
    background: repeating-linear-gradient(to right, #bbb 0 4px, #888 4px 8px);
    border-radius: 4px;
    opacity: 0.7;
}

.wall-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 90px;
    background: rgba(255,255,255,0.08);
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.18), 0 1px 2px #fff inset;
    border: 2px solid #ccc;
    cursor: pointer;
    transition: box-shadow 0.2s, background 0.3s;
}

.wall-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-toggle {
    position: absolute;
    left: 50%;
    top: 18px;
    transform: translateX(-50%);
    width: 36px;
    height: 54px;
    background: linear-gradient(160deg, #fafafa 60%, #d1d1d1 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10), 0 1px 2px #fff inset;
    border: 1.5px solid #bbb;
    transition: top 0.3s, background 0.3s;
    z-index: 2;
}

.wall-switch input:checked + .switch-toggle {
    top: 38px;
    background: linear-gradient(160deg, #c8ffc8 60%, #aaffaa 100%);
    box-shadow: 0 2px 16px 2px #aaffaa88;
}

.real-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 90px;
    cursor: pointer;
}

.real-switch input {
    position: absolute;
    width: 60px;
    height: 90px;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    left: 0;
    top: 0;
    margin: 0;
}

.real-switch svg {
    display: block;
    width: 60px;
    height: 90px;
    z-index: 1;
}

.switch-lever {
    transition: y 0.3s, fill 0.3s;
}

.real-switch input:checked + svg .switch-lever {
    y: 42px;
    fill: #c8ffc8;
}

.switch-svg .switch-btn {
    transition: y 0.25s, fill 0.25s;
}

.real-switch input:checked + .switch-svg .switch-btn {
    y: 48px;
    fill: #c8ffc8;
    stroke: #7ed957;
}

body.on::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: 200vw;
    height: 200vh;
    transform: translate(-50%, -55%);
    background: radial-gradient(circle, rgba(255,255,180,0.18) 0%, rgba(255,255,200,0.08) 60%, rgba(255,255,200,0) 100%);
    z-index: 0;
    pointer-events: none;
    filter: blur(0px);
    transition: opacity 0.7s;
    opacity: 1;
}

body::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: 200vw;
    height: 200vh;
    transform: translate(-50%, -55%);
    background: radial-gradient(circle, rgba(255,255,180,0) 0%, rgba(255,255,200,0) 100%);
    z-index: 0;
    pointer-events: none;
    filter: blur(0px);
    transition: opacity 0.7s;
    opacity: 0;
}

.lamp-halo {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 90px;
    pointer-events: none;
    opacity: 0;
    z-index: 2;
    background: radial-gradient(ellipse at center, rgba(255,255,180,0.22) 0%, rgba(255,255,200,0.08) 60%, rgba(255,255,200,0) 100%);
    filter: blur(10px);
    transition: opacity 0.6s;
}

.lamp.on ~ .lamp-halo {
    opacity: 1;
}

.switch-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.switch-label {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.switch {
    position: relative;
    display: inline-block;
    width: 120px;
    height: 60px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2c3e50;
    border-radius: 60px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 50px;
    width: 50px;
    left: 5px;
    bottom: 5px;
    background: linear-gradient(to bottom, #ecf0f1, #bdc3c7);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: .4s;
}

input:checked + .slider {
    background: linear-gradient(to bottom, #00c853, #009624);
    box-shadow: 0 0 10px rgba(0, 200, 83, 0.8);
}

input:checked + .slider:before {
    transform: translateX(60px);
    background: linear-gradient(to bottom, #ffffff, #ecf0f1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.status {
    margin-top: 20px;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50px;
    color: white;
    font-size: 1.4rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.5s ease;
}

.status.on {
    background: rgba(0, 200, 83, 0.3);
    color: #aaffaa;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.instructions {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 20px;
    font-size: 1rem;
    max-width: 80%;
    line-height: 1.6;
}

.decoration {
    position: absolute;
    font-size: 1.5rem;
    color: rgba(231, 5, 5, 0.1);
    z-index: 0;
}

.decoration:nth-child(1) { top: 10%; left: 5%; }
.decoration:nth-child(2) { top: 20%; right: 10%; }
.decoration:nth-child(3) { bottom: 15%; left: 15%; }
.decoration:nth-child(4) { bottom: 25%; right: 5%; }

@keyframes pulse {
    0% { opacity: 0.3; }
    50% { opacity: 0.6; }
    100% { opacity: 0.3; }
}

.pulse {
    animation: pulse 2s infinite;
}

@media (max-width: 500px) {
    h1 { font-size: 2.2rem; }
    .container { padding: 30px 20px; }
}
/* Adicione ao final do seu style.css */

@media (max-width: 700px) {
    .container {
        max-width: 98vw;
        padding: 20px 5px;
        gap: 24px;
    }
    .lamp-container {
        width: 140px;
        height: 210px;
    }
    .lamp {
        width: 50px;
        height: 110px;
    }
    .lamp-bulb,
    .lamp-light {
        width: 60px;
        height: 60px;
    }
    .lamp-body {
        width: 18px;
        height: 18px;
        top: 55px;
    }
    .lamp-base {
        width: 18px;
        height: 16px;
    }
    .lamp-filament {
        width: 20px;
        height: 20px;
        bottom: 12px;
    }
    .lamp-halo {
        width: 100px;
        height: 50px;
    }
    h1 {
        font-size: 1.4rem;
    }
    .instructions {
        font-size: 0.95rem;
    }
    .switch-svg {
        width: 40px;
        height: 60px;
    }
    .real-switch {
        width: 40px;
        height: 60px;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 10px 2px;
        gap: 12px;
    }
    .lamp-container {
        width: 90px;
        height: 120px;
    }
    h1 {
        font-size: 1rem;
    }
}
