/* Dark theme overrides — activated via data-bs-theme="dark" on <html> */
[data-bs-theme="dark"] {
    --bs-body-bg: #1a1d21;
    --bs-body-color: #dee2e6;
    --bs-card-bg: #212529;
    --bs-border-color: #373b3e;
}

[data-bs-theme="dark"] .sidebar {
    background: #111318 !important;
}

[data-bs-theme="dark"] .top-row {
    background-color: #111318 !important;
}

[data-bs-theme="dark"] .nav-scrollable {
    background-color: #111318 !important;
}

[data-bs-theme="dark"] .table-dark th {
    background-color: #0d1117 !important;
}

[data-bs-theme="dark"] .card {
    background-color: var(--bs-card-bg);
    border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .modal-content {
    background-color: #212529;
    color: #dee2e6;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: #2b3035;
    border-color: #495057;
    color: #dee2e6;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background-color: #343a40;
    border-color: #6c757d;
    color: #f8f9fa;
}

[data-bs-theme="dark"] .table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.05);
    color: #dee2e6;
}

[data-bs-theme="dark"] .table-secondary {
    --bs-table-bg: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .alert-info {
    background-color: #1a3550;
    border-color: #2a5580;
    color: #9ec5e8;
}

[data-bs-theme="dark"] .text-muted {
    color: #8b949e !important;
}

/* Dashboard chart cards */
[data-bs-theme="dark"] .dashboard-chart-card {
    background: #1e2128;
    border-color: rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .dashboard-chart-card:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .dashboard-chart-card .card-header {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .dashboard-summary-card {
    background: #1e2128;
}

[data-bs-theme="dark"] .dashboard-summary-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .dashboard-stat-card {
    background: #1e2128;
    border-color: rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .dashboard-stat-card h6 {
    color: #8b949e;
}
