/* 
 * Devaskara Nexus - Industrial Grade UI System v2.2
 * Full Dark Mode + Layout Polish
 */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --nexus-primary: #4f46e5;
    --nexus-primary-hover: #4338ca;
    --nexus-sidebar-bg: linear-gradient(180deg, #0f172a 0%, #16123a 100%);
    --nexus-sidebar-text: #94a3b8;
    --nexus-bg: #f4f7fb;
    --nexus-surface: #ffffff;
    --nexus-surface-2: #f8fafc;
    --nexus-border: #e2e8f0;
    --nexus-text: #1e293b;
    --nexus-text-muted: #64748b;
    --nexus-muted: #64748b;
    --nexus-input-bg: #ffffff;
    --nexus-input-border: #cbd5e1;
    --nexus-input-text: #0f172a;
    --nexus-input-placeholder: #94a3b8;
    --nexus-shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --nexus-shadow: 0 8px 30px rgba(0,0,0,0.04), 0 4px 10px rgba(0,0,0,0.02);
    --nexus-shadow-lg: 0 20px 40px rgba(0,0,0,0.08);
    --nexus-radius: 0.85rem;
    --tblr-font-sans-serif: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
}

/* ─── Dark Mode Token Overrides ─── */
[data-bs-theme="dark"] {
    --nexus-bg: #080c14;
    --nexus-surface: #111827;
    --nexus-surface-2: #1a2233;
    --nexus-border: #1e2d45;
    --nexus-text: #e2e8f0;
    --nexus-text-muted: #64748b;
    --nexus-muted: #64748b;
    --nexus-input-bg: #1a2233;
    --nexus-input-border: #2d3f5a;
    --nexus-input-text: #e2e8f0;
    --nexus-input-placeholder: #475569;
    --nexus-shadow: 0 4px 16px rgba(0,0,0,0.4);
    --nexus-shadow-lg: 0 20px 60px rgba(0,0,0,0.6);
    color-scheme: dark;
}

/* ─── Base ─── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--tblr-font-sans-serif);
    background-color: var(--nexus-bg) !important;
    color: var(--nexus-text) !important;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--nexus-text);
    font-weight: 700;
}

/* Form labels always inherit theme */
.form-label { 
    color: var(--nexus-text) !important; 
    font-size: 0.8rem; 
    font-weight: 600;
    margin-bottom: 0.4rem;
}
[data-bs-theme="dark"] .form-label { color: rgba(255, 255, 255, 0.7) !important; }

.form-control, .form-select {
    font-size: 0.85rem;
    padding: 0.55rem 0.85rem;
    border-radius: 0.6rem;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--nexus-text-muted);
    margin-top: 0.35rem;
}

/* ─── App Shell ─── */
.app-shell { display: flex; height: 100vh; overflow: hidden; }

/* ─── Sidebar ─── */
.app-sidebar {
    flex-shrink: 0;
    width: 240px;
    background: var(--nexus-sidebar-bg);
    display: flex;
    flex-direction: column;
    z-index: 100;
    padding: 0;
    transition: width 0.3s ease;
}

/* Logo */
.sidebar-logo {
    padding: 1.25rem 1.25rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 0.5rem;
}

.sidebar-logo .logo-mark {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(79,70,229,0.4);
}

.sidebar-logo .logo-mark i {
    font-size: 1.2rem;
}

.sidebar-logo h1 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.sidebar-logo h1 .brand-accent {
    color: #818cf8;
}

.sidebar-logo .brand-tagline {
    font-size: 0.58rem;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-top: 2px;
}

/* ─── Sidebar Nav ─── */
.sidebar-nav-container {
    flex: 1;
    overflow-y: auto;
    padding: 0 0.75rem;
    scrollbar-width: none;
}
.sidebar-nav-container::-webkit-scrollbar { display: none; }

.app-sidebar .nav-group { margin-bottom: 0.75rem !important; }

.nav-heading {
    font-size: 0.72rem !important;
    letter-spacing: 0.08em !important;
    text-transform: none;
    color: var(--nexus-sidebar-text) !important;
    opacity: 0.72;
    font-weight: 700;
    padding: 0.85rem 0.5rem 0.35rem;
    display: block;
}

.nav-link {
    margin: 1px 0 !important;
    padding: 0.52rem 0.75rem !important;
    border-radius: 0.6rem;
    font-weight: 500;
    font-size: 0.92rem;
    color: #94a3b8 !important;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    transition: all 0.15s ease;
}

