@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ========================================================= */
/* 1. VARIÁVEIS DE TEMA (FLAT UI / SAAS)                     */
/* ========================================================= */
:root {
    --primary: #3b82f6;       
    --primary-hover: #2563eb;
    --primary-dim: rgba(59, 130, 246, 0.15);
    
    --success: #10b981;       
    --success-dim: rgba(16, 185, 129, 0.15);
    
    --warning: #f59e0b;       
    --warning-dim: rgba(245, 158, 11, 0.15);
    
    --danger: #ef4444;        
    --danger-dim: rgba(239, 68, 68, 0.15);
    
    --sidebar-width: 260px;
}

[data-theme="dark"] {
    --bg-body: #0f1115;       
    --bg-panel: #1a1d24;      
    --bg-input: #272b36;      
    --text-main: #f8fafc;     
    --text-muted: #94a3b8;    
    --border-color: #2e3440;  
}

[data-theme="light"] {
    --bg-body: #f8fafc;       
    --bg-panel: #ffffff;      
    --bg-input: #f1f5f9;      
    --text-main: #0f172a;     
    --text-muted: #64748b;    
    --border-color: #e2e8f0;  
}

/* ========================================================= */
/* 2. RESET E ESTRUTURA GERAL (APP LAYOUT)                   */
/* ========================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }

.app-body {
    background-color: var(--bg-body); 
    color: var(--text-main); 
    height: 100vh; 
    overflow: hidden; 
    -webkit-font-smoothing: antialiased;
}

.app-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Utilitários Básicos */
.w-100 { width: 100% !important; }
.mb-6 { margin-bottom: 6px !important; }
.mb-10 { margin-bottom: 15px !important; }
.mt-6 { margin-top: 6px !important; }
.mt-10 { margin-top: 15px !important; }
.py-4 { padding-top: 15px !important; padding-bottom: 15px !important; }
.flex-1 { flex: 1; }
.flex-grow { flex-grow: 1; }
.flex-gap { display: flex; gap: 10px; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-column { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-white { color: #fff !important; }
.text-dark { color: #111 !important; }
.bold-text { font-weight: 700 !important; }
.small-text { font-size: 0.85rem !important; }
.bg-primary { background: var(--primary) !important; }
.bg-primary-dim { background: var(--primary-dim) !important; }
.bg-success { background: var(--success) !important; }
.bg-success-dim { background: var(--success-dim) !important; }
.bg-warning-dim { background: var(--warning-dim) !important; }
.bg-danger-dim { background: var(--danger-dim) !important; }
.border-success { border-color: var(--success) !important; }
.border-warning { border-color: var(--warning) !important; }
.border-danger { border-color: var(--danger) !important; }
.border-primary { border-color: var(--primary) !important; }

/* ========================================================= */
/* 3. SIDEBAR (MENU LATERAL) E TOPBAR                        */
/* ========================================================= */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-panel);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.sidebar-header {
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 25px;
    border-bottom: 1px solid var(--border-color);
    gap: 12px;
}
.sidebar-header h2 { font-size: 1.2rem; font-weight: 800; color: var(--text-main); letter-spacing: -0.5px; }
.sidebar-header h2 span { color: var(--primary); }
.logo-icon { width: 30px; height: 30px; background: var(--primary); border-radius: 8px; }
.mobile-close-btn { display: none; background: transparent; border: none; color: var(--text-muted); font-size: 1.2rem; cursor: pointer; margin-left: auto; }

.sidebar-nav {
    flex: 1;
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow-y: auto;
}
.nav-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); padding: 0 10px; margin-bottom: 5px; letter-spacing: 0.5px; }
.nav-item {
    display: flex; align-items: center; gap: 12px; padding: 12px 15px;
    background: transparent; border: none; border-radius: 10px;
    color: var(--text-muted); font-size: 0.95rem; font-weight: 600;
    cursor: pointer; transition: 0.2s; text-decoration: none;
}
.nav-item i { font-size: 1.1rem; width: 20px; text-align: center; }
.nav-item:hover { background: var(--bg-input); color: var(--text-main); }
.nav-item.active { background: var(--primary-dim); color: var(--primary); }

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: var(--bg-body);
}

.topbar {
    height: 80px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    flex-shrink: 0;
}
.mobile-menu-btn { display: none; background: transparent; border: none; color: var(--text-main); font-size: 1.3rem; cursor: pointer; }

