/**
 * Estilos para o toggle de tema (dark/light mode)
 */

/* Transição suave entre temas */
.theme-transition {
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease !important;
}

.theme-transition *:not(.no-transition) {
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease !important;
}

/* Botão de toggle de tema */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.theme-toggle:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
}

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

.theme-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.25);
}

/* Ícones do toggle */
.theme-toggle .theme-icon {
    font-size: 1.2rem;
    position: absolute;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-toggle .theme-icon.active {
    opacity: 1;
    transform: translateY(0);
}

/* Estilos específicos para o ícone do sol */
.theme-toggle .theme-icon-sun {
    color: var(--bs-warning);
}

/* Estilos específicos para o ícone da lua */
.theme-toggle .theme-icon-moon {
    color: var(--bs-light);
}

/* Versão flutuante (fixada na tela) */
.theme-toggle-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    background: var(--bs-dark);
    border: 2px solid var(--bs-border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

[data-bs-theme="light"] .theme-toggle-floating {
    background: var(--bs-white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.theme-toggle-floating:hover {
    transform: scale(1.05);
}

.theme-toggle-floating .theme-icon {
    font-size: 1.5rem;
}

/* Ajustes específicos para modo light */
[data-bs-theme="light"] {
    --custom-bg-dark: #f8f9fa;
    --custom-text: #212529;
}

/* Ajustes específicos para modo dark */
[data-bs-theme="dark"] {
    --custom-bg-dark: #212529;
    --custom-text: #f8f9fa;
}

/* Classes utilitárias para usar com os temas */
.bg-theme-gradient {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-secondary)) !important;
}