/* Fonts loaded via <link> in header.php — fonts.googleapis.com not needed here */

/*
  Theme layer
  - `default` intentionally has no overrides so the existing style remains unchanged.
  - Non-default themes only apply under body[data-ui-theme="..."].
*/

[data-ui-theme]:not([data-ui-theme="default"]) {
    transition: background-color .2s ease, color .2s ease;
}

[data-ui-theme]:not([data-ui-theme="default"]) .container,
[data-ui-theme]:not([data-ui-theme="default"]) .container-fluid {
    color: var(--dark);
}

[data-ui-theme]:not([data-ui-theme="default"]) .table {
    --bs-table-bg: rgba(255, 255, 255, 0.86);
    --bs-table-color: var(--dark);
    --bs-table-border-color: var(--border);
}

[data-ui-theme]:not([data-ui-theme="default"]) .stat-card-inline {
    border-color: var(--border);
}

[data-ui-theme]:not([data-ui-theme="default"]) .table thead.table-light th,
[data-ui-theme]:not([data-ui-theme="default"]) .table .table-light th {
    background: rgba(148, 163, 184, 0.12) !important;
    color: var(--dark);
    border-color: var(--border);
}

[data-ui-theme]:not([data-ui-theme="default"]) .table-hover > tbody > tr:hover > * {
    --bs-table-accent-bg: rgba(99, 102, 241, 0.08);
}

[data-ui-theme]:not([data-ui-theme="default"]) .modal-content {
    border: 1px solid var(--border);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

[data-ui-theme]:not([data-ui-theme="default"]) .modal-header,
[data-ui-theme]:not([data-ui-theme="default"]) .modal-footer {
    border-color: var(--border);
}

[data-ui-theme]:not([data-ui-theme="default"]) .dropdown-menu {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

[data-ui-theme]:not([data-ui-theme="default"]) .dropdown-item {
    color: var(--dark);
}

[data-ui-theme]:not([data-ui-theme="default"]) .dropdown-item:hover,
[data-ui-theme]:not([data-ui-theme="default"]) .dropdown-item:focus {
    background: rgba(99, 102, 241, 0.12);
    color: var(--dark);
}

[data-ui-theme]:not([data-ui-theme="default"]) .dropdown-item.active,
[data-ui-theme]:not([data-ui-theme="default"]) .dropdown-item:active {
    background: var(--gradient-primary);
    color: #fff;
}

[data-ui-theme]:not([data-ui-theme="default"]) .alert {
    border: 1px solid var(--border);
}

[data-ui-theme]:not([data-ui-theme="default"]) .nav-link.active,
[data-ui-theme]:not([data-ui-theme="default"]) .navbar .nav-link.active {
    color: var(--primary) !important;
}

[data-ui-theme]:not([data-ui-theme="default"]) .pagination .page-link {
    color: var(--dark);
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.9);
}

[data-ui-theme]:not([data-ui-theme="default"]) .pagination .page-item.active .page-link {
    border-color: var(--primary);
    background: var(--gradient-primary);
    color: #fff;
}

[data-ui-theme]:not([data-ui-theme="default"]) .pagination .page-link:focus,
[data-ui-theme]:not([data-ui-theme="default"]) .btn:focus,
[data-ui-theme]:not([data-ui-theme="default"]) .form-control:focus,
[data-ui-theme]:not([data-ui-theme="default"]) .form-select:focus {
    outline: none;
}

body[data-ui-theme="editorial-ink"] {
    --primary: #1d4ed8;
    --primary-light: #2563eb;
    --primary-dark: #1e3a8a;
    --success: #0f766e;
    --warning: #b45309;
    --danger: #b91c1c;
    --info: #0369a1;
    --light: #f5f5f4;
    --light-gray: #fafaf9;
    --dark: #111827;
    --dark-gray: #334155;
    --border: #cbd5e1;
    --border-light: #e2e8f0;
    --gradient-primary: linear-gradient(135deg, #1d4ed8 0%, #0ea5e9 100%);
    --gradient-bg: linear-gradient(135deg, #f8fafc 0%, #f5f5f4 100%);
    background:
        radial-gradient(circle at 8% 10%, rgba(14, 165, 233, 0.08), transparent 35%),
        radial-gradient(circle at 90% 0%, rgba(29, 78, 216, 0.07), transparent 36%),
        var(--light);
}

body[data-ui-theme="editorial-ink"] .navbar {
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.84) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

body[data-ui-theme="editorial-ink"] .card {
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 10px 34px rgba(15, 23, 42, 0.06);
}

body[data-ui-theme="editorial-ink"] .card-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

body[data-ui-theme="editorial-ink"] .btn {
    border-radius: 14px;
}

body[data-ui-theme="editorial-ink"] .form-control,
body[data-ui-theme="editorial-ink"] .form-select {
    border-radius: 12px;
    border-color: #cbd5e1;
    background: rgba(255, 255, 255, 0.96);
}

body[data-ui-theme="editorial-ink"] .form-control:focus,
body[data-ui-theme="editorial-ink"] .form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

/* editorial-ink: dashboard + login */
body[data-ui-theme="editorial-ink"] .stat-card {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}
body[data-ui-theme="editorial-ink"] .stat-card:hover {
    border-color: rgba(29, 78, 216, 0.25);
    box-shadow: 0 12px 30px rgba(29, 78, 216, 0.10);
}
body[data-ui-theme="editorial-ink"] .stat-card-inline {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-color: rgba(148, 163, 184, 0.25);
}
body[data-ui-theme="editorial-ink"] .stat-icon {
    box-shadow: 0 6px 16px rgba(29, 78, 216, 0.12);
}
body[data-ui-theme="editorial-ink"] .action-card {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
body[data-ui-theme="editorial-ink"] .action-card:hover {
    border-color: rgba(29, 78, 216, 0.3);
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.10);
}
body[data-ui-theme="editorial-ink"] .dashboard-hero,
body[data-ui-theme="editorial-ink"] .admin-context-hero {
    border: 1px solid rgba(148, 163, 184, 0.2);
    background:
        radial-gradient(circle at top right, rgba(29, 78, 216, 0.07), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
body[data-ui-theme="editorial-ink"] .admin-context-kicker {
    background: rgba(29, 78, 216, 0.10);
    border-color: rgba(29, 78, 216, 0.15);
    color: var(--primary-dark);
}
body[data-ui-theme="editorial-ink"] .admin-context-chip {
    background: #ffffff;
    border-color: rgba(148, 163, 184, 0.25);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
body[data-ui-theme="editorial-ink"] .dashboard-panel-card,
body[data-ui-theme="editorial-ink"] .resource-panel {
    border-color: rgba(148, 163, 184, 0.2);
}
body[data-ui-theme="editorial-ink"] .focus-mini-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-color: rgba(148, 163, 184, 0.2);
}
body[data-ui-theme="editorial-ink"] .batch-card {
    background: #ffffff;
    border-color: rgba(148, 163, 184, 0.2);
}
body[data-ui-theme="editorial-ink"] .batch-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom-color: rgba(148, 163, 184, 0.2);
}
body[data-ui-theme="editorial-ink"] .batch-metric-label {
    color: #475569;
}
body[data-ui-theme="editorial-ink"] .batch-metric-value {
    color: #0f172a;
}
body[data-ui-theme="editorial-ink"] .batch-card,
body[data-ui-theme="editorial-ink"] .batch-header {
    border-radius: 12px;
}
body[data-ui-theme="editorial-ink"] .hero-filter-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-color: rgba(148, 163, 184, 0.2);
}
body[data-ui-theme="editorial-ink"] .auth-page .auth-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.2);
}
body[data-ui-theme="editorial-ink"].auth-page {
    background:
        radial-gradient(circle at 10% 10%, rgba(29, 78, 216, 0.08), transparent 32%),
        radial-gradient(circle at 90% 0%, rgba(37, 99, 235, 0.06), transparent 34%),
        linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
}
body[data-ui-theme="editorial-ink"] .text-muted,
body[data-ui-theme="editorial-ink"] .form-text {
    color: #64748b !important;
}
body[data-ui-theme="editorial-ink"] .auth-brand-mark {
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.12), rgba(37, 99, 235, 0.16));
}
body[data-ui-theme="editorial-ink"] .modal-content {
    border: 1px solid rgba(148, 163, 184, 0.2);
}
body[data-ui-theme="editorial-ink"] .card.border-left-primary { border-left-color: var(--primary); }
body[data-ui-theme="editorial-ink"] .card.border-left-success { border-left-color: var(--success); }
body[data-ui-theme="editorial-ink"] .card.border-left-warning { border-left-color: var(--warning); }
body[data-ui-theme="editorial-ink"] .card.border-left-info { border-left-color: var(--info); }
body[data-ui-theme="editorial-ink"].public-landing {
    background: #f5f5f4;
}
body[data-ui-theme="editorial-ink"].public-landing .public-nav span {
    color: #111827 !important;
}