.search-container {
    display: flex; align-items: center; background: var(--bg-input);
    border-radius: 12px; padding: 0 15px; width: 350px; max-width: 100%; border: 1px solid transparent; transition: 0.2s;
}
.search-container:focus-within { border-color: var(--primary); background: var(--bg-panel); }
.search-icon { color: var(--text-muted); margin-right: 10px; }
.search-select { background: transparent !important; border: none !important; padding: 12px 0 !important; width: 100%; box-shadow: none !important; }

.topbar-right { display: flex; align-items: center; gap: 20px; }
.user-profile { display: flex; align-items: center; gap: 15px; cursor: pointer; padding: 6px 12px; border-radius: 12px; transition: 0.2s; }
.user-profile:hover { background: var(--bg-input); }
.user-info { display: flex; flex-direction: column; text-align: right; }
.user-name { font-size: 0.9rem; font-weight: 700; color: var(--text-main); }
.user-role { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); }
.avatar { width: 40px; height: 40px; border-radius: 10px; display: flex; justify-content: center; align-items: center; font-weight: 700; font-size: 1rem; }

/* ========================================================= */
/* 4. TELAS DO SISTEMA E DASHBOARD GERAL                     */
/* ========================================================= */
.tela-sistema { display: none; padding: 30px; animation: fadeIn 0.3s ease; }
.tela-sistema.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.page-header { margin-bottom: 30px; }
.page-header h1 { font-size: 1.8rem; font-weight: 800; color: var(--text-main); letter-spacing: -0.5px; }
.page-header p { font-size: 0.95rem; color: var(--text-muted); margin-top: 4px; }

/* Cards Dashboard */
.dashboard-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 30px; }
.dash-card { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 16px; padding: 25px; display: flex; align-items: center; gap: 20px; transition: 0.3s; }
.dash-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.dash-card-icon { width: 55px; height: 55px; border-radius: 14px; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; flex-shrink: 0; }
.dash-card-info h3 { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.dash-card-info h2 { font-size: 1.8rem; font-weight: 800; color: var(--text-main); letter-spacing: -1px; }

/* Tabela de Vencimentos */
.table-responsive { width: 100%; overflow-x: auto; }
.table-flat { width: 100%; border-collapse: collapse; min-width: 600px; }
.table-flat th { text-align: left; padding: 15px; font-size: 0.8rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border-color); }
.table-flat td { padding: 15px; border-bottom: 1px solid var(--border-color); font-size: 0.95rem; color: var(--text-main); vertical-align: middle; }
.table-flat tbody tr:hover { background: var(--bg-input); }
.table-flat td strong { font-weight: 700; }

/* ========================================================= */
/* 5. TELA DE CRM E AVALIAÇÃO (COMPATIBILIDADE)              */
/* ========================================================= */
.nav-tabs-container { display: flex; background: var(--bg-input); padding: 6px; border-radius: 12px; gap: 5px; width: fit-content; margin-bottom: 25px; }
.btn-tab { background: transparent; color: var(--text-muted); border-radius: 8px; padding: 10px 20px; font-size: 0.9rem; font-weight: 600; cursor: pointer; border: none; transition: 0.2s; }
.btn-tab:hover { color: var(--text-main); }
.btn-tab.active { background: var(--bg-panel); color: var(--primary); box-shadow: 0 2px 5px rgba(0,0,0,0.05); }

.main-container { display: grid; grid-template-columns: 530px 1fr; gap: 25px; align-items: start; }
.col-left { display: flex; flex-direction: column; gap: 25px; width: 100%; }

.panel { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 16px; padding: 25px; }
.panel-header h2 { font-size: 1.1rem; font-weight: 700; color: var(--text-main); margin-bottom: 20px; }
.section-divider { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin: 25px 0 15px 0; display: flex; align-items: center; width: 100%; }
.section-divider::after { content: ""; flex: 1; height: 1px; background: var(--border-color); margin-left: 15px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.input-flat-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }

input, select { 
    width: 100%; padding: 10px 14px; font-size: 0.9rem; color: var(--text-main); 
    background: var(--bg-input); border: 2px solid transparent; border-radius: 8px; outline: none; transition: 0.2s; 
}
input:focus, select:focus { border-color: var(--primary); background: var(--bg-panel); box-shadow: 0 0 0 4px var(--primary-dim); }
option { background-color: var(--bg-panel); color: var(--text-main); font-weight: 500; }

