/* Arquivo: tema.css */
body.light-mode { 
    --bg-dark: #f4f6f9; 
    --bg-sidebar: #ffffff; 
    --bg-card: #ffffff; 
    --text-main: #333333; 
    --text-muted: #6c757d; 
    --border-color: #dee2e6; 
}

/* Força os textos principais a ficarem escuros no modo claro */
body.light-mode .topbar h2,
body.light-mode .section-header,
body.light-mode .sidebar-header,
body.light-mode .card-number,
body.light-mode .menu-toggle,
body.light-mode .table-row-custom span[style*="color: white;"] {
    color: var(--text-main) !important;
}

body.light-mode .app-card:hover { 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
}

/* ========================================================================= */
/* CORREÇÕES PARA FORÇAR O MENU LATERAL A FICAR CLARO EM TODAS AS PÁGINAS */
/* ========================================================================= */
body.light-mode .sidebar,
body.light-mode .menu-list,
body.light-mode .submenu {
    background-color: var(--bg-sidebar) !important; /* Força o fundo branco */
}

body.light-mode .menu-item {
    color: var(--text-main) !important;
    background-color: transparent !important; /* Tira qualquer fundo preto residual */
}

body.light-mode .menu-item:hover, 
body.light-mode .menu-item.active { 
    background-color: #f8f9fa !important; 
    color: var(--accent) !important; 
}

body.light-mode .menu-category {
    color: var(--text-muted) !important;
}
/* ========================================================================= */

.btn-theme-toggle {
    background: none; 
    border: none; 
    color: var(--text-main); 
    font-size: 20px; 
    cursor: pointer; 
    margin-right: 15px; 
    transition: 0.3s;
}

.btn-theme-toggle:hover { 
    color: var(--accent); 
    transform: scale(1.1); 
}