/* ========================================
   OVERRIDE PARA BOOTSTRAP DARK THEME
   ======================================== */

/* Sobrescrever cores do Bootstrap dark theme */
[data-bs-theme="dark"] {
    --bs-body-bg: #0a0a0a !important;
    --bs-body-bg-rgb: 10, 10, 10 !important;
    --bs-secondary-bg: #0f0f0f !important;
    --bs-secondary-bg-rgb: 15, 15, 15 !important;
    --bs-tertiary-bg: #1a1a1a !important;
    --bs-tertiary-bg-rgb: 26, 26, 26 !important;
    --bs-border-color: #2a2a2a !important;
}

/* Forçar cores do nosso tema em todos os elementos */
[data-bs-theme="dark"] body {
    background-color: #0a0a0a !important;
    color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .pc-sidebar {
    background-color: #0f0f0f !important;
}

[data-bs-theme="dark"] .pc-header {
    background-color: #0f0f0f !important;
}

[data-bs-theme="dark"] .card {
    background-color: #1a1a1a !important;
    border-color: #2a2a2a !important;
}

[data-bs-theme="dark"] .modern-stat-card,
[data-bs-theme="dark"] .stat-card,
[data-bs-theme="dark"] .report-card,
[data-bs-theme="dark"] .progress-card {
    background-color: #1a1a1a !important;
    border-color: #2a2a2a !important;
}

[data-bs-theme="dark"] .chart-summary,
[data-bs-theme="dark"] .chart-container,
[data-bs-theme="dark"] .weekly-chart,
[data-bs-theme="dark"] .chart-bars {
    background-color: #1a1a1a !important;
    border-color: #2a2a2a !important;
}

/* Forçar tema escuro em todos os elementos principais */
[data-bs-theme="dark"] body,
[data-bs-theme="dark"] html {
    background-color: #0a0a0a !important;
}

[data-bs-theme="dark"] .pc-sidebar,
[data-bs-theme="dark"] .pc-header,
[data-bs-theme="dark"] .pc-footer {
    background-color: #0f0f0f !important;
}

[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .modern-stat-card,
[data-bs-theme="dark"] .stat-card,
[data-bs-theme="dark"] .report-card,
[data-bs-theme="dark"] .progress-card,
[data-bs-theme="dark"] .chart-summary,
[data-bs-theme="dark"] .chart-container,
[data-bs-theme="dark"] .weekly-chart,
[data-bs-theme="dark"] .chart-bars {
    background-color: #1a1a1a !important;
    border-color: #2a2a2a !important;
}

/* Forçar cores específicas para elementos que ainda estão verdes */
[data-bs-theme="dark"] .modern-dashboard-container {
    background-color: #0a0a0a !important;
}

[data-bs-theme="dark"] .dashboard-header {
    background-color: #0f0f0f !important;
    border-color: #2a2a2a !important;
}

[data-bs-theme="dark"] .modern-stats-grid {
    background-color: #0a0a0a !important;
}

[data-bs-theme="dark"] .modern-stats-grid .modern-stat-card {
    background-color: #1a1a1a !important;
    border-color: #2a2a2a !important;
}

/* Forçar cores em todos os elementos que podem estar usando cores verdes */
[data-bs-theme="dark"] * {
    background-color: inherit !important;
}

[data-bs-theme="dark"] body {
    background-color: #0a0a0a !important;
}

[data-bs-theme="dark"] html {
    background-color: #0a0a0a !important;
}

/* Sobrescrever qualquer cor verde que possa estar sendo aplicada */
[data-bs-theme="dark"] [style*="#0f1b0f"],
[data-bs-theme="dark"] [style*="#1e2e1e"],
[data-bs-theme="dark"] [style*="#334a33"],
[data-bs-theme="dark"] [style*="#475a47"] {
    background-color: #1a1a1a !important;
    border-color: #2a2a2a !important;
}