body[data-ui-theme="aurora-grid"] {
    --primary: #0f766e;
    --primary-light: #06b6d4;
    --primary-dark: #134e4a;
    --success: #16a34a;
    --warning: #ca8a04;
    --danger: #dc2626;
    --info: #0284c7;
    --light: #f8fbff;
    --light-gray: #e6f3f0;
    --dark: #0f172a;
    --dark-gray: #1e293b;
    --border: #c4ddd8;
    --border-light: #d8ebe7;
    --gradient-primary: linear-gradient(120deg, #0f766e 0%, #06b6d4 55%, #38bdf8 100%);
    --gradient-bg: linear-gradient(145deg, #e6f3f0 0%, #d8ebe7 40%, #cbe3de 100%);
    background:
        linear-gradient(transparent 23px, rgba(14, 165, 233, 0.08) 24px),
        linear-gradient(90deg, transparent 23px, rgba(20, 184, 166, 0.08) 24px),
        #bfd5d1;
    background-size: 24px 24px, 24px 24px, auto;
}

body[data-ui-theme="aurora-grid"] .navbar {
    background: rgba(238, 243, 241, 0.9) !important;
    border-bottom: 1px solid rgba(56, 189, 248, 0.24);
    backdrop-filter: blur(8px);
}

body[data-ui-theme="aurora-grid"] .card {
    border: 1px solid rgba(56, 189, 248, 0.24);
    box-shadow: 0 14px 40px rgba(14, 116, 144, 0.12);
}

body[data-ui-theme="aurora-grid"] .card-header {
    background: linear-gradient(120deg, #e6f3f0 0%, #d8ebe7 100%);
}

body[data-ui-theme="aurora-grid"] .btn {
    border-radius: 14px;
}

body[data-ui-theme="aurora-grid"] .btn-primary {
    box-shadow: 0 10px 28px rgba(14, 116, 144, 0.24);
}

body[data-ui-theme="aurora-grid"] .form-control,
body[data-ui-theme="aurora-grid"] .form-select {
    border-radius: 12px;
    border-color: var(--border);
}

body[data-ui-theme="aurora-grid"] .form-control:focus,
body[data-ui-theme="aurora-grid"] .form-select:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 0 0.2rem rgba(6, 182, 212, 0.16);
}

/* aurora-grid: dashboard + login */
body[data-ui-theme="aurora-grid"] .stat-card {
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 18px;
    background: linear-gradient(135deg, #eef7f5 0%, #e6f3f0 100%);
    box-shadow: 0 10px 28px rgba(14, 116, 144, 0.10);
}
body[data-ui-theme="aurora-grid"] .stat-card:hover {
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 12px 30px rgba(14, 116, 144, 0.14);
}
body[data-ui-theme="aurora-grid"] .stat-card-inline {
    background: linear-gradient(135deg, #eef7f5 0%, #e6f3f0 100%);
    border-color: rgba(56, 189, 248, 0.25);
}
body[data-ui-theme="aurora-grid"] .stat-icon {
    box-shadow: 0 6px 16px rgba(14, 116, 144, 0.14);
}
body[data-ui-theme="aurora-grid"] .action-card {
    background: #eef7f5;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 14px;
}
body[data-ui-theme="aurora-grid"] .action-card:hover {
    border-color: rgba(6, 182, 212, 0.35);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.12);
}
body[data-ui-theme="aurora-grid"] .dashboard-hero,
body[data-ui-theme="aurora-grid"] .admin-context-hero {
    border: 1px solid rgba(56, 189, 248, 0.2);
    background:
        radial-gradient(circle at top right, rgba(6, 182, 212, 0.10), transparent 28%),
        linear-gradient(180deg, #eef7f5 0%, #e6f3f0 100%);
}
body[data-ui-theme="aurora-grid"] .admin-context-kicker {
    background: rgba(15, 118, 110, 0.10);
    border-color: rgba(15, 118, 110, 0.15);
    color: var(--primary-dark);
}
body[data-ui-theme="aurora-grid"] .admin-context-chip {
    background: #eef7f5;
    border-color: rgba(56, 189, 248, 0.25);
    box-shadow: inset 0 1px 0 rgba(238,247,245,0.7);
}
body[data-ui-theme="aurora-grid"] .dashboard-panel-card,
body[data-ui-theme="aurora-grid"] .resource-panel {
    border-color: rgba(56, 189, 248, 0.2);
}
body[data-ui-theme="aurora-grid"] .focus-mini-card {
    background: linear-gradient(135deg, #eef7f5 0%, #e6f3f0 100%);
    border-color: rgba(56, 189, 248, 0.2);
}
body[data-ui-theme="aurora-grid"] .batch-card {
    background: #eef7f5;
    border-color: rgba(56, 189, 248, 0.2);
}
body[data-ui-theme="aurora-grid"] .batch-header {
    background: linear-gradient(135deg, #e6f3f0 0%, #d8ebe7 100%);
    border-bottom-color: rgba(56, 189, 248, 0.2);
}
body[data-ui-theme="aurora-grid"] .batch-metric-label {
    color: #475569;
}
body[data-ui-theme="aurora-grid"] .batch-metric-value {
    color: #0f172a;
}
body[data-ui-theme="aurora-grid"] .hero-filter-card {
    background: linear-gradient(180deg, #eef7f5 0%, #e6f3f0 100%);
    border-color: rgba(56, 189, 248, 0.2);
}
body[data-ui-theme="aurora-grid"] .auth-page .auth-card {
    background: rgba(238, 247, 245, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.2);
}
body[data-ui-theme="aurora-grid"].auth-page {
    background:
        radial-gradient(circle at 10% 10%, rgba(20, 184, 166, 0.10), transparent 32%),
        radial-gradient(circle at 90% 0%, rgba(14, 165, 233, 0.08), transparent 34%),
        linear-gradient(180deg, #bfd5d1 0%, #cbe3de 100%) !important;
}
body[data-ui-theme="aurora-grid"] .text-muted,
body[data-ui-theme="aurora-grid"] .form-text {
    color: #475569 !important;
}
body[data-ui-theme="aurora-grid"] .auth-brand-mark {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(6, 182, 212, 0.16));
}
body[data-ui-theme="aurora-grid"] .modal-content {
    border: 1px solid rgba(148, 163, 184, 0.2);
}
body[data-ui-theme="aurora-grid"] .card.border-left-primary { border-left-color: var(--primary); }
body[data-ui-theme="aurora-grid"] .card.border-left-success { border-left-color: var(--success); }
body[data-ui-theme="aurora-grid"] .card.border-left-warning { border-left-color: var(--warning); }
body[data-ui-theme="aurora-grid"] .card.border-left-info { border-left-color: var(--info); }
body[data-ui-theme="aurora-grid"].public-landing {
    background: #bfd5d1;
}
body[data-ui-theme="aurora-grid"].public-landing .public-nav span {
    color: #0f172a !important;
}

body[data-ui-theme="slate-atelier"] {
    --primary: #334155;
    --primary-light: #475569;
    --primary-dark: #111827;
    --success: #15803d;
    --warning: #a16207;
    --danger: #b91c1c;
    --info: #1d4ed8;
    --light: #f8fafc;
    --light-gray: #eef0f4;
    --dark: #0f172a;
    --dark-gray: #1e293b;
    --border: #c4c8ce;
    --border-light: #d8dbe0;
    --gradient-primary: linear-gradient(135deg, #334155 0%, #2563eb 100%);
    --gradient-bg: linear-gradient(150deg, #eef0f4 0%, #e2e5ea 45%, #e8ebef 100%);
    background:
        radial-gradient(circle at 92% 2%, rgba(37, 99, 235, 0.10), transparent 34%),
        radial-gradient(circle at 10% 100%, rgba(51, 65, 85, 0.08), transparent 32%),
        #d3d6db;
}

body[data-ui-theme="slate-atelier"] .navbar {
    background: rgba(238, 240, 244, 0.9) !important;
    border-bottom: 1px solid rgba(107, 114, 128, 0.2);
    backdrop-filter: blur(8px);
}

body[data-ui-theme="slate-atelier"] .card {
    border: 1px solid rgba(107, 114, 128, 0.18);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
}

body[data-ui-theme="slate-atelier"] .card-header {
    background: linear-gradient(130deg, #eef0f4 0%, #e2e5ea 100%);
}

body[data-ui-theme="slate-atelier"] .btn {
    border-radius: 13px;
}

body[data-ui-theme="slate-atelier"] .btn-primary {
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

body[data-ui-theme="slate-atelier"] .form-control,
body[data-ui-theme="slate-atelier"] .form-select {
    border-radius: 12px;
    border-color: var(--border);
}

body[data-ui-theme="slate-atelier"] .form-control:focus,
body[data-ui-theme="slate-atelier"] .form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.14);
}

/* slate-atelier: dashboard + login */
body[data-ui-theme="slate-atelier"] .stat-card {
    border: 1px solid rgba(107, 114, 128, 0.22);
    border-radius: 18px;
    background: linear-gradient(135deg, #eef0f4 0%, #e2e5ea 100%);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
}
body[data-ui-theme="slate-atelier"] .stat-card:hover {
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.12);
}
body[data-ui-theme="slate-atelier"] .stat-card-inline {
    background: linear-gradient(135deg, #eef0f4 0%, #e2e5ea 100%);
    border-color: rgba(107, 114, 128, 0.22);
}
body[data-ui-theme="slate-atelier"] .stat-icon {
    box-shadow: 0 6px 16px rgba(51, 65, 85, 0.12);
}
body[data-ui-theme="slate-atelier"] .action-card {
    background: #eef0f4;
    border: 1px solid rgba(107, 114, 128, 0.2);
    border-radius: 14px;
}
body[data-ui-theme="slate-atelier"] .action-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}
body[data-ui-theme="slate-atelier"] .dashboard-hero,
body[data-ui-theme="slate-atelier"] .admin-context-hero {
    border: 1px solid rgba(107, 114, 128, 0.18);
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.07), transparent 28%),
        linear-gradient(180deg, #eef0f4 0%, #e2e5ea 100%);
}
body[data-ui-theme="slate-atelier"] .admin-context-kicker {
    background: rgba(51, 65, 85, 0.10);
    border-color: rgba(51, 65, 85, 0.15);
    color: var(--primary-dark);
}
body[data-ui-theme="slate-atelier"] .admin-context-chip {
    background: #eef0f4;
    border-color: rgba(107, 114, 128, 0.22);
    box-shadow: inset 0 1px 0 rgba(238,240,244,0.7);
}
body[data-ui-theme="slate-atelier"] .dashboard-panel-card,
body[data-ui-theme="slate-atelier"] .resource-panel {
    border-color: rgba(107, 114, 128, 0.18);
}
body[data-ui-theme="slate-atelier"] .focus-mini-card {
    background: linear-gradient(135deg, #eef0f4 0%, #e2e5ea 100%);
    border-color: rgba(107, 114, 128, 0.18);
}
body[data-ui-theme="slate-atelier"] .batch-card {
    background: #eef0f4;
    border-color: rgba(107, 114, 128, 0.18);
}
body[data-ui-theme="slate-atelier"] .batch-header {
    background: linear-gradient(135deg, #e2e5ea 0%, #d8dbe0 100%);
    border-bottom-color: rgba(107, 114, 128, 0.18);
}
body[data-ui-theme="slate-atelier"] .batch-metric-label {
    color: #4b5563;
}
body[data-ui-theme="slate-atelier"] .batch-metric-value {
    color: #0f172a;
}
body[data-ui-theme="slate-atelier"] .hero-filter-card {
    background: linear-gradient(180deg, #eef0f4 0%, #e2e5ea 100%);
    border-color: rgba(107, 114, 128, 0.18);
}
body[data-ui-theme="slate-atelier"] .auth-page .auth-card {
    background: rgba(238, 240, 244, 0.95);
    border: 1px solid rgba(107, 114, 128, 0.2);
}
body[data-ui-theme="slate-atelier"].auth-page {
    background:
        radial-gradient(circle at 10% 10%, rgba(51, 65, 85, 0.10), transparent 32%),
        radial-gradient(circle at 90% 0%, rgba(37, 99, 235, 0.08), transparent 34%),
        linear-gradient(180deg, #d3d6db 0%, #c4c8ce 100%) !important;
}
body[data-ui-theme="slate-atelier"] .text-muted,
body[data-ui-theme="slate-atelier"] .form-text {
    color: #4b5563 !important;
}
body[data-ui-theme="slate-atelier"] .auth-brand-mark {
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.12), rgba(37, 99, 235, 0.16));
}
body[data-ui-theme="slate-atelier"] .modal-content {
    border: 1px solid rgba(107, 114, 128, 0.2);
}
body[data-ui-theme="slate-atelier"] .card.border-left-primary { border-left-color: var(--primary); }
body[data-ui-theme="slate-atelier"] .card.border-left-success { border-left-color: var(--success); }
body[data-ui-theme="slate-atelier"] .card.border-left-warning { border-left-color: var(--warning); }
body[data-ui-theme="slate-atelier"] .card.border-left-info { border-left-color: var(--info); }
body[data-ui-theme="slate-atelier"].public-landing {
    background: #d3d6db;
}
body[data-ui-theme="slate-atelier"].public-landing .public-nav span {
    color: #0f172a !important;
}

body[data-ui-theme="terracotta-ledger"] {
    --primary: #9a3412;
    --primary-light: #c2410c;
    --primary-dark: #7c2d12;
    --success: #3f6212;
    --warning: #b45309;
    --danger: #b91c1c;
    --info: #0c4a6e;
    --light: #fdf8f3;
    --light-gray: #faf0e8;
    --dark: #3f2f24;
    --dark-gray: #4f3a2b;
    --border: #e8cfc0;
    --border-light: #f0dfd0;
    --gradient-primary: linear-gradient(135deg, #9a3412 0%, #c2410c 100%);
    --gradient-bg: linear-gradient(150deg, #faf0e8 0%, #f5e6d8 50%, #ebd5c5 100%);
    background:
        radial-gradient(circle at 0% 0%, rgba(180, 83, 9, 0.12), transparent 28%),
        radial-gradient(circle at 100% 100%, rgba(154, 52, 18, 0.10), transparent 34%),
        #d9bfb2;
}

body[data-ui-theme="terracotta-ledger"] .navbar {
    background: rgba(250, 240, 232, 0.9) !important;
    border-bottom: 1px solid rgba(154, 52, 18, 0.2);
    backdrop-filter: blur(8px);
}

body[data-ui-theme="terracotta-ledger"] .card {
    border: 1px solid rgba(180, 83, 9, 0.18);
    box-shadow: 0 14px 34px rgba(124, 45, 18, 0.12);
}

body[data-ui-theme="terracotta-ledger"] .card-header {
    background: linear-gradient(120deg, #faf0e8 0%, #f5e6d8 100%);
}

body[data-ui-theme="terracotta-ledger"] .btn {
    border-radius: 13px;
}

body[data-ui-theme="terracotta-ledger"] .btn-primary {
    box-shadow: 0 10px 24px rgba(154, 52, 18, 0.24);
}

body[data-ui-theme="terracotta-ledger"] .form-control,
body[data-ui-theme="terracotta-ledger"] .form-select {
    border-radius: 12px;
    border-color: var(--border);
    background: #faf0e8;
}

body[data-ui-theme="terracotta-ledger"] .form-control:focus,
body[data-ui-theme="terracotta-ledger"] .form-select:focus {
    border-color: #c2410c;
    box-shadow: 0 0 0 0.2rem rgba(194, 65, 12, 0.14);
}

/* terracotta-ledger: dashboard + login */
body[data-ui-theme="terracotta-ledger"] .stat-card {
    border: 1px solid rgba(180, 83, 9, 0.2);
    border-radius: 18px;
    background: linear-gradient(135deg, #faf0e8 0%, #fdf6ef 100%);
    box-shadow: 0 10px 28px rgba(124, 45, 18, 0.10);
}
body[data-ui-theme="terracotta-ledger"] .stat-card:hover {
    border-color: rgba(154, 52, 18, 0.3);
    box-shadow: 0 12px 30px rgba(154, 52, 18, 0.12);
}
body[data-ui-theme="terracotta-ledger"] .stat-card-inline {
    background: linear-gradient(135deg, #faf0e8 0%, #fdf6ef 100%);
    border-color: rgba(180, 83, 9, 0.2);
}
body[data-ui-theme="terracotta-ledger"] .stat-icon {
    box-shadow: 0 6px 16px rgba(154, 52, 18, 0.12);
}
body[data-ui-theme="terracotta-ledger"] .action-card {
    background: #faf0e8;
    border: 1px solid rgba(180, 83, 9, 0.18);
    border-radius: 14px;
}
body[data-ui-theme="terracotta-ledger"] .action-card:hover {
    border-color: rgba(194, 65, 12, 0.3);
    box-shadow: 0 8px 20px rgba(194, 65, 12, 0.10);
}
body[data-ui-theme="terracotta-ledger"] .dashboard-hero,
body[data-ui-theme="terracotta-ledger"] .admin-context-hero {
    border: 1px solid rgba(180, 83, 9, 0.18);
    background:
        radial-gradient(circle at top right, rgba(154, 52, 18, 0.08), transparent 28%),
        linear-gradient(180deg, #faf0e8 0%, #f5e6d8 100%);
}
body[data-ui-theme="terracotta-ledger"] .admin-context-kicker {
    background: rgba(154, 52, 18, 0.10);
    border-color: rgba(154, 52, 18, 0.15);
    color: var(--primary-dark);
}
body[data-ui-theme="terracotta-ledger"] .admin-context-chip {
    background: #faf0e8;
    border-color: rgba(180, 83, 9, 0.2);
    box-shadow: inset 0 1px 0 rgba(250,240,232,0.7);
}
body[data-ui-theme="terracotta-ledger"] .dashboard-panel-card,
body[data-ui-theme="terracotta-ledger"] .resource-panel {
    border-color: rgba(180, 83, 9, 0.18);
}
body[data-ui-theme="terracotta-ledger"] .focus-mini-card {
    background: linear-gradient(135deg, #faf0e8 0%, #fdf6ef 100%);
    border-color: rgba(180, 83, 9, 0.18);
}
body[data-ui-theme="terracotta-ledger"] .batch-card {
    background: #faf0e8;
    border-color: rgba(180, 83, 9, 0.18);
}
body[data-ui-theme="terracotta-ledger"] .batch-header {
    background: linear-gradient(135deg, #faf0e8 0%, #f5e6d8 100%);
    border-bottom-color: rgba(180, 83, 9, 0.18);
}
body[data-ui-theme="terracotta-ledger"] .batch-metric-label {
    color: #6b4f3c;
}
body[data-ui-theme="terracotta-ledger"] .batch-metric-value {
    color: #3f2f24;
}
body[data-ui-theme="terracotta-ledger"] .hero-filter-card {
    background: linear-gradient(180deg, #faf0e8 0%, #f5e6d8 100%);
    border-color: rgba(180, 83, 9, 0.18);
}
body[data-ui-theme="terracotta-ledger"] .auth-page .auth-card {
    background: rgba(250, 240, 232, 0.95);
    border: 1px solid rgba(240, 215, 191, 0.4);
}
body[data-ui-theme="terracotta-ledger"].auth-page {
    background:
        radial-gradient(circle at 10% 10%, rgba(154, 52, 18, 0.10), transparent 32%),
        radial-gradient(circle at 90% 0%, rgba(194, 65, 12, 0.08), transparent 34%),
        linear-gradient(180deg, #d9bfb2 0%, #e8cfc0 100%) !important;
}
body[data-ui-theme="terracotta-ledger"] .text-muted,
body[data-ui-theme="terracotta-ledger"] .form-text {
    color: #6b4f3c !important;
}
body[data-ui-theme="terracotta-ledger"] .auth-brand-mark {
    background: linear-gradient(135deg, rgba(154, 52, 18, 0.10), rgba(194, 65, 12, 0.12));
}
body[data-ui-theme="terracotta-ledger"] .modal-content {
    border: 1px solid rgba(240, 215, 191, 0.4);
}
body[data-ui-theme="terracotta-ledger"] .card.border-left-primary { border-left-color: var(--primary); }
body[data-ui-theme="terracotta-ledger"] .card.border-left-success { border-left-color: var(--success); }
body[data-ui-theme="terracotta-ledger"] .card.border-left-warning { border-left-color: var(--warning); }
body[data-ui-theme="terracotta-ledger"] .card.border-left-info { border-left-color: var(--info); }
body[data-ui-theme="terracotta-ledger"].public-landing {
    background: #d9bfb2;
}
body[data-ui-theme="terracotta-ledger"].public-landing .public-nav span {
    color: #3f2f24 !important;
}

body[data-ui-theme="modern-polished"] {
    --primary: #0b5ed7;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --success: #15803d;
    --warning: #a16207;
    --danger: #b91c1c;
    --info: #0369a1;
    --light: #f7fafc;
    --light-gray: #f1f5f9;
    --dark: #0f172a;
    --dark-gray: #334155;
    --border: #d9e2ec;
    --border-light: #e6edf4;
    --gradient-primary: linear-gradient(135deg, #0b5ed7 0%, #2563eb 60%, #0891b2 100%);
    --gradient-bg: linear-gradient(150deg, #f8fbff 0%, #f3f7fb 45%, #eef4fb 100%);
    background:
        radial-gradient(circle at 5% 0%, rgba(59, 130, 246, 0.12), transparent 30%),
        radial-gradient(circle at 100% 95%, rgba(8, 145, 178, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,0.55), rgba(241,245,249,0.25)),
        var(--light);
}

body[data-ui-theme="modern-polished"] .navbar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    z-index: 1200;
}

body[data-ui-theme="modern-polished"] .navbar-toggler {
    border-color: rgba(148, 163, 184, 0.32);
    border-radius: 10px;
}

body[data-ui-theme="modern-polished"] .card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.09);
    overflow: hidden;
}

body[data-ui-theme="modern-polished"] .card-header {
    background: linear-gradient(120deg, rgba(255,255,255,0.98) 0%, #f6f9fd 48%, #eef6ff 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

body[data-ui-theme="modern-polished"] .btn {
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: 0.015em;
}

body[data-ui-theme="modern-polished"] .btn-primary {
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.26);
    background: linear-gradient(135deg, #0b5ed7 0%, #2563eb 55%, #0891b2 100%);
}

body[data-ui-theme="modern-polished"] .btn-outline-secondary,
body[data-ui-theme="modern-polished"] .btn-light {
    border-color: #cfd8e3;
}

body[data-ui-theme="modern-polished"] .form-control,
body[data-ui-theme="modern-polished"] .form-select {
    border-radius: 14px;
    border-color: #d4dee8;
    min-height: 46px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

body[data-ui-theme="modern-polished"] .form-control:focus,
body[data-ui-theme="modern-polished"] .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.14);
}

body[data-ui-theme="modern-polished"] .table thead th {
    font-weight: 700;
    letter-spacing: 0.02em;
}

body[data-ui-theme="modern-polished"] .badge {
    border-radius: 999px;
    font-weight: 700;
}

body[data-ui-theme="modern-polished"] .alert {
    border-radius: 12px;
}

body[data-ui-theme="modern-polished"] .container-fluid {
    --mp-gap: 1.15rem;
}

body[data-ui-theme="modern-polished"] h1,
body[data-ui-theme="modern-polished"] h2,
body[data-ui-theme="modern-polished"] h3,
body[data-ui-theme="modern-polished"] h4,
body[data-ui-theme="modern-polished"] h5,
body[data-ui-theme="modern-polished"] h6 {
    letter-spacing: -0.01em;
    font-weight: 800;
    color: #0f172a;
}

body[data-ui-theme="modern-polished"] .card:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.10);
}

body[data-ui-theme="modern-polished"] .dashboard-panel-card {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
}

body[data-ui-theme="modern-polished"] .card .text-muted {
    color: #64748b !important;
}

body[data-ui-theme="modern-polished"] .navbar .nav-link {
    border-radius: 10px;
    padding-inline: 0.85rem !important;
    font-weight: 700;
}

body[data-ui-theme="modern-polished"] .navbar .nav-link:hover {
    background: rgba(37, 99, 235, 0.09);
}

body[data-ui-theme="modern-polished"] .navbar .dropdown-toggle::after {
    margin-left: 0.45rem;
}

body[data-ui-theme="modern-polished"] .dropdown-menu {
    border-radius: 14px;
    padding: 0.45rem;
    z-index: 1210;
}

body[data-ui-theme="modern-polished"] .dropdown-item {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.6rem 0.85rem;
}

body[data-ui-theme="modern-polished"] .dropdown-item:hover,
body[data-ui-theme="modern-polished"] .dropdown-item:focus {
    background: rgba(37, 99, 235, 0.1);
    color: #0f172a;
}

body[data-ui-theme="modern-polished"] .table {
    border-radius: 14px;
    overflow: hidden;
}

body[data-ui-theme="modern-polished"] .table th {
    background: linear-gradient(120deg, #f8fbff 0%, #edf3fb 55%, #e7f1fb 100%);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

body[data-ui-theme="modern-polished"] .table td {
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

body[data-ui-theme="modern-polished"] .table-hover > tbody > tr:hover > * {
    --bs-table-accent-bg: rgba(37, 99, 235, 0.07);
}

body[data-ui-theme="modern-polished"] .table-responsive {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    -webkit-overflow-scrolling: touch;
}

body[data-ui-theme="modern-polished"] .form-label {
    letter-spacing: 0.06em;
    font-size: 0.77rem;
    font-weight: 700;
    color: #334155;
}

body[data-ui-theme="modern-polished"] .input-group-text {
    border-color: #d4dee8;
    background: #f8fbff;
    color: #334155;
}

body[data-ui-theme="modern-polished"] .btn {
    min-height: 40px;
}

body[data-ui-theme="modern-polished"] .btn-primary,
body[data-ui-theme="modern-polished"] .btn-success,
body[data-ui-theme="modern-polished"] .btn-danger,
body[data-ui-theme="modern-polished"] .btn-warning {
    border: 0;
}

body[data-ui-theme="modern-polished"] .btn-outline-secondary {
    color: #334155;
    background: #fff;
}

body[data-ui-theme="modern-polished"] .btn-outline-secondary:hover {
    background: #eef4ff;
    color: #1e3a8a;
    border-color: #bfdbfe;
}

body[data-ui-theme="modern-polished"] .badge {
    letter-spacing: 0.03em;
    padding: 0.46rem 0.8rem;
}

body[data-ui-theme="modern-polished"] .alert {
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

body[data-ui-theme="modern-polished"] .pagination .page-link {
    border-radius: 10px;
    margin: 0 0.15rem;
}

/* Teacher dashboard visual polish */
body[data-ui-theme="modern-polished"] .action-card:hover {
    border-color: rgba(37, 99, 235, 0.26);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.14);
}

body[data-ui-theme="modern-polished"] .course-card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: linear-gradient(130deg, #ffffff 0%, #f8fbff 100%);
}

/* Student calendar (attendance.php) */
body[data-ui-theme="modern-polished"] .cal-grid {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    padding: 0.5rem;
    background: #fff;
}

body[data-ui-theme="modern-polished"] .cal-day {
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    background: #f9fbff;
}

body[data-ui-theme="modern-polished"] .cal-day:hover {
    border-color: rgba(37, 99, 235, 0.3);
    background: #f3f8ff;
}

/* Dashboard stat cards and bordered variants */
body[data-ui-theme="modern-polished"] .card.border-left-primary,
body[data-ui-theme="modern-polished"] .card.border-left-success,
body[data-ui-theme="modern-polished"] .card.border-left-warning,
body[data-ui-theme="modern-polished"] .card.border-left-info {
    border-left-width: 5px;
}

body[data-ui-theme="modern-polished"] .h5,
body[data-ui-theme="modern-polished"] .h4,
body[data-ui-theme="modern-polished"] .h3 {
    font-weight: 750;
}

/* Modal and toast consistency */
body[data-ui-theme="modern-polished"] .modal-content {
    border-radius: 16px;
}

body[data-ui-theme="modern-polished"] .modal-header {
    background: linear-gradient(120deg, #f8fbff 0%, #eff5ff 100%);
}

body[data-ui-theme="modern-polished"] .toast {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

body[data-ui-theme="modern-polished"] .modal-dialog {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Shared page-specific components */
body[data-ui-theme="modern-polished"] .sms-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    background: linear-gradient(120deg, #f8fbff 0%, #eff4fb 100%) !important;
}

body[data-ui-theme="modern-polished"] .breadcrumb {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 0.55rem 0.85rem;
}

body[data-ui-theme="modern-polished"] .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #94a3b8;
}

body[data-ui-theme="modern-polished"] .list-group-item {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.82);
}

body[data-ui-theme="modern-polished"] .nav-tabs {
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

body[data-ui-theme="modern-polished"] .nav-tabs .nav-link {
    border: 1px solid transparent;
    border-radius: 10px 10px 0 0;
    color: #475569;
    font-weight: 600;
}

body[data-ui-theme="modern-polished"] .nav-tabs .nav-link:hover {
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(248, 251, 255, 0.9);
}

body[data-ui-theme="modern-polished"] .nav-tabs .nav-link.active {
    color: #0b5ed7;
    border-color: rgba(148, 163, 184, 0.28) rgba(148, 163, 184, 0.28) #fff;
    background: #fff;
}

body[data-ui-theme="modern-polished"] .progress {
    height: 8px;
    border-radius: 999px;
    background-color: #e8eef6;
}

body[data-ui-theme="modern-polished"] .progress .progress-bar {
    border-radius: 999px;
}

body[data-ui-theme="modern-polished"] .student-search-dropdown {
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    background: #fff;
}

body[data-ui-theme="modern-polished"] .student-search-item {
    border-radius: 8px;
    font-weight: 500;
}

body[data-ui-theme="modern-polished"] .student-search-item:hover {
    background: #eff6ff;
}

body[data-ui-theme="modern-polished"] .timeline::before {
    background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%);
}

body[data-ui-theme="modern-polished"] .timeline-marker {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

body[data-ui-theme="modern-polished"] .timeline-content {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 12px;
    background: linear-gradient(130deg, #ffffff 0%, #f8fbff 100%);
}

body[data-ui-theme="modern-polished"] .metric-card {
    border-color: rgba(148, 163, 184, 0.2) !important;
    border-radius: 12px !important;
    background: linear-gradient(130deg, #ffffff 0%, #f9fbff 100%);
}

body[data-ui-theme="modern-polished"] .summary-stat {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px !important;
    background: linear-gradient(130deg, #ffffff 0%, #f9fbff 100%) !important;
}

body[data-ui-theme="modern-polished"] .card-clickable:hover {
    background: #eff6ff !important;
}

body[data-ui-theme="modern-polished"] .stat-card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, #f6faff 52%, #eef6ff 100%);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.09);
}

body[data-ui-theme="modern-polished"] .stat-card:hover {
    border-color: rgba(37, 99, 235, 0.24);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.14);
}

body[data-ui-theme="modern-polished"] .stat-icon {
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

body[data-ui-theme="modern-polished"] .stat-number {
    letter-spacing: -0.02em;
}

body[data-ui-theme="modern-polished"] .batch-metric {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    background: linear-gradient(130deg, #ffffff 0%, #f9fbff 100%);
}

body[data-ui-theme="modern-polished"] .batch-metric-label {
    color: #64748b;
}

body[data-ui-theme="modern-polished"] .batch-metric-value {
    color: #0f172a;
}

body[data-ui-theme="modern-polished"] .sms-segmented {
    border-radius: 14px;
    border-color: rgba(148, 163, 184, 0.26);
    background: #fff;
}

body[data-ui-theme="modern-polished"] .navbar-brand {
    font-weight: 800;
    letter-spacing: -0.02em;
}

body[data-ui-theme="modern-polished"].auth-page {
    background:
        radial-gradient(circle at 10% 10%, rgba(37, 99, 235, 0.14), transparent 32%),
        radial-gradient(circle at 90% 0%, rgba(8, 145, 178, 0.12), transparent 34%),
        linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

body[data-ui-theme="modern-polished"].auth-page .auth-shell,
body[data-ui-theme="modern-polished"].auth-page .login-container {
    position: relative;
}

body[data-ui-theme="modern-polished"].auth-page .auth-card,
body[data-ui-theme="modern-polished"].auth-page .login-container .card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.14);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

body[data-ui-theme="modern-polished"].auth-page h3 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    letter-spacing: -0.04em;
}

body[data-ui-theme="modern-polished"].auth-page .text-muted {
    color: #52627a !important;
}

body[data-ui-theme="modern-polished"].auth-page .auth-brand-mark {
    width: 88px;
    height: 88px;
    margin-inline: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(11, 94, 215, 0.14), rgba(8, 145, 178, 0.16));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

body[data-ui-theme="modern-polished"].auth-page .card-header {
    border-radius: 24px 24px 0 0 !important;
    background: linear-gradient(135deg, #0b5ed7 0%, #2563eb 55%, #0891b2 100%) !important;
    color: #fff;
}

body[data-ui-theme="modern-polished"].auth-page .btn-primary {
    min-height: 48px;
}

body[data-ui-theme="modern-polished"].public-landing {
    background:
        radial-gradient(circle at 8% 12%, rgba(37, 99, 235, 0.16), transparent 34%),
        radial-gradient(circle at 86% 4%, rgba(8, 145, 178, 0.12), transparent 32%),
        linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

body[data-ui-theme="modern-polished"].public-landing .public-nav {
    backdrop-filter: blur(16px);
}

body[data-ui-theme="modern-polished"].public-landing .public-browser-frame {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.05), rgba(37, 99, 235, 0.06));
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.14);
}

body[data-ui-theme="modern-polished"].public-landing .public-feature-card {
    background: rgba(255,255,255,0.92);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

body[data-ui-theme="modern-polished"].public-landing .public-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 46px rgba(37, 99, 235, 0.14);
}

body[data-ui-theme="modern-polished"]::before,
body[data-ui-theme="modern-polished"]::after {
    content: "";
    position: fixed;
    inset: auto;
    pointer-events: none;
    z-index: 0;
    filter: blur(2px);
}

body[data-ui-theme="modern-polished"]::before {
    top: -8rem;
    right: -4rem;
    width: 22rem;
    height: 22rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.16) 0%, rgba(37, 99, 235, 0) 72%);
}

body[data-ui-theme="modern-polished"]::after {
    left: -7rem;
    bottom: -8rem;
    width: 26rem;
    height: 26rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(8, 145, 178, 0.14) 0%, rgba(8, 145, 178, 0) 74%);
}

body[data-ui-theme="modern-polished"] .navbar {
    position: relative;
    isolation: isolate;
}

body[data-ui-theme="modern-polished"] .navbar::after {
    content: "";
    position: absolute;
    left: 1.1rem;
    right: 1.1rem;
    bottom: -1px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(11, 94, 215, 0.16) 0%, rgba(37, 99, 235, 0.7) 38%, rgba(8, 145, 178, 0.78) 100%);
    opacity: 0.68;
    z-index: -1;
}

body[data-ui-theme="modern-polished"] .navbar-brand {
    background-image: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    text-shadow: none;
}

body[data-ui-theme="modern-polished"] .navbar .nav-link.active {
    background: linear-gradient(135deg, rgba(11, 94, 215, 0.10), rgba(8, 145, 178, 0.10));
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.14);
}

body[data-ui-theme="modern-polished"] .card.shadow,
body[data-ui-theme="modern-polished"] .card.shadow-sm {
    border-color: rgba(203, 213, 225, 0.7);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08), 0 8px 20px rgba(37, 99, 235, 0.04);
}

body[data-ui-theme="modern-polished"] .card-header h5,
body[data-ui-theme="modern-polished"] .card-header h6,
body[data-ui-theme="modern-polished"] .card-header .m-0,
body[data-ui-theme="modern-polished"] .card-header .card-title {
    font-weight: 800;
    letter-spacing: -0.015em;
}

body[data-ui-theme="modern-polished"] .card-header .text-primary,
body[data-ui-theme="modern-polished"] .card-header .font-weight-bold.text-primary {
    color: #134a9f !important;
}

body[data-ui-theme="modern-polished"] .dashboard-welcome {
    position: relative;
    overflow: hidden;
    padding: 1.7rem 1.8rem;
    border: 1px solid rgba(203, 213, 225, 0.75);
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(244, 249, 255, 0.98) 60%, rgba(236, 246, 255, 0.94) 100%),
        linear-gradient(120deg, rgba(11, 94, 215, 0.04), rgba(8, 145, 178, 0.05));
    box-shadow: 0 26px 54px rgba(15, 23, 42, 0.08);
}

body[data-ui-theme="modern-polished"] .dashboard-welcome::after {
    content: "";
    position: absolute;
    top: -4rem;
    right: -3rem;
    width: 14rem;
    height: 14rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(37, 99, 235, 0) 72%);
    pointer-events: none;
}

body[data-ui-theme="modern-polished"] .dashboard-welcome h1,
body[data-ui-theme="modern-polished"] .dashboard-welcome .h2 {
    margin-bottom: 0.35rem !important;
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 1.04;
}

body[data-ui-theme="modern-polished"] .dashboard-welcome p.text-muted {
    max-width: 46rem;
    font-size: 1rem;
    line-height: 1.68;
    color: #475569 !important;
}

body[data-ui-theme="modern-polished"] .admin-context-hero {
    border: 1px solid rgba(203, 213, 225, 0.76) !important;
    border-radius: 28px !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.10), transparent 34%),
        linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(247, 250, 255, 0.98) 56%, rgba(238, 246, 255, 0.96) 100%) !important;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.09) !important;
}

body[data-ui-theme="modern-polished"] .admin-context-kicker {
    color: #0f4bb4 !important;
}

body[data-ui-theme="modern-polished"] .admin-context-title {
    letter-spacing: -0.04em;
}

body[data-ui-theme="modern-polished"] .admin-context-subtitle {
    color: #475569 !important;
}

body[data-ui-theme="modern-polished"] .admin-context-chip {
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(247, 250, 255, 0.98)) !important;
    border-color: rgba(203, 213, 225, 0.82) !important;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.05), inset 0 1px 0 rgba(255,255,255,0.92);
}

body[data-ui-theme="modern-polished"] .admin-context-chip-label {
    color: #64748b;
    letter-spacing: 0.06em;
}

body[data-ui-theme="modern-polished"] .admin-context-chip-value {
    color: #0f172a;
}

body[data-ui-theme="modern-polished"] .stat-card,
body[data-ui-theme="modern-polished"] .metric-card,
body[data-ui-theme="modern-polished"] .summary-stat,
body[data-ui-theme="modern-polished"] .batch-metric,
body[data-ui-theme="modern-polished"] .focus-mini-card {
    position: relative;
    overflow: hidden;
}

body[data-ui-theme="modern-polished"] .stat-card::before,
body[data-ui-theme="modern-polished"] .metric-card::before,
body[data-ui-theme="modern-polished"] .summary-stat::before,
body[data-ui-theme="modern-polished"] .batch-metric::before,
body[data-ui-theme="modern-polished"] .focus-mini-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0b5ed7, #2563eb 58%, #0891b2);
    opacity: 0.92;
}

body[data-ui-theme="modern-polished"] .stat-icon {
    background: linear-gradient(135deg, rgba(11, 94, 215, 0.16), rgba(8, 145, 178, 0.18));
    border-radius: 18px;
}

body[data-ui-theme="modern-polished"] .stat-label,
body[data-ui-theme="modern-polished"] .batch-metric-label,
body[data-ui-theme="modern-polished"] .focus-mini-card small {
    letter-spacing: 0.04em;
    color: #64748b !important;
}

body[data-ui-theme="modern-polished"] .focus-mini-card {
    padding: 1rem 1.05rem;
    border: 1px solid rgba(203, 213, 225, 0.72);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(245, 249, 255, 0.98));
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

body[data-ui-theme="modern-polished"] .action-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(140deg, rgba(255,255,255,0.98), rgba(244, 249, 255, 1));
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

body[data-ui-theme="modern-polished"] .action-card::after {
    content: "";
    position: absolute;
    top: -1.7rem;
    right: -1.7rem;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.18), rgba(37, 99, 235, 0));
    pointer-events: none;
}

body[data-ui-theme="modern-polished"] .table-responsive {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
}

body[data-ui-theme="modern-polished"] .table {
    margin-bottom: 0;
}

body[data-ui-theme="modern-polished"].page-project-evaluation .card,
body[data-ui-theme="modern-polished"].page-project-evaluation-migration .card {
    overflow: visible;
}

body[data-ui-theme="modern-polished"].page-project-evaluation .navbar,
body[data-ui-theme="modern-polished"].page-project-evaluation-migration .navbar {
    z-index: 5000 !important;
    isolation: isolate;
}

body[data-ui-theme="modern-polished"].page-project-evaluation .dropdown-menu,
body[data-ui-theme="modern-polished"].page-project-evaluation-migration .dropdown-menu {
    z-index: 5100 !important;
}

body[data-ui-theme="modern-polished"].page-project-evaluation .table-responsive,
body[data-ui-theme="modern-polished"].page-project-evaluation-migration .table-responsive {
    overflow-x: auto;
    overflow-y: visible;
}

body[data-ui-theme="modern-polished"].page-project-evaluation .table td,
body[data-ui-theme="modern-polished"].page-project-evaluation .table th,
body[data-ui-theme="modern-polished"].page-project-evaluation-migration .table td,
body[data-ui-theme="modern-polished"].page-project-evaluation-migration .table th {
    position: relative;
}

body[data-ui-theme="modern-polished"] .table th {
    color: #234062;
    text-transform: uppercase;
}

body[data-ui-theme="modern-polished"] .table tbody tr {
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

body[data-ui-theme="modern-polished"] .table-hover > tbody > tr:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 999px rgba(37, 99, 235, 0.03);
}

body[data-ui-theme="modern-polished"] .btn-primary,
body[data-ui-theme="modern-polished"] .btn-success,
body[data-ui-theme="modern-polished"] .btn-danger,
body[data-ui-theme="modern-polished"] .btn-warning,
body[data-ui-theme="modern-polished"] .btn-outline-primary,
body[data-ui-theme="modern-polished"] .btn-outline-secondary,
body[data-ui-theme="modern-polished"] .btn-light {
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}

body[data-ui-theme="modern-polished"] .btn-primary:hover,
body[data-ui-theme="modern-polished"] .btn-success:hover,
body[data-ui-theme="modern-polished"] .btn-danger:hover,
body[data-ui-theme="modern-polished"] .btn-warning:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.22);
}

body[data-ui-theme="modern-polished"] .btn-outline-primary,
body[data-ui-theme="modern-polished"] .btn-outline-secondary {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
}

body[data-ui-theme="modern-polished"] .btn-outline-primary:hover,
body[data-ui-theme="modern-polished"] .btn-outline-secondary:hover,
body[data-ui-theme="modern-polished"] .btn-light:hover {
    transform: translateY(-1px);
}

body[data-ui-theme="modern-polished"] .alert-info {
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.95), rgba(240, 249, 255, 0.95));
    border-color: rgba(125, 211, 252, 0.5);
}

body[data-ui-theme="modern-polished"] .alert-success {
    background: linear-gradient(135deg, rgba(220, 252, 231, 0.96), rgba(240, 253, 244, 0.96));
    border-color: rgba(134, 239, 172, 0.55);
}

body[data-ui-theme="modern-polished"] .alert-warning {
    background: linear-gradient(135deg, rgba(254, 249, 195, 0.96), rgba(255, 251, 235, 0.96));
    border-color: rgba(253, 224, 71, 0.55);
}

body[data-ui-theme="modern-polished"] .alert-danger {
    background: linear-gradient(135deg, rgba(254, 226, 226, 0.96), rgba(255, 241, 242, 0.96));
    border-color: rgba(252, 165, 165, 0.55);
}

body[data-ui-theme="modern-polished"] .entry-layout-protected .form-control,
body[data-ui-theme="modern-polished"] .entry-layout-protected .form-select,
body[data-ui-theme="modern-polished"] .entry-layout-protected .btn,
body[data-ui-theme="modern-polished"] .entry-layout-protected .table-responsive,
body[data-ui-theme="modern-polished"] .entry-layout-protected .table th,
body[data-ui-theme="modern-polished"] .entry-layout-protected .table td {
    transition: none;
}

body[data-ui-theme="modern-polished"].page-dashboard .card {
    border-color: rgba(203, 213, 225, 0.78);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.075), 0 8px 20px rgba(37, 99, 235, 0.035);
}

body[data-ui-theme="modern-polished"].page-dashboard .card-header {
    position: relative;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

body[data-ui-theme="modern-polished"].page-dashboard .card-header::before {
    content: "";
    position: absolute;
    left: 1.1rem;
    right: 1.1rem;
    top: 0;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0b5ed7 0%, #2563eb 58%, #0891b2 100%);
    opacity: 0.9;
}

body[data-ui-theme="modern-polished"].page-dashboard .card-header h5,
body[data-ui-theme="modern-polished"].page-dashboard .card-header h6,
body[data-ui-theme="modern-polished"].page-dashboard .card-header .m-0 {
    color: #12385f !important;
}

body[data-ui-theme="modern-polished"].page-dashboard .table-responsive {
    border-radius: 16px;
}

body[data-ui-theme="modern-polished"].page-dashboard .table th {
    font-size: 0.76rem;
    letter-spacing: 0.085em;
}

body[data-ui-theme="modern-polished"].page-dashboard .table td {
    vertical-align: middle;
}

body[data-ui-theme="modern-polished"].role-admin.page-dashboard .stat-card {
    padding: 2rem 1.5rem;
}

body[data-ui-theme="modern-polished"].role-admin.page-dashboard .avatar-sm {
    border: 2px solid rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
}

body[data-ui-theme="modern-polished"].role-admin.page-dashboard .batch-card {
    border: 1px solid rgba(203, 213, 225, 0.82);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(246, 250, 255, 0.98));
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
}

body[data-ui-theme="modern-polished"].role-admin.page-dashboard .batch-header {
    border-bottom-color: rgba(191, 219, 254, 0.72);
}

body[data-ui-theme="modern-polished"].role-teacher.page-dashboard .action-card {
    min-height: 126px;
}

body[data-ui-theme="modern-polished"].role-teacher.page-dashboard .action-card span {
    font-weight: 700;
    letter-spacing: -0.01em;
}

body[data-ui-theme="modern-polished"].role-teacher.page-dashboard .focus-mini-card strong {
    font-size: 1.35rem;
    letter-spacing: -0.025em;
    color: #0f172a;
}

body[data-ui-theme="modern-polished"].role-teacher.page-dashboard .focus-mini-card strong.text-success {
    color: #15803d !important;
}

body[data-ui-theme="modern-polished"].role-teacher.page-dashboard .focus-mini-card strong.text-warning {
    color: #a16207 !important;
}

body[data-ui-theme="modern-polished"].role-teacher.page-dashboard .modal-content {
    border-radius: 22px;
    box-shadow: 0 26px 58px rgba(15, 23, 42, 0.14);
}

body[data-ui-theme="modern-polished"].role-student.page-dashboard .card-header {
    background: linear-gradient(120deg, rgba(255,255,255,0.98) 0%, rgba(244, 248, 255, 0.98) 50%, rgba(237, 247, 255, 0.96) 100%);
}

body[data-ui-theme="modern-polished"].role-student.page-dashboard .card-body h5 {
    font-weight: 800;
    letter-spacing: -0.015em;
}

body[data-ui-theme="modern-polished"].role-student.page-dashboard .progress {
    height: 12px;
    background: linear-gradient(90deg, #e7eef8, #edf3fb);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}

body[data-ui-theme="modern-polished"].role-student.page-dashboard .progress .progress-bar {
    font-size: 0.67rem;
    font-weight: 700;
    line-height: 12px;
}

body[data-ui-theme="modern-polished"].role-student.page-dashboard .btn-sm.btn-primary,
body[data-ui-theme="modern-polished"].role-student.page-dashboard .btn-sm.btn-outline-primary {
    min-height: 36px;
    padding-inline: 0.9rem;
}

/* Mobile refinements */
@media (max-width: 991.98px) {
    body[data-ui-theme="modern-polished"] .container,
    body[data-ui-theme="modern-polished"] .container-fluid {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }

    body[data-ui-theme="modern-polished"] .navbar-brand {
        font-size: 1.25rem;
    }

    body[data-ui-theme="modern-polished"] .navbar .nav-link {
        padding: 0.55rem 0.75rem !important;
    }

    body[data-ui-theme="modern-polished"] .card-body {
        padding: 1.25rem;
    }

    body[data-ui-theme="modern-polished"] .card-header {
        padding: 1rem 1.15rem;
    }

    body[data-ui-theme="modern-polished"] .dashboard-welcome {
        padding: 1.35rem 1.15rem;
        border-radius: 20px;
    }

    body[data-ui-theme="modern-polished"] .btn {
        min-height: 42px;
    }

    body[data-ui-theme="modern-polished"] .table th,
    body[data-ui-theme="modern-polished"] .table td {
        padding: 0.8rem 0.65rem;
    }

    body[data-ui-theme="modern-polished"] .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
    }

    body[data-ui-theme="modern-polished"] .nav-tabs .nav-item {
        flex: 0 0 auto;
    }

    body[data-ui-theme="modern-polished"] .stat-card {
        border-radius: 14px;
    }

    body[data-ui-theme="modern-polished"] .action-card,
    body[data-ui-theme="modern-polished"] .course-card {
        border-radius: 12px;
    }

    body[data-ui-theme="modern-polished"] .breadcrumb {
        padding: 0.48rem 0.75rem;
    }

    body[data-ui-theme="modern-polished"] .admin-context-hero {
        border-radius: 22px !important;
    }

    body[data-ui-theme="modern-polished"] .focus-mini-card {
        padding: 0.9rem 0.95rem;
    }

    body[data-ui-theme="modern-polished"].page-dashboard .dashboard-welcome h1,
    body[data-ui-theme="modern-polished"].page-dashboard .dashboard-welcome .h2 {
        font-size: 1.8rem;
    }

    body[data-ui-theme="modern-polished"].page-dashboard .card-header::before {
        left: 0.9rem;
        right: 0.9rem;
    }

    body[data-ui-theme="modern-polished"].role-teacher.page-dashboard .action-card {
        min-height: 108px;
    }

    body[data-ui-theme="modern-polished"].role-student.page-dashboard .table th,
    body[data-ui-theme="modern-polished"].role-student.page-dashboard .table td {
        padding: 0.72rem 0.6rem;
    }

    body[data-ui-theme="modern-polished"] .modal-dialog {
        margin: 0.6rem;
    }
}

/* Dark Mode Theme */
body[data-ui-theme="dark"] {
    --primary: #818cf8;
    --primary-light: #a5b4fc;
    --primary-dark: #6366f1;
    --success: #34d399;
    --success-light: #6ee7b7;
    --warning: #fbbf24;
    --warning-light: #fcd34d;
    --danger: #f87171;
    --danger-light: #fca5a5;
    --info: #22d3ee;
    --info-light: #67e8f9;
    --light: #0f172a;
    --light-gray: #1e293b;
    --dark: #f1f5f9;
    --dark-gray: #94a3b8;
    --border: #334155;
    --border-light: #1e293b;
    --bs-secondary-color: #94a3b8;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --gradient-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color-scheme: dark;
    background: var(--light);
    color: var(--dark);
}

body[data-ui-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.95) !important;
    border-bottom: 1px solid rgba(51, 65, 85, 0.8);
}

body[data-ui-theme="dark"] .navbar-brand {
    color: var(--primary) !important;
}

body[data-ui-theme="dark"] .nav-link {
    color: var(--dark) !important;
}

body[data-ui-theme="dark"] .nav-link:hover {
    background: rgba(129, 140, 248, 0.1);
}

body[data-ui-theme="dark"] .card {
    background: #1e293b;
    border: 1px solid rgba(51, 65, 85, 0.8);
}

body[data-ui-theme="dark"] .card-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-bottom: 1px solid rgba(51, 65, 85, 0.8);
    color: var(--dark);
}

body[data-ui-theme="dark"] .card-header::before {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
}

body[data-ui-theme="dark"] .table {
    background: #1e293b;
    --bs-table-bg: #1e293b;
    --bs-table-color: #f1f5f9;
    --bs-table-border-color: #334155;
    --bs-table-striped-bg: rgba(255,255,255,0.02);
}

body[data-ui-theme="dark"] .table th {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--dark);
}

