/* ===== THEME SWITCHER PARA LOGIN (flotante abajo derecha) ===== */
.login-page .theme-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    padding: 0 !important;
    border-top: none !important;
}

.login-page .theme-switcher .btn {
    background-color: var(--card-bg, white);
    border-color: var(--border-color, #dee2e6);
    color: var(--bs-body-color, #212529);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.login-page .theme-switcher .dropdown-menu {
    background-color: var(--card-bg, white);
    border-color: var(--border-color, #dee2e6);
}

/* ===== THEME SWITCHER PARA SIDEBAR (dentro del sidebar) ===== */
.sidebar .theme-switcher-full {
    margin-top: auto;
    flex-shrink: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1rem;
    display: block;
}

.sidebar .theme-btn-group {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.sidebar .theme-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar .theme-btn:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.sidebar .theme-btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* ===== VERSIÓN MINI (para mobile) ===== */
.theme-switcher-mini {
    display: none;
    padding: 0.5rem;
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar .theme-switcher-full {
        display: none;
    }
    .theme-switcher-mini {
        display: block;
        margin-left: auto;
    }
}

/* Tema oscuro para botones del sidebar */
[data-bs-theme="dark"] .sidebar .theme-btn {
    color: var(--light-color);
}

[data-bs-theme="dark"] .sidebar .theme-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

[data-bs-theme="dark"] .sidebar .theme-btn.active {
    background-color: var(--thunderbird);
    color: white;
}