/*
 * Dark mode overrides for the RPA admin theme.
 *
 * Bootstrap 5.3 already re-themes most components automatically via the
 * [data-bs-theme="dark"] attribute (body background, form controls, badges,
 * subtle bg/border/text utilities, dropdowns, tables, etc). These rules only
 * patch the pieces of this specific theme (styles.min.css) that use
 * hardcoded literal colors instead of Bootstrap's CSS variables, so they
 * don't flip on their own.
 */

[data-bs-theme="dark"] .app-header {
    background: #1a1d21;
    border-bottom: 1px solid #2b2f33;
}

[data-bs-theme="dark"] .left-sidebar {
    background-color: #1a1d21;
    border-right: 1px solid #2b2f33;
}

[data-bs-theme="dark"] .sidebar-link {
    color: #adb5bd;
}

[data-bs-theme="dark"] .nav-small-cap {
    color: #6c757d;
}

[data-bs-theme="dark"] .card {
    --bs-card-title-color: #e9ecef;
    --bs-card-subtitle-color: #adb5bd;
    --bs-card-border-color: #2b2f33;
    --bs-card-box-shadow: rgba(0, 0, 0, 0.5) 0px 2px 8px 0px;
}

[data-bs-theme="dark"] .table-light {
    --bs-table-color: #e9ecef;
    --bs-table-bg: #2b2f33;
    --bs-table-border-color: #3a3f44;
    --bs-table-striped-bg: #33383d;
    --bs-table-striped-color: #e9ecef;
    --bs-table-active-bg: #3a3f44;
    --bs-table-active-color: #e9ecef;
    --bs-table-hover-bg: #33383d;
    --bs-table-hover-color: #e9ecef;
}

[data-bs-theme="dark"] .text-body {
    color: #e9ecef !important;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb {
    background-color: #3a3f44;
}