body[data-ui-theme="dark"] .table td {
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

body[data-ui-theme="dark"] .table-hover tbody tr:hover {
    background: rgba(129, 140, 248, 0.05);
}

body[data-ui-theme="dark"] .table-light {
    --bs-table-bg: #0f172a;
    --bs-table-color: var(--dark);
    --bs-table-border-color: #334155;
}

body[data-ui-theme="dark"] .table-danger {
    --bs-table-bg: rgba(248, 113, 113, 0.1);
    --bs-table-color: #fca5a5;
}

body[data-ui-theme="dark"] .table-secondary {
    --bs-table-bg: rgba(148, 163, 184, 0.1);
    --bs-table-color: #cbd5e1;
}

body[data-ui-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg: rgba(255, 255, 255, 0.02);
    color: var(--dark);
}

body[data-ui-theme="dark"] .table-bordered {
    border-color: #334155;
}

body[data-ui-theme="dark"] .table-bordered th,
body[data-ui-theme="dark"] .table-bordered td {
    border-color: #334155;
}

body[data-ui-theme="dark"] .form-control,
body[data-ui-theme="dark"] .form-select {
    background: #1e293b;
    border-color: #334155;
    color: var(--dark);
}

body[data-ui-theme="dark"] .form-control:focus,
body[data-ui-theme="dark"] .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.15);
}

