/* Reset e configuração base */
body {
    margin: 0;
    padding: 0;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    transition: background-color 0.3s ease;
}

/* Modo claro */
body[data-theme="light"] {
    background-color: #f5f5f5;
}

/* Switch de tema */
.switch {
    font-size: 17px;
    position: fixed;
    top: 20px;
    right: 20px;
    display: inline-block;
    width: 3.5em;
    height: 2em;
    z-index: 1000;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    box-shadow: inset 2px 5px 10px rgba(0,0,0,0.3);
    transition: .4s;
    border-radius: 5px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 1.4em;
    width: 0.1em;
    border-radius: 0px;
    left: 0.3em;
    bottom: 0.3em;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #171717;
    box-shadow: inset 2px 5px 10px rgb(0, 0, 0);
}

input:checked + .slider:before {
    transform: translateX(2.8em) rotate(360deg);
}

/* Container principal */
.container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px;
}

/* Wrapper do botão com indicador */
.btn-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Indicador de status */
.status-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
    transition: all 0.3s ease;
}

.status-indicator.online {
    background-color: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.status-indicator.offline {
    background-color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.status-indicator.checking {
    background-color: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
    animation: pulse 1.5s ease-in-out infinite;
}

/* Animação de pulsação */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Botões */
.btn {
    background-color: #fff;
    color: #000;
    border: none;
    padding: 20px 40px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 250px;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

body[data-theme="light"] .btn {
    background-color: #000;
    color: #fff;
}

body[data-theme="light"] .btn:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}