.nav-link i {
    font-size: 0.95rem;
    width: 18px;
    text-align: center;
    opacity: 0.55;
    transition: all 0.15s ease;
}

.nav-link:hover {
    background: rgba(255,255,255,0.05);
    color: #e2e8f0 !important;
}
.nav-link:hover i { opacity: 0.9; }

.nav-link.active-link {
    background: linear-gradient(135deg, rgba(79,70,229,0.9), rgba(99,102,241,0.9)) !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(79,70,229,0.35);
}
.nav-link.active-link i { opacity: 1; }

/* Sidebar Footer */
.sidebar-footer {
    padding: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.btn-logout {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transition: background 0.15s ease;
    text-decoration: none;
}
.btn-logout:hover { background: rgba(239,68,68,0.1) !important; }
.border-white-subtle { border-color: rgba(255,255,255,0.06) !important; }

/* ─── Main Area ─── */
.app-main { flex-grow: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }

.app-header {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 0 1.5rem;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 90;
}

.app-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    background-color: var(--nexus-bg);
}

.app-footer {
    flex-shrink: 0;
    background: var(--nexus-surface);
    border-top: 1px solid var(--nexus-border);
    padding: 0.6rem 1.5rem;
    font-size: 0.75rem;
    color: var(--nexus-text-muted);
}

/* ─── Login View ─── */
.auth-page {
    min-height: 100vh;
    background: var(--nexus-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-wrap {
    width: 100%;
    max-width: 420px;
    padding: 1.5rem;
}
.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.auth-brand-icon {
    font-size: 2rem;
    color: #818cf8;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.7));
}
.auth-brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--nexus-text);
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.auth-brand-name span { color: #818cf8; }
.auth-brand-tag {
    font-size: 0.6rem;
    color: var(--nexus-text-muted);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.auth-card {
    background: var(--nexus-surface);
    border: 1px solid var(--nexus-border);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--nexus-shadow-lg);
}
.auth-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--nexus-text);
    text-align: center;
    margin: 0 0 1.5rem;
}
.auth-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--nexus-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.auth-footer {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--nexus-text-muted);
}

/* ─── Cards ─── */
.card {
    background-color: var(--nexus-surface) !important;
    border: 1px solid var(--nexus-border) !important;
    border-radius: var(--nexus-radius) !important;
    box-shadow: var(--nexus-shadow-sm) !important;
    margin-bottom: 1.25rem;
}
.card-body { padding: 1.25rem !important; }
.card-header { border-bottom: 1px solid var(--nexus-border) !important; padding: 1rem 1.25rem !important; background: transparent !important; }
.card-title { color: var(--nexus-text) !important; font-weight: 700; font-size: 0.95rem; margin-bottom: 0; }

/* ─── Dark Mode: Form Controls ─── */
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select,
[data-bs-theme="dark"] textarea.form-control,
[data-bs-theme="dark"] input.form-control {
    background-color: var(--nexus-input-bg) !important;
    border-color: var(--nexus-input-border) !important;
    color: var(--nexus-input-text) !important;
}
[data-bs-theme="dark"] .form-control::placeholder { color: var(--nexus-input-placeholder) !important; }
[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background-color: var(--nexus-input-bg) !important;
    border-color: var(--nexus-primary) !important;
    color: var(--nexus-input-text) !important;
    box-shadow: 0 0 0 3px rgba(79,70,229,0.2) !important;
}
[data-bs-theme="dark"] .input-group-text {
    background-color: var(--nexus-surface-2) !important;
    border-color: var(--nexus-input-border) !important;
    color: var(--nexus-text-muted) !important;
}

/* ─── Dark Mode: Dropdowns & Modals ─── */
[data-bs-theme="dark"] .dropdown-menu {
    background-color: var(--nexus-surface) !important;
    border-color: var(--nexus-border) !important;
}
[data-bs-theme="dark"] .dropdown-item {
    color: var(--nexus-text) !important;
}
[data-bs-theme="dark"] .dropdown-item:hover {
    background-color: var(--nexus-surface-2) !important;
}
[data-bs-theme="dark"] .dropdown-divider {
    border-color: var(--nexus-border) !important;
}
[data-bs-theme="dark"] .modal-content {
    background-color: var(--nexus-surface) !important;
    border-color: var(--nexus-border) !important;
    color: var(--nexus-text) !important;
}
[data-bs-theme="dark"] .modal-header,
[data-bs-theme="dark"] .modal-footer,
[data-bs-theme="dark"] .modal-body {
    border-color: var(--nexus-border) !important;
    background-color: var(--nexus-surface) !important;
    color: var(--nexus-text) !important;
}