body[data-ui-theme="dark"] .form-label {
    color: var(--dark);
}

body[data-ui-theme="dark"] .dropdown-menu {
    background: #1e293b;
    border: 1px solid rgba(51, 65, 85, 0.8);
}

body[data-ui-theme="dark"] .dropdown-item {
    color: var(--dark);
}

body[data-ui-theme="dark"] .dropdown-item:hover {
    background: rgba(129, 140, 248, 0.1);
}

body[data-ui-theme="dark"] .modal-content {
    background: #1e293b;
    border: 1px solid rgba(51, 65, 85, 0.8);
}

body[data-ui-theme="dark"] .modal-header,
body[data-ui-theme="dark"] .modal-footer {
    border-color: #334155;
}

body[data-ui-theme="dark"] .badge {
    box-shadow: none;
}

body[data-ui-theme="dark"] .alert {
    border: 1px solid rgba(51, 65, 85, 0.8);
}

body[data-ui-theme="dark"] .border {
    border-color: #334155 !important;
}

body[data-ui-theme="dark"] .text-muted {
    color: #94a3b8 !important;
}
body[data-ui-theme="dark"] .form-text {
    color: #94a3b8 !important;
}

body[data-ui-theme="dark"] .bg-light {
    background: #1e293b !important;
}

body[data-ui-theme="dark"] .btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

