/* Botão de Tema */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 80px;
    height: 40px;
    background: linear-gradient(to right, #ffffff 50%, #000000 50%);
    border-radius: 20px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px;
    overflow: hidden;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.theme-toggle::before {
    content: '';
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    top: 3px;
    left: 4px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.theme-toggle .icon {
    width: 24px;
    height: 24px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.theme-toggle .sun-icon {
    color: #ffd700;
    margin-left: 8px;
}

.theme-toggle .moon-icon {
    color: #ffffff;
    margin-right: 8px;
}

/* Modo escuro ativo */
.theme-toggle[data-theme="dark"]::before {
    transform: translateX(40px);
    background-color: #000000;
}

/* Texto do modo */
.theme-toggle .mode-text {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    position: absolute;
    left: 10px;
    transition: opacity 0.3s ease;
}

.theme-toggle .dark-text {
    opacity: 0;
    right: 10px;
    left: auto;
}

.theme-toggle[data-theme="dark"] .light-text {
    opacity: 0;
}

.theme-toggle[data-theme="dark"] .dark-text {
    opacity: 1;
    color: #fff;
}

/* Animação de hover */
.theme-toggle:hover::before {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Acessibilidade */
.theme-toggle:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

/* Responsividade */
@media (max-width: 768px) {
    .theme-toggle {
        width: 60px;
        height: 30px;
        bottom: 15px;
        left: 15px;
    }
    
    .theme-toggle::before {
        width: 24px;
        height: 24px;
    }
    
    .theme-toggle .icon {
        width: 18px;
        height: 18px;
        font-size: 14px;
    }
    
    .theme-toggle[data-theme="dark"]::before {
        transform: translateX(30px);
    }
} 