/* ─── Text & Utility ─── */
.text-muted { color: var(--nexus-text-muted) !important; }
.text-dark  { color: var(--nexus-text) !important; }
[data-bs-theme="dark"] .text-muted,
[data-bs-theme="dark"] .text-secondary { 
    color: #94a3b8 !important; 
}
[data-bs-theme="dark"] .text-dark,
[data-bs-theme="dark"] .fw-bold,
[data-bs-theme="dark"] .fw-semibold { 
    color: #f1f5f9 !important; 
}
[data-bs-theme="dark"] small,
[data-bs-theme="dark"] .small { 
    color: #94a3b8 !important; 
}
[data-bs-theme="dark"] code {
    background: var(--nexus-surface-2) !important;
    color: #818cf8 !important;
    border-color: var(--nexus-border) !important;
}

/* ─── Dark Mode: Tables ─── */
[data-bs-theme="dark"] .table {
    color: var(--nexus-text) !important;
}
[data-bs-theme="dark"] .table thead th {
    background-color: var(--nexus-surface) !important;
    color: var(--nexus-text-muted) !important;
    border-color: var(--nexus-border) !important;
}
[data-bs-theme="dark"] .table tbody td {
    border-color: var(--nexus-border) !important;
    color: var(--nexus-text) !important;
}
[data-bs-theme="dark"] .table-hover tbody tr:hover {
    background-color: rgba(255,255,255,0.03) !important;
}

/* ─── Dark Mode: Badges & Alerts ─── */
[data-bs-theme="dark"] .bg-light {
    background-color: var(--nexus-surface-2) !important;
}
[data-bs-theme="dark"] .alert {
    border-color: var(--nexus-border) !important;
}

/* ─── Dark Mode: Filter Bar & Filter Inputs ─── */
[data-bs-theme="dark"] .filter-bar {
    background: var(--nexus-surface) !important;
    border-color: var(--nexus-border) !important;
}
[data-bs-theme="dark"] .stat-card {
    background: var(--nexus-surface) !important;
    border: 1px solid var(--nexus-border) !important;
}
[data-bs-theme="dark"] .stat-card .text-muted {
    color: rgba(255, 255, 255, 0.45) !important;
}
[data-bs-theme="dark"] .stat-card .h3 {
    color: var(--nexus-text) !important;
}

/* ─── Dark Mode: Logout Modal ─── */
[data-bs-theme="dark"] #modal-logout > div {
    background: var(--nexus-surface) !important;
    border: 1px solid var(--nexus-border);
}
[data-bs-theme="dark"] #modal-logout h5,
[data-bs-theme="dark"] #modal-logout p {
    color: var(--nexus-text) !important;
}

/* ─── Dark Mode: Nav Pills (Settings tabs) ─── */
[data-bs-theme="dark"] .nav-pills-nexus {
    background: var(--nexus-surface-2) !important;
    border-color: var(--nexus-border) !important;
}
[data-bs-theme="dark"] .nav-pills-nexus .nav-link.active {
    background: var(--nexus-surface) !important;
}

/* ─── Table System ─── */
.table-container { height: 100%; display: flex; flex-direction: column; }

.table-responsive-fixed {
    flex-grow: 1;
    overflow: auto;
    max-height: calc(100vh - 300px);
    border-radius: var(--nexus-radius);
}

.table { min-width: 800px; }

.table thead th {
    position: sticky;
    top: 0;
    background-color: var(--nexus-surface) !important;
    z-index: 10;
    border-bottom: 2px solid var(--nexus-border) !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--nexus-text-muted);
    white-space: nowrap;
}

.table tbody td {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid var(--nexus-border);
    vertical-align: middle;
    color: var(--nexus-text);
    font-size: 0.85rem;
}