body[data-ui-theme="dark"] .btn-secondary {
    background: #1e293b;
    border-color: #334155;
    color: var(--dark);
}
body[data-ui-theme="dark"] .btn-secondary:hover {
    background: #0f172a;
    border-color: #475569;
    color: var(--dark);
}

body[data-ui-theme="dark"] .btn-outline-secondary {
    border-color: #475569;
    color: #94a3b8;
}

body[data-ui-theme="dark"] .btn-light {
    background: #1e293b;
    border-color: #334155;
    color: var(--dark);
}

body[data-ui-theme="dark"] .list-group-item {
    background: #1e293b;
    border-color: #334155;
    color: var(--dark);
}

body[data-ui-theme="dark"] .page-link {
    background: #1e293b;
    border-color: #334155;
    color: var(--dark);
}

body[data-ui-theme="dark"] .page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: var(--primary);
}

body[data-ui-theme="dark"] .progress {
    background: #0f172a;
}

body[data-ui-theme="dark"] .breadcrumb {
    background: rgba(15, 23, 42, 0.75);
}

body[data-ui-theme="dark"] .nav-tabs .nav-link {
    color: #94a3b8;
}

body[data-ui-theme="dark"] .nav-tabs .nav-link.active {
    background: #1e293b;
    border-color: #334155 #334155 #1e293b;
    color: var(--dark);
}

