/* =============================================================================
   🌓 BOTÃO DE ALTERNÂNCIA DE TEMA - Modern & Clean
   ============================================================================= */

.theme-toggle-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-toggle-btn {
    position: relative;
    width: 60px;
    height: 32px;
    background: var(--color-border);
    border-radius: 32px;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.theme-toggle-btn:hover {
    background: var(--color-border-light);
    transform: scale(1.05);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15),
                0 0 0 4px var(--color-focus);
}

.theme-toggle-btn:active {
    transform: scale(0.98);
}

/* Toggle slider */
.theme-toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.4s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25),
                inset 0 1px 1px rgba(255, 255, 255, 0.2);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-slider::before {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent);
}

/* Estado quando tema claro está ativo */
[data-theme="light"] .theme-toggle-slider {
    transform: translateX(28px);
}

/* Ícones dentro do toggle */
.theme-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--color-muted);
    transition: all 0.4s ease;
    z-index: 1;
    width: 18px;
    height: 18px;
    opacity: 0.6;
}

.theme-toggle-icon.sun {
    margin-left: 3px;
}

.theme-toggle-icon.moon {
    margin-right: 3px;
}

/* Destaque do ícone ativo */
[data-theme="dark"] .theme-toggle-icon.moon {
    color: var(--color-light);
    opacity: 0;
}

[data-theme="light"] .theme-toggle-icon.sun {
    color: var(--color-accent);
    opacity: 0;
}52px;
        height: 28px;
    }
    
    .theme-toggle-slider {
        width: 22px;
        height: 22px;
    }
    
    [data-theme="light"] .theme-toggle-slider {
        transform: translateX(24px);
    }
    
    .theme-toggle-icon {
        font-size: 12px;
        width: 16px;
        height: 16px;
    }
}

/* Animação de pulsação no hover - removida para ficar mais clean */
.theme-toggle-btn:hover .theme-toggle-slider {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3),
                inset 0 1px 1px rgba(255, 255, 255, 0.2)m: translateX(24px);
    }
    
    .theme-toggle-icon {
        font-size: 10px;
        width: 16px;
        height: 16px;
    }
}

/* Animação de pulsação no hover */
.theme-toggle-btn:hover .theme-toggle-slider {
    box-shadow: 0 0 0 4px var(--color-accent-hover);
    opacity: 0.8;
}

/* Acessibilidade - foco via teclado */
.theme-toggle-btn:focus {
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15),
                var(--glow-accent);
}

.theme-toggle-btn:focus:not(:focus-visible) {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Label opcional */
.theme-toggle-label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    font-weight: 500;
    user-select: none;
}

/* Variante grande para configurações */
.theme-toggle-container.large .theme-toggle-btn {
    width: 72px;
    height: 36px;
}

.theme-toggle-container.large .theme-toggle-slider {
    width: 30px;
    height: 30px;
}

.theme-toggle-container.large [data-theme="light"] .theme-toggle-slider {
    transform: translateX(36px);
}

.theme-toggle-container.large .theme-toggle-icon {
    font-size: 16px;
    width: 24px;
    height: 24px;
}