/* Componentes Visuais do Painel Direito */
.export-box { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 16px; padding: 25px; margin-bottom: 20px; width: 100%; overflow: hidden;}
.header-relatorio { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid var(--border-color); padding-bottom: 20px; margin-bottom: 20px; }
.subtitle-flat { font-size: 0.85rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.header-relatorio h2 { margin: 0; font-size: 1.8rem; font-weight: 800; letter-spacing: -1px; color: var(--text-main); }
.tag-flat { display: inline-block; padding: 6px 12px; border-radius: 8px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; background: var(--bg-input); color: var(--text-main); }

.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 15px; margin-bottom: 25px; }
.metric-card { background: var(--bg-input); border-radius: 12px; padding: 15px; text-align: center; border: 1px solid transparent; }
.metric-card .label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.metric-card .value { font-size: 1.6rem; font-weight: 800; color: var(--text-main); }

/* Badges (Deltas Visuais) */
.metric-card .delta { margin-top: 8px; display: flex; justify-content: center; }
.delta-badge { padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; }
.delta-badge.badge-success { background-color: var(--success-dim); color: var(--success); }
.delta-badge.badge-danger { background-color: var(--danger-dim); color: var(--danger); }
.delta-badge.badge-neutral { background-color: var(--bg-panel); border: 1px solid var(--border-color); color: var(--text-muted); }

.diagnosis-container { border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; margin-bottom: 25px; }
.diag-header-bar { background: var(--bg-input); padding: 12px 20px; border-bottom: 1px solid var(--border-color); }
.badge-status { padding: 6px 14px; border-radius: 8px; font-size: 0.85rem; font-weight: 700; background: var(--primary); color: #fff; }
.diag-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; padding: 20px; }
.diag-col h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.diag-col p { font-size: 0.9rem; line-height: 1.6; color: var(--text-main); }

.visual-area { display: flex; gap: 20px; flex-wrap: wrap; }
.chart-wrapper { flex: 1; min-width: 250px; height: 300px; background: var(--bg-input); border-radius: 12px; padding: 15px; display: flex; justify-content: center; align-items: center; }
.measures-wrapper { width: 280px; max-width: 100%; border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; background: var(--bg-panel); }

/* ========================================================= */
/* 6. BOTÕES, TOGGLES E ELEMENTOS INTERATIVOS                */
/* ========================================================= */
button { font-size: 0.9rem; font-weight: 600; border-radius: 8px; padding: 10px 18px; cursor: pointer; border: none; transition: 0.2s; text-align: center; display: inline-flex; justify-content: center; align-items: center; gap: 8px; }
button:active { transform: scale(0.98); }

.btn-flat-primary { background: var(--primary); color: #fff; }
.btn-flat-primary:hover { background: var(--primary-hover); }
.btn-flat-secondary { background: var(--bg-input); color: var(--text-main); }
.btn-flat-secondary:hover { background: var(--border-color); }
.btn-flat-outline { background: transparent; border: 2px solid var(--border-color); color: var(--text-main); }
.btn-flat-success { background: var(--success); color: #fff; }
.btn-flat-warning { background: var(--warning); color: #111; }
.btn-icon-flat { background: transparent; color: var(--text-muted); padding: 8px; border-radius: 8px; font-size: 1.1rem; }
.btn-icon-flat:hover { background: var(--bg-input); color: var(--text-main); }

/* Toggles */
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--border-color); border-radius: 24px; transition: .3s; }
.toggle-slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: var(--bg-panel); border-radius: 50%; transition: .3s; }
input:checked + .toggle-slider { background-color: var(--primary); }
input:checked + .toggle-slider:before { transform: translateX(20px); background-color: #fff; }

.editable-text, .editable-list li { transition: 0.2s; border-radius: 6px; padding: 4px; margin-left: -4px; border: 1px solid transparent; }
.editable-text[contenteditable="true"]:hover, .editable-list li[contenteditable="true"]:hover { background: var(--bg-input); cursor: text; border-color: var(--border-color); }
.editable-text[contenteditable="true"]:focus, .editable-list li[contenteditable="true"]:focus { outline: none; background: var(--bg-panel); border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-dim); }

/* ========================================================= */
/* 7. DIETA E TREINO                                         */
/* ========================================================= */
.refeicoes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; margin-top: 20px; }
.card-refeicao { background: var(--bg-input); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.card-ref-header { background: var(--primary-dim); padding: 12px; font-weight: 700; color: var(--primary); display: flex; justify-content: space-between; align-items: center; }
.card-ref-body { padding: 15px; font-size: 0.9rem; line-height: 1.6; flex-grow: 1; }

.builder-container { display: flex; flex-direction: column; gap: 15px; max-height: 600px; overflow-y: auto; padding-right: 8px; }
.builder-container::-webkit-scrollbar { width: 6px; }
.builder-container::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 10px; }
.treino-dia-card { background: var(--bg-input); border-radius: 12px; padding: 15px; }
.treino-dia-header input { width: 70%; font-weight: 700; font-size: 1.1rem; color: var(--primary); background: transparent; border: none; padding: 5px 0; border-bottom: 2px solid transparent; border-radius: 0; }
.treino-dia-header input:focus { border-bottom-color: var(--primary); box-shadow: none; }