body[data-ui-theme="dark"] .stat-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
    border-color: rgba(51, 65, 85, 0.8);
}

body[data-ui-theme="dark"] .stat-card-inline {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
    border-color: rgba(51, 65, 85, 0.8);
}
body[data-ui-theme="dark"] .stat-card-inline .h5 {
    color: var(--dark) !important;
}
body[data-ui-theme="dark"] .stat-card-inline .col-auto i {
    color: var(--dark-gray);
    opacity: 0.4;
}
body[data-ui-theme="dark"] .stat-card-inline .text-xs {
    color: var(--primary-light) !important;
}
body[data-ui-theme="dark"] .stat-card-inline .text-xs.text-success { color: var(--success) !important; }
body[data-ui-theme="dark"] .stat-card-inline .text-xs.text-warning { color: var(--warning) !important; }
body[data-ui-theme="dark"] .stat-card-inline .text-xs.text-danger { color: var(--danger) !important; }
body[data-ui-theme="dark"] .stat-card-inline .text-xs.text-info { color: var(--info) !important; }

body[data-ui-theme="dark"] .stat-icon {
    background: color-mix(in srgb, var(--primary) 12%, transparent);
}

body[data-ui-theme="dark"] .dashboard-hero,
body[data-ui-theme="dark"] .admin-context-hero {
    background: radial-gradient(circle at top right, rgba(129, 140, 248, 0.08), transparent 28%),
                linear-gradient(180deg, rgba(30, 41, 59, 0.97), rgba(15, 23, 42, 0.98));
    border-color: rgba(51, 65, 85, 0.6);
}