/* ─── Stat Cards ─── */
.stat-card {
    border-left: 3px solid var(--nexus-primary) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1) !important;
}
.stat-card.active  { border-left-color: #10b981 !important; }
.stat-card.pending { border-left-color: #f59e0b !important; }
.stat-card.expired { border-left-color: #ef4444 !important; }

/* ─── Chart Filter Buttons ─── */
.btn-filter {
    background: transparent;
    border: 1px solid var(--nexus-border);
    color: var(--nexus-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 0 !important;
    transition: all 0.15s ease;
    cursor: pointer;
}
.btn-filter:first-child { border-radius: 6px 0 0 6px !important; }
.btn-filter:last-child  { border-radius: 0 6px 6px 0 !important; }
.btn-filter + .btn-filter { border-left: none; }
.btn-filter.active, .btn-filter:hover {
    background: var(--nexus-primary);
    color: #fff;
    border-color: var(--nexus-primary);
    z-index: 1;
}

/* ─── Filter Bar ─── */
.filter-bar {
    background: var(--nexus-surface);
    padding: 0.85rem 1.25rem;
    border-radius: var(--nexus-radius);
    border: 1px solid var(--nexus-border);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ─── Nav Pills (Settings) ─── */
.nav-pills-nexus {
    padding: 0.3rem;
    border-radius: 0.75rem;
    border: 1px solid var(--nexus-border);
    background: var(--nexus-surface-2);
    gap: 0.2rem;
    display: flex;
    flex-wrap: wrap;
}
.nav-pills-nexus .nav-link {
    margin: 0;
    padding: 0.5rem 1.1rem !important;
    border-radius: 0.55rem;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--nexus-text-muted) !important;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
}
.nav-pills-nexus .nav-link.active {
    background: var(--nexus-surface) !important;
    color: var(--nexus-primary) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1) !important;
}
.nav-pills-nexus .nav-link:hover:not(.active) {
    background: rgba(0,0,0,0.04);
    color: var(--nexus-text) !important;
}
[data-bs-theme="dark"] .nav-pills-nexus .nav-link:hover:not(.active) {
    background: rgba(255,255,255,0.04);
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
[data-bs-theme="dark"] ::-webkit-scrollbar-thumb { background: #334155; }

/* ─── Mobile Sidebar ─── */
.mobile-sidebar {
    position: fixed !important;
    top: 0; left: 0; bottom: 0;
    z-index: 1000;
    box-shadow: 20px 0 60px rgba(0,0,0,0.5);
    display: flex !important;
}

@media (max-width: 992px) {
    .app-header { padding: 0 1rem; }
    .app-content { padding: 1rem; }
    .table-responsive-fixed { max-height: none; }
}

/* ─── Animations ─── */
.animate { animation-duration: 0.18s; animation-fill-mode: both; }
@keyframes slideIn {
    from { transform: translateY(8px); opacity: 0; }
    to   { transform: translateY(0);   opacity: 1; }
}
.slideIn { animation-name: slideIn; }

.fade-in { animation: fadeIn 0.25s ease-out; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Dark Mode: List Group (settings app list white lines) ─── */
[data-bs-theme="dark"] .list-group-item {
    background-color: var(--nexus-surface) !important;
    border-color: var(--nexus-border) !important;
    color: var(--nexus-text) !important;
}
[data-bs-theme="dark"] .list-group-flush .list-group-item {
    border-left: 0 !important;
    border-right: 0 !important;
}
[data-bs-theme="dark"] .list-group-item:hover {
    background-color: var(--nexus-surface-2) !important;
}

/* ─── Dark Mode: bg-light & bg-light-subtle ─── */
[data-bs-theme="dark"] .bg-light,
[data-bs-theme="dark"] .bg-light-subtle {
    background-color: var(--nexus-surface-2) !important;
}

/* ─── Dark Mode: card-header (white top border) ─── */
[data-bs-theme="dark"] .card-header {
    background-color: var(--nexus-surface) !important;
    border-bottom-color: var(--nexus-border) !important;
    color: var(--nexus-text) !important;
}

/* ─── Dark Mode: Disabled inputs ─── */
[data-bs-theme="dark"] .form-control:disabled,
[data-bs-theme="dark"] .form-control[readonly] {
    background-color: rgba(255,255,255,0.04) !important;
    color: var(--nexus-text-muted) !important;
    border-color: var(--nexus-border) !important;
}

/* ─── Dark Mode: hr dividers ─── */
[data-bs-theme="dark"] hr,
[data-bs-theme="dark"] .dropdown-divider {
    border-color: var(--nexus-border) !important;
    opacity: 1 !important;
}

/* ─── Dark Mode: btn-light & btn-ghost ─── */
[data-bs-theme="dark"] .btn-light {
    background-color: var(--nexus-surface-2) !important;
    border-color: var(--nexus-border) !important;
    color: var(--nexus-text) !important;
}
[data-bs-theme="dark"] .btn-light:hover {
    background-color: rgba(255,255,255,0.08) !important;
}
[data-bs-theme="dark"] .btn-ghost-secondary {
    color: var(--nexus-text-muted) !important;
}
[data-bs-theme="dark"] .btn-ghost-secondary:hover {
    background-color: rgba(255,255,255,0.06) !important;
    color: var(--nexus-text) !important;
}

/* ─── Dark Mode: Notification dropdown inner items ─── */
[data-bs-theme="dark"] #notif-list .list-group-item,
[data-bs-theme="dark"] #notif-list > div {
    background-color: var(--nexus-surface) !important;
    color: var(--nexus-text) !important;
}

/* ─── Dark Mode: Toast notifications ─── */
[data-bs-theme="dark"] .toast {
    background-color: var(--nexus-surface) !important;
    border-color: var(--nexus-border) !important;
    color: var(--nexus-text) !important;
}
[data-bs-theme="dark"] .toast-header {
    background-color: var(--nexus-surface-2) !important;
    border-color: var(--nexus-border) !important;
    color: var(--nexus-text) !important;
}

/* ─── Dark Mode: Progress bars background ─── */
[data-bs-theme="dark"] .progress {
    background-color: rgba(255,255,255,0.07) !important;
}

/* ─── Dark Mode: Avatar fallback bg ─── */
[data-bs-theme="dark"] .avatar.bg-primary-lt {
    background-color: rgba(79,70,229,0.2) !important;
    color: #818cf8 !important;
}

/* ─── Dark Mode: ApexCharts Tooltip ─── */
[data-bs-theme="dark"] .apexcharts-tooltip {
    background: #1e293b !important;
    border: 1px solid #2d3f5a !important;
    color: #e2e8f0 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5) !important;
}
[data-bs-theme="dark"] .apexcharts-tooltip-title {
    background: #0f1829 !important;
    border-bottom: 1px solid #2d3f5a !important;
    color: #94a3b8 !important;
}
[data-bs-theme="dark"] .apexcharts-tooltip-text-y-value,
[data-bs-theme="dark"] .apexcharts-tooltip-text-y-label {
    color: #e2e8f0 !important;
}
[data-bs-theme="dark"] .apexcharts-xaxistooltip {
    background: #1e293b !important;
    border: 1px solid #2d3f5a !important;
    color: #e2e8f0 !important;
}
[data-bs-theme="dark"] .apexcharts-xaxistooltip-bottom::before,
[data-bs-theme="dark"] .apexcharts-xaxistooltip-bottom::after {
    border-bottom-color: #2d3f5a !important;
}
[data-bs-theme="dark"] .apexcharts-menu {
    background: #1e293b !important;
    border: 1px solid #2d3f5a !important;
    color: #e2e8f0 !important;
}
[data-bs-theme="dark"] .apexcharts-menu-item:hover {
    background: #0f1829 !important;
}

/* ─── Dark Mode: remaining text-dark overrides ─── */
[data-bs-theme="dark"] .text-dark { color: var(--nexus-text) !important; }
[data-bs-theme="dark"] strong { color: var(--nexus-text); }
[data-bs-theme="dark"] .fw-bold { color: inherit; }

[data-bs-theme="dark"] .app-header { background: rgba(17, 24, 39, 0.8) !important; border-bottom: 1px solid rgba(30, 45, 69, 0.8) !important; }

/* Ambient Top Glow for Premium Feel */
body::before {
    content: '';
    position: fixed;
    top: -20vh;
    left: -10vw;
    width: 120vw;
    height: 80vh;
    background: radial-gradient(ellipse at 50% 0%, rgba(79, 70, 229, 0.08) 0%, rgba(244, 247, 251, 0) 70%);
    z-index: -1;
    pointer-events: none;
}
[data-bs-theme="dark"] body::before {
    background: radial-gradient(ellipse at 50% 0%, rgba(79, 70, 229, 0.12) 0%, rgba(8, 12, 20, 0) 70%);
}