.exercicio-linha { 
    display: grid; 
    grid-template-columns: 3fr 1fr 1fr 2.5fr 35px 35px; 
    gap: 6px; 
    margin-bottom: 8px; 
    align-items: center; 
}
.exercicio-linha input { 
    padding: 8px 6px; 
    font-size: 0.85rem; 
    background: var(--bg-panel); 
    border: 1px solid var(--border-color); 
}
.btn-del-ex { background: var(--danger-dim) !important; color: var(--danger) !important; width: 35px; height: 35px; padding: 0 !important; }
.btn-video-add { background: var(--bg-panel); border: 1px solid var(--border-color); color: var(--text-muted); width: 35px; height: 35px; padding: 0 !important; }

.tb-treino { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.tb-treino th { background: var(--bg-input); font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.tb-treino th, .tb-treino td { padding: 10px; border: 1px solid var(--border-color); text-align: left; vertical-align: middle; word-wrap: break-word; }
.dia-title { font-size: 1.1rem; font-weight: 800; color: var(--primary); padding: 8px 0; margin-top: 15px; margin-bottom: 8px; border-bottom: 2px solid var(--border-color); }

/* ========================================================= */
/* 8. RESPONSIVIDADE (DESKTOP E MOBILE)                      */
/* ========================================================= */
@media (max-width: 1300px) {
    .main-container { grid-template-columns: 1fr; }
    .col-left { order: 2; max-width: 100%; margin: 0 auto; width: 100%; } 
    .col-right { order: 1; }
}

@media (max-width: 900px) {
    .sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); width: 280px; box-shadow: 10px 0 30px rgba(0,0,0,0.2); }
    .sidebar.open { transform: translateX(0); }
    .mobile-close-btn, .mobile-menu-btn { display: block; }
    
    .topbar { padding: 0 20px; }
    .desktop-only { display: none !important; }
    .search-container { max-width: 200px; }
    
    .tela-sistema { padding: 20px 15px; }
    .form-grid { grid-template-columns: 1fr; }
    #nome, .full-width { grid-column: span 1 !important; }
    
    .header-relatorio { flex-direction: column; align-items: flex-start; }
    .visual-area { flex-direction: column; }
    .measures-wrapper { width: 100%; }
    
    .exercicio-linha { 
        grid-template-columns: 1fr 1fr !important; grid-template-rows: auto auto auto !important; 
        background: var(--bg-input); padding: 15px; border-radius: 12px; margin-bottom: 15px; 
    }
    .exercicio-linha input:nth-child(1), .exercicio-linha input:nth-child(4) { grid-column: span 2; }
}

/* ========================================================= */
/* 9. MODAIS (IMPRESSÃO E GIFS)                              */
/* ========================================================= */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: center; padding: 20px; z-index: 20000; }
.flat-modal { background: var(--bg-panel); border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.4); border: 1px solid var(--border-color); display: flex; flex-direction: column; overflow: hidden; }

.print-modal { width: 100%; max-width: 1100px; height: 85vh; display: flex; flex-direction: row; }
.modal-sidebar { width: 320px; background: var(--bg-panel); padding: 25px; border-right: 1px solid var(--border-color); display: flex; flex-direction: column; flex-shrink: 0; overflow-y: auto; }
.modal-header-side h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 5px; }
.modal-header-side p { color: var(--text-muted); font-size: 0.9rem; }
.modal-body-scroll { flex: 1; padding: 30px; background: var(--bg-body); overflow: auto; display: flex; justify-content: center; align-items: flex-start; }
.preview-shadow { box-shadow: 0 10px 30px rgba(0,0,0,0.3); border-radius: 8px; margin: 0 auto; max-width: 100%; transform-origin: top center; position: relative; }