body[data-ui-theme="dark"] .dashboard-kicker {
    background: rgba(129, 140, 248, 0.15);
    color: var(--primary);
}

body[data-ui-theme="dark"] .admin-context-kicker {
    background: color-mix(in srgb, var(--primary) 15%, transparent);
    border-color: color-mix(in srgb, var(--primary) 20%, transparent);
    color: var(--primary-light);
}

body[data-ui-theme="dark"] .dashboard-meta-chip,
body[data-ui-theme="dark"] .admin-context-chip {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(51, 65, 85, 0.6);
    color: var(--dark);
}

body[data-ui-theme="dark"] .action-card {
    background: #1e293b;
    border-color: rgba(51, 65, 85, 0.6);
    color: var(--dark);
}

body[data-ui-theme="dark"] .action-card:hover {
    background: rgba(129, 140, 248, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    border-color: rgba(129, 140, 248, 0.3);
}

body[data-ui-theme="dark"] .focus-mini-card {
    background: var(--light-gray) !important;
    border-color: var(--border) !important;
}

body[data-ui-theme="dark"] .avatar-sm,
body[data-ui-theme="dark"] .avatar-lg {
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
}

body[data-ui-theme="dark"] .teacher-data-table thead th {
    background: #0f172a;
    color: var(--dark);
}

body[data-ui-theme="dark"] .auth-page .auth-card {
    background: rgba(30, 41, 59, 0.96);
    border: 1px solid rgba(51, 65, 85, 0.6);
}

body[data-ui-theme="dark"].auth-page {
    background: radial-gradient(circle at 10% 10%, rgba(129, 140, 248, 0.08), transparent 32%),
                radial-gradient(circle at 90% 0%, rgba(99, 102, 241, 0.06), transparent 34%),
                linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
}

body[data-ui-theme="dark"] .auth-brand-mark {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(129, 140, 248, 0.2));
}

body[data-ui-theme="dark"] ::-webkit-scrollbar-track {
    background: #0f172a;
}

body[data-ui-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #334155;
}

body[data-ui-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

body[data-ui-theme="dark"] .table-responsive {
    border-color: rgba(51, 65, 85, 0.6);
}

body[data-ui-theme="dark"] .hero-filter-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.98));
    border-color: rgba(51, 65, 85, 0.6);
}

body[data-ui-theme="dark"] .dashboard-panel-card,
body[data-ui-theme="dark"] .resource-panel {
    background: #1e293b;
    border-color: rgba(51, 65, 85, 0.6);
}

body[data-ui-theme="dark"] .section-kicker {
    color: #94a3b8;
}

body[data-ui-theme="dark"] .batch-card {
    background: #1e293b;
    border-color: rgba(51, 65, 85, 0.6);
}

body[data-ui-theme="dark"] .batch-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-bottom-color: rgba(51, 65, 85, 0.6);
}

body[data-ui-theme="dark"] .sms-footer {
    background: #0f172a !important;
    border-top: 1px solid rgba(51, 65, 85, 0.6);
}

body[data-ui-theme="dark"] .sms-segmented {
    border-color: #334155;
}

body[data-ui-theme="dark"] .sms-segmented .btn {
    background: #0f172a;
    color: #94a3b8;
    border-color: #334155;
}

body[data-ui-theme="dark"] .teacher-table-wrap {
    border-color: #334155;
    background: #1e293b;
}

body[data-ui-theme="dark"].public-landing {
    background: #0f172a !important;
    color: #f1f5f9;
}
body[data-ui-theme="dark"].public-landing .text-dark,
body[data-ui-theme="dark"].public-landing .text-slate-900,
body[data-ui-theme="dark"].public-landing h1,
body[data-ui-theme="dark"].public-landing h2 {
    color: #f1f5f9 !important;
}
body[data-ui-theme="dark"].public-landing .text-slate-700,
body[data-ui-theme="dark"].public-landing .text-slate-600 {
    color: #94a3b8 !important;
}

body[data-ui-theme="dark"] .public-feature-card {
    background: rgba(30, 41, 59, 0.92);
    border-color: rgba(51, 65, 85, 0.6);
}

body[data-ui-theme="dark"] .public-nav span {
    color: #f1f5f9 !important;
}

/* Dark mode: catch remaining inline-style patterns */
body[data-ui-theme="dark"] .sheet-wrap,
body[data-ui-theme="dark"] .marksheet-page,
body[data-ui-theme="dark"] .admit-card-wrap {
    background: var(--light) !important;
    border-color: var(--border) !important;
    color: var(--dark) !important;
}
body[data-ui-theme="dark"] .sheet-wrap th,
body[data-ui-theme="dark"] .marksheet-page th {
    background: var(--light-gray) !important;
    color: var(--dark) !important;
    border-color: var(--border) !important;
}
body[data-ui-theme="dark"] .sheet-wrap td,
body[data-ui-theme="dark"] .marksheet-page td {
    border-color: var(--border) !important;
}
body[data-ui-theme="dark"] .batch-stats {
    background: var(--light) !important;
}
body[data-ui-theme="dark"] .promotion-card {
    border-color: var(--border) !important;
}
body[data-ui-theme="dark"] .focus-mini-card {
    background: var(--light-gray) !important;
    border-color: var(--border) !important;
}
body[data-ui-theme="dark"] .search-dropdown-wrap {
    background: var(--light) !important;
    border-color: var(--border) !important;
}
body[data-ui-theme="dark"] .search-dropdown-wrap .search-item {
    background: var(--light) !important;
    color: var(--dark) !important;
}
body[data-ui-theme="dark"] .search-dropdown-wrap .search-item:hover {
    background: rgba(99, 102, 241, 0.1) !important;
}
body[data-ui-theme="dark"] .attendance-export-btn {
    background: #059669 !important;
    border-color: #059669 !important;
}

/* Dark mode: component gaps */
body[data-ui-theme="dark"] .timeline-content {
    background: var(--light);
    border-color: var(--border);
}
body[data-ui-theme="dark"] .timeline-marker {
    background: var(--dark);
    border-color: var(--primary);
}
body[data-ui-theme="dark"] .skeleton {
    background: linear-gradient(90deg, var(--light-gray) 25%, var(--light) 50%, var(--light-gray) 75%);
}
body[data-ui-theme="dark"] .sortable-table th.sortable:hover {
    background: color-mix(in srgb, var(--primary) 10%, var(--light-gray));
}
body[data-ui-theme="dark"] .sortable-table th.sort-asc,
body[data-ui-theme="dark"] .sortable-table th.sort-desc {
    background: color-mix(in srgb, var(--primary) 15%, var(--light-gray));
}
body[data-ui-theme="dark"] .insights-table-wrap {
    border-color: var(--border);
}
body[data-ui-theme="dark"] .insights-table thead th {
    background: var(--light-gray);
    color: var(--dark);
    border-bottom-color: var(--border);
}
body[data-ui-theme="dark"] .insights-table tbody td {
    border-bottom-color: var(--border-light);
}
body[data-ui-theme="dark"] .section-kicker {
    color: var(--primary-light);
    background: color-mix(in srgb, var(--primary) 20%, transparent);
}
body[data-ui-theme="dark"] .metadata-label {
    color: var(--dark-gray);
}
body[data-ui-theme="dark"] .metadata-value {
    color: var(--dark);
}
body[data-ui-theme="dark"] .mw-140,
body[data-ui-theme="dark"] .mw-320 {
    color: inherit;
}
body[data-ui-theme="dark"] .admin-context-title {
    color: var(--dark);
}
body[data-ui-theme="dark"] .admin-context-subtitle {
    color: var(--dark-gray);
}
body[data-ui-theme="dark"] .admin-context-breadcrumb .breadcrumb-item,
body[data-ui-theme="dark"] .admin-context-breadcrumb .breadcrumb-item.active {
    color: var(--dark-gray);
}
body[data-ui-theme="dark"] .admin-context-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: var(--border);
}
body[data-ui-theme="dark"] .admin-context-breadcrumb .breadcrumb-item a:hover {
    color: var(--primary);
}
body[data-ui-theme="dark"] .admin-context-chip-label {
    color: var(--dark-gray);
}
body[data-ui-theme="dark"] .alert-success {
    color: var(--success);
}
body[data-ui-theme="dark"] .alert-danger {
    color: var(--danger);
}
body[data-ui-theme="dark"] .alert-warning {
    color: var(--warning);
}
body[data-ui-theme="dark"] .alert-info {
    color: var(--info);
}
body[data-ui-theme="dark"] .badge.badge-warning {
    color: var(--dark) !important;
}
body[data-ui-theme="dark"] .badge.rubric-final {
    color: var(--dark) !important;
}
body[data-ui-theme="dark"] .stat-card:hover {
    border-color: color-mix(in srgb, var(--primary) 25%, var(--border));
}
body[data-ui-theme="dark"] .password-toggle-btn {
    color: var(--dark-gray);
}
body[data-ui-theme="dark"] .password-toggle-btn:hover,
body[data-ui-theme="dark"] .password-toggle-btn:focus {
    color: var(--primary);
}
body[data-ui-theme="dark"] .teacher-data-table {
    background: transparent;
}
body[data-ui-theme="dark"] .sms-sticky-actions {
    background: var(--light-gray);
}
body[data-ui-theme="dark"] .mobile-sticky-save {
    background: rgba(15, 23, 42, 0.95);
}
body[data-ui-theme="dark"] .navbar-collapse .dropdown-menu {
    background-color: #0f172a !important;
}
body[data-ui-theme="dark"] .batch-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}
body[data-ui-theme="dark"] .watchlist-item {
    background: var(--light-gray);
}
body[data-ui-theme="dark"] .status-pill {
    background: var(--light-gray);
}
body[data-ui-theme="dark"] .status-pill-present .status-input:checked + .status-pill-label {
    color: var(--success);
    background: color-mix(in srgb, var(--success) 20%, var(--light-gray));
}
body[data-ui-theme="dark"] .status-pill-absent .status-input:checked + .status-pill-label {
    color: var(--danger);
    background: color-mix(in srgb, var(--danger) 20%, var(--light-gray));
}
body[data-ui-theme="dark"] .status-pill-late .status-input:checked + .status-pill-label {
    color: var(--warning);
    background: color-mix(in srgb, var(--warning) 20%, var(--light-gray));
}
body[data-ui-theme="dark"] .mobile-sticky-count {
    color: var(--dark-gray);
}
body[data-ui-theme="dark"] .cal-cell {
    background: var(--light-gray);
}
body[data-ui-theme="dark"] .cal-cell.today {
    background: color-mix(in srgb, var(--primary) 15%, var(--light-gray));
    border-color: var(--primary);
}
body[data-ui-theme="dark"] .cal-dot.present {
    background: var(--success);
}
body[data-ui-theme="dark"] .cal-dot.late {
    background: var(--warning);
}
body[data-ui-theme="dark"] .cal-dot.absent {
    background: var(--danger);
}
body[data-ui-theme="dark"] .cal-day.present {
    background: color-mix(in srgb, var(--success) 20%, var(--light-gray));
}
body[data-ui-theme="dark"] .cal-day.absent {
    background: color-mix(in srgb, var(--danger) 20%, var(--light-gray));
}
body[data-ui-theme="dark"] .cal-day.late {
    background: color-mix(in srgb, var(--warning) 20%, var(--light-gray));
}
body[data-ui-theme="dark"] .cr-status-pill {
    background: var(--light-gray);
}
body[data-ui-theme="dark"] .cr-status-pill-present .cr-status-input:checked + .cr-status-pill-label {
    color: var(--success);
    background: color-mix(in srgb, var(--success) 20%, var(--light-gray));
}
body[data-ui-theme="dark"] .cr-status-pill-late .cr-status-input:checked + .cr-status-pill-label {
    color: var(--warning);
    background: color-mix(in srgb, var(--warning) 20%, var(--light-gray));
}
body[data-ui-theme="dark"] .cr-status-pill-absent .cr-status-input:checked + .cr-status-pill-label {
    color: var(--danger);
    background: color-mix(in srgb, var(--danger) 20%, var(--light-gray));
}
body[data-ui-theme="dark"] .cr-status-pill-excused .cr-status-input:checked + .cr-status-pill-label {
    color: var(--info);
    background: color-mix(in srgb, var(--info) 20%, var(--light-gray));
}
body[data-ui-theme="dark"] .stat-card-primary .stat-icon {
    color: var(--primary) !important;
    background: color-mix(in srgb, var(--primary) 15%, transparent);
}
body[data-ui-theme="dark"] .stat-card-success .stat-icon {
    color: var(--success) !important;
    background: color-mix(in srgb, var(--success) 15%, transparent);
}
body[data-ui-theme="dark"] .stat-card-warning .stat-icon {
    color: var(--warning) !important;
    background: color-mix(in srgb, var(--warning) 15%, transparent);
}
body[data-ui-theme="dark"] .stat-card-info .stat-icon {
    color: var(--info) !important;
    background: color-mix(in srgb, var(--info) 15%, transparent);
}
body[data-ui-theme="dark"] .pdf-disabled-btn::after {
    background: rgba(30, 41, 59, 0.95);
    color: var(--dark);
}
body[data-ui-theme="dark"] .students-grid .action-menu-btn:hover,
body[data-ui-theme="dark"] .students-grid .action-menu-btn:focus {
    background: rgba(129, 140, 248, 0.15);
}
body[data-ui-theme="dark"] .student-search-item:hover {
    background: rgba(129, 140, 248, 0.12);
}
body[data-ui-theme="dark"] .student-override-reason.is-invalid,
body[data-ui-theme="dark"] .student-override-reason.is-invalid:focus {
    background-color: rgba(248, 113, 113, 0.12) !important;
}
body[data-ui-theme="dark"] .attendance-export-disabled {
    background: color-mix(in srgb, var(--success) 15%, var(--light));
}
body[data-ui-theme="dark"] .resource-status-mirrored {
    color: var(--success);
    background: color-mix(in srgb, var(--success) 15%, transparent);
}
body[data-ui-theme="dark"] .resource-status-pending {
    color: var(--warning);
    background: color-mix(in srgb, var(--warning) 15%, transparent);
}
body[data-ui-theme="dark"] .resource-note-box {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.10), rgba(251, 191, 36, 0.06));
    border-color: rgba(251, 191, 36, 0.18);
    color: var(--warning);
}
body[data-ui-theme="dark"] .resource-note-box i {
    color: var(--warning);
}
body[data-ui-theme="dark"] .student-profile-page {
    background:
        radial-gradient(circle at 8% 0%, rgba(129, 140, 248, 0.08), transparent 40%),
        radial-gradient(circle at 96% 4%, rgba(52, 211, 153, 0.06), transparent 34%);
}
body[data-ui-theme="dark"] .student-profile-page .admin-context-hero::before {
    background: radial-gradient(circle, rgba(129, 140, 248, 0.18), transparent 68%);
}
body[data-ui-theme="dark"] .student-profile-page .admin-context-hero::after {
    background: radial-gradient(circle, rgba(52, 211, 153, 0.14), transparent 72%);
}
body[data-ui-theme="dark"] .student-profile-page .admin-context-breadcrumb .breadcrumb {
    border-color: rgba(51, 65, 85, 0.7);
    background: rgba(0, 0, 0, 0.15);
}
body[data-ui-theme="dark"] .student-profile-page .admin-context-chip {
    border-color: rgba(51, 65, 85, 0.75);
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.5), rgba(15, 23, 42, 0.3));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* ── Theme Selector UI (admin/change-theme.php) ── */
.theme-option {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.theme-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(15, 23, 42, .08);
    border-color: #cbd5e1;
}
.preview-box {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    font-size: 0.92rem;
}
.theme-preview {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    overflow: hidden;
}
.preview-top {
    height: 24px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
}
.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.55);
}
.preview-body {
    padding: 10px;
}
.preview-body .bar {
    height: 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}
.preview-body .pill {
    width: 45%;
    height: 8px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.row-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.row-cards > div {
    height: 42px;
    border-radius: 8px;
}

.theme-preview-default .preview-top { background: linear-gradient(135deg, #4f46e5, #6366f1); }
.theme-preview-default .preview-body { background: #f8fafc; }
.theme-preview-default .bar { background: #4f46e5; }
.theme-preview-default .pill { background: #94a3b8; }
.theme-preview-default .row-cards > div { background: #ffffff; border: 1px solid #e2e8f0; }

.theme-preview-editorial-ink .preview-top { background: linear-gradient(135deg, #0f172a, #334155); }
.theme-preview-editorial-ink .preview-body { background: #f7f6f3; }
.theme-preview-editorial-ink .bar { background: #1d4ed8; }
.theme-preview-editorial-ink .pill { background: #475569; }
.theme-preview-editorial-ink .row-cards > div { background: #ffffff; border: 1px solid #cbd5e1; }

.theme-preview-aurora-grid .preview-top { background: linear-gradient(120deg, #0f172a, #0ea5e9); }
.theme-preview-aurora-grid .preview-body { background: #f8fafc; }
.theme-preview-aurora-grid .bar { background: linear-gradient(90deg, #0ea5e9, #14b8a6); }
.theme-preview-aurora-grid .pill { background: #64748b; }
.theme-preview-aurora-grid .row-cards > div { background: #ffffff; border: 1px solid #bae6fd; }

.theme-preview-slate-atelier .preview-top { background: linear-gradient(125deg, #111827, #374151); }
.theme-preview-slate-atelier .preview-body { background: #f8fafc; }
.theme-preview-slate-atelier .bar { background: linear-gradient(90deg, #334155, #2563eb); }
.theme-preview-slate-atelier .pill { background: #6b7280; }
.theme-preview-slate-atelier .row-cards > div { background: #ffffff; border: 1px solid #d1d5db; }

.theme-preview-terracotta-ledger .preview-top { background: linear-gradient(125deg, #7c2d12, #b45309); }
.theme-preview-terracotta-ledger .preview-body { background: #fdf8f3; }
.theme-preview-terracotta-ledger .bar { background: linear-gradient(90deg, #9a3412, #c2410c); }
.theme-preview-terracotta-ledger .pill { background: #7c2d12; opacity: 0.8; }
.theme-preview-terracotta-ledger .row-cards > div { background: #fffaf5; border: 1px solid #f0d7bf; }

.theme-preview-modern-polished .preview-top {
    background:
        radial-gradient(circle at 100% 0%, rgba(255,255,255,0.18), transparent 34%),
        linear-gradient(125deg, #0b5ed7, #2563eb 58%, #0891b2);
}
.theme-preview-modern-polished .preview-body {
    background:
        radial-gradient(circle at 10% 0%, rgba(37, 99, 235, 0.10), transparent 26%),
        #f7fafc;
}
.theme-preview-modern-polished .bar {
    background: linear-gradient(90deg, #0b5ed7, #2563eb 62%, #0891b2);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.18);
}
.theme-preview-modern-polished .pill {
    background: linear-gradient(135deg, #475569, #1e293b);
}
.theme-preview-modern-polished .row-cards > div {
    background: linear-gradient(135deg, #ffffff, #f5f9ff);
    border: 1px solid #d9e2ec;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.theme-preview-nextgen .preview-top {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-bottom: 1px solid #e2e8f0;
}
.theme-preview-nextgen .preview-body {
    background: #f8fafc;
}
.theme-preview-nextgen .bar {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
}
.theme-preview-nextgen .pill {
    background: #475569;
}
.theme-preview-nextgen .row-cards > div {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}