.gif-modal { width: 100%; max-width: 900px; height: 85vh; display: flex; flex-direction: column; }
.modal-header { padding: 20px 25px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { font-size: 1.2rem; font-weight: 700; color: var(--text-main); margin: 0; }
.modal-search-area { padding: 20px 25px; background: var(--bg-body); border-bottom: 1px solid var(--border-color); display: flex; gap: 15px; flex-wrap: wrap; }
.gif-grid { flex: 1; overflow-y: auto; padding: 25px; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 20px; background: var(--bg-body); }
.gif-card { background: var(--bg-panel); border-radius: 10px; padding: 8px; cursor: pointer; text-align: center; border: 1px solid var(--border-color); }
.gif-card img, .gif-card video { width: 100%; height: 110px; object-fit: cover; border-radius: 6px; margin-bottom: 8px; }

.loading-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); z-index: 30000; justify-content: center; align-items: center; flex-direction: column; }
.spinner-flat { width: 50px; height: 50px; border: 4px solid var(--border-color); border-top: 4px solid var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 20px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

input[type=range] { -webkit-appearance: none; background: transparent; padding: 0; height: 6px; border-radius: 6px; background-color: var(--bg-input); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 20px; width: 20px; border-radius: 50%; background: var(--primary); cursor: pointer; border: 2px solid var(--bg-panel); box-shadow: 0 2px 5px rgba(0,0,0,0.2); margin-top: -7px; }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 6px; cursor: pointer; background: var(--bg-input); border-radius: 6px; }

/* ========================================================= */
/* 10. TEMAS PARA IMPRESSÃO EM PDF (EXTENDIDOS)              */
/* ========================================================= */
.tema-site-dark { background-color: #0f1115 !important; color: #f8fafc !important; }
.tema-site-dark .header-relatorio { border-bottom: 2px solid #3b82f6 !important; }
.tema-site-dark .metric-card { background: rgba(59, 130, 246, 0.05) !important; border: 1px solid rgba(59, 130, 246, 0.2) !important; }
.tema-site-dark .diag-header-bar { background: #1a1d24 !important; color: #fff !important; }

.tema-clean-blue { background-color: #ffffff !important; color: #0f172a !important; }
.tema-clean-blue .header-relatorio { border-bottom: 2px solid #2563eb !important; }
.tema-clean-blue .metric-card { background: #f1f5f9 !important; border: 1px solid #e2e8f0 !important; color: #0f172a !important; }
.tema-clean-blue .metric-card .value { color: #0f172a !important; }
.tema-clean-blue .diag-header-bar { background: #e2e8f0 !important; color: #0f172a !important; }

.tema-supreme-red { background-color: #0a0a0a !important; color: #ffffff !important; }
.tema-supreme-red .header-relatorio { border-bottom: 2px solid #ef4444 !important; }
.tema-supreme-red .metric-card { background: rgba(239, 68, 68, 0.05) !important; border: 1px solid rgba(239, 68, 68, 0.2) !important; }

.tema-dark-gold { background-color: #111111 !important; color: #eaeaea !important; }
.tema-dark-gold .header-relatorio { border-bottom: 2px solid #d4af37 !important; }
.tema-dark-gold .metric-card { background: rgba(212, 175, 55, 0.05) !important; border: 1px solid rgba(212, 175, 55, 0.2) !important; }

/* NOVOS TEMAS INSERIDOS AQUI */
.tema-neon-cyber { background-color: #09090b !important; color: #e2e8f0 !important; }
.tema-neon-cyber .header-relatorio { border-bottom: 2px solid #00f3ff !important; }
.tema-neon-cyber .metric-card { background: rgba(0, 243, 255, 0.05) !important; border: 1px solid rgba(0, 243, 255, 0.3) !important; }
.tema-neon-cyber .diag-header-bar { background: #18181b !important; color: #00f3ff !important; border-bottom: 1px solid rgba(0, 243, 255, 0.3) !important; }

.tema-eco-green { background-color: #f8fafc !important; color: #1e293b !important; }
.tema-eco-green .header-relatorio { border-bottom: 2px solid #10b981 !important; }
.tema-eco-green .metric-card { background: #ecfdf5 !important; border: 1px solid #10b981 !important; color: #064e3b !important; }
.tema-eco-green .metric-card .value { color: #064e3b !important; }
.tema-eco-green .diag-header-bar { background: #10b981 !important; color: #ffffff !important; }

.tema-minimal-bw { background-color: #ffffff !important; color: #111111 !important; }
.tema-minimal-bw .header-relatorio { border-bottom: 2px solid #000000 !important; }
.tema-minimal-bw .metric-card { background: #f3f4f6 !important; border: 1px solid #d1d5db !important; color: #111111 !important; }
.tema-minimal-bw .metric-card .value { color: #000000 !important; }
.tema-minimal-bw .diag-header-bar { background: #111111 !important; color: #ffffff !important; }