body.theme-admin {
    --primary-font: 'Montserrat', ui-sans-serif, system-ui;
}

.page-shell {
    transition: background 0.4s ease, color 0.4s ease;
}

.surface-card {
    background-color: var(--surface-bg, #ffffff);
    border-color: var(--surface-border, rgba(148, 163, 184, 0.25));
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.surface-card .text-slate-500 {
    color: var(--text-muted, #64748b) !important;
}

.surface-card .text-slate-600 {
    color: var(--text-soft, #475569) !important;
}

.surface-card .text-slate-800,
.surface-card .text-slate-900 {
    color: var(--text-strong, #0f172a) !important;
}

.surface-card.text-slate-800,
.surface-card.text-slate-900 {
    color: var(--text-strong, #0f172a) !important;
}

.welcome-card {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.9) 45%, rgba(226, 232, 240, 0.9));
}

.welcome-card__snapshot {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(148, 163, 184, 0.25);
    backdrop-filter: blur(6px);
}

.welcome-card__snapshot-title,
.welcome-card__snapshot-item-label,
.welcome-card__snapshot-note {
    color: #64748b;
}

.welcome-card__snapshot-updated {
    color: #94a3b8;
}

.welcome-card__snapshot-item {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(148, 163, 184, 0.3);
}

.welcome-card__snapshot-item-value {
    color: #0f172a;
}

.welcome-card__snapshot-cta {
    border-color: #0f172a;
    background: #e2e8f0;
    color: #0f172a;
}

.welcome-card__snapshot-cta:hover {
    background: #cbd5f5;
}

.welcome-card__snapshot-cta:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.45);
    outline-offset: 2px;
}

.welcome-card__snapshot-cta-icon {
    color: inherit;
}

.welcome-card__actions-title {
    color: #64748b;
}

.welcome-card__action {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(148, 163, 184, 0.3);
    color: #0f172a;
}

.welcome-card__action:hover {
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(248, 250, 252, 0.95);
}

.welcome-card__action-label {
    color: inherit;
}

.welcome-card__action-desc {
    color: #64748b;
}

.welcome-card__action-icon {
    color: #94a3b8;
}

.theme-option {
    position: relative;
    display: block;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.7), rgba(226, 232, 240, 0.5));
    border: 1px solid rgba(148, 163, 184, 0.3);
    padding: 0.75rem;
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.theme-option-inner {
    display: grid;
    gap: 0.75rem;
}

.theme-option-preview {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.12));
    border: 1px solid rgba(148, 163, 184, 0.35);
    min-height: 120px;
}

.theme-option-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.35), transparent 55%);
    opacity: 0.8;
}

.theme-option-preview img {
    display: block;
    width: 100%;
    height: auto;
}

.theme-option-placeholder {
    padding: 2rem 1rem;
    font-size: 0.875rem;
    text-align: center;
    color: rgba(71, 85, 105, 0.8);
}

.theme-option-meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.theme-option-preview--blank {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    background: linear-gradient(160deg, rgba(148, 163, 184, 0.18), rgba(226, 232, 240, 0.45));
    border: 1px dashed rgba(148, 163, 184, 0.5);
}

.theme-option-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-strong, #0f172a);
}

.theme-option-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    background: var(--accent, #0f172a);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    transition: transform 0.3s ease;
}

.theme-option-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted, #64748b);
}

.theme-option-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.65rem;
    background: rgba(148, 163, 184, 0.16);
    color: rgba(15, 23, 42, 0.6);
}

.theme-option:hover {
    border-color: rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.6), rgba(191, 219, 254, 0.3));
    transform: translateY(-2px);
}

.theme-option-active {
    border-color: rgba(37, 99, 235, 0.8);
    background: linear-gradient(135deg, #dbeafe, rgba(59, 130, 246, 0.45));
    box-shadow: 0 20px 40px -18px rgba(37, 99, 235, 0.55);
}

.theme-option-active .theme-option-dot {
    transform: scale(1.2);
    background: #2563eb;
}

/* Default look tokens */
body.theme-jambo-default {
    --page-bg: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    --surface-bg: #ffffff;
    --surface-border: rgba(148, 163, 184, 0.25);
    --text-muted: #64748b;
    --text-soft: #475569;
    --text-strong: #0f172a;
    --primary-bg: #0f172a;
    --primary-text: #f8fafc;
}

body.theme-jambo-default .page-shell {
    background-image: var(--page-bg) !important;
    color: var(--text-strong);
}

/* Blue look tokens */
body.theme-jambo-blue {
    --page-bg: radial-gradient(circle at top, rgba(14, 165, 233, 0.18), transparent 65%), linear-gradient(180deg, #0f172a 0%, #172554 40%, #1d4ed8 100%);
    --surface-bg: rgba(15, 23, 42, 0.88);
    --surface-border: rgba(59, 130, 246, 0.35);
    --text-muted: rgba(226, 232, 240, 0.82);
    --text-soft: rgba(226, 232, 240, 0.9);
    --text-strong: #f8fafc;
    --primary-bg: rgba(59, 130, 246, 0.9);
    --primary-text: #f8fafc;
}

body.theme-jambo-blue .page-shell {
    background-image: var(--page-bg) !important;
    color: var(--text-strong);
}

body.theme-jambo-blue .surface-card {
    background-color: var(--surface-bg);
    border-color: var(--surface-border);
    box-shadow: 0 24px 48px -18px rgba(37, 99, 235, 0.55);
}

body.theme-jambo-blue .welcome-card {
    background: var(--surface-bg);
}

body.theme-jambo-blue .welcome-card__snapshot {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(148, 163, 184, 0.35);
}

body.theme-jambo-blue .welcome-card__snapshot-title,
body.theme-jambo-blue .welcome-card__snapshot-item-label,
body.theme-jambo-blue .welcome-card__snapshot-note {
    color: rgba(226, 232, 240, 0.82);
}

body.theme-jambo-blue .welcome-card__snapshot-updated {
    color: rgba(148, 163, 184, 0.7);
}

body.theme-jambo-blue .welcome-card__snapshot-item {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(148, 163, 184, 0.28);
}

body.theme-jambo-blue .welcome-card__snapshot-item-value {
    color: var(--text-strong);
}

body.theme-jambo-blue .welcome-card__snapshot-cta {
    border-color: rgba(226, 232, 240, 0.65);
    background: rgba(59, 130, 246, 0.35);
    color: #f8fafc;
}

body.theme-jambo-blue .welcome-card__snapshot-cta:hover {
    background: rgba(59, 130, 246, 0.5);
}

body.theme-jambo-blue .welcome-card__snapshot-cta:focus-visible {
    outline-color: rgba(148, 163, 184, 0.8);
}

body.theme-jambo-blue .welcome-card__actions-title {
    color: rgba(226, 232, 240, 0.8);
}

body.theme-jambo-blue .welcome-card__action {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(148, 163, 184, 0.25);
    color: var(--text-strong);
}

body.theme-jambo-blue .welcome-card__action:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(37, 99, 235, 0.35);
}

body.theme-jambo-blue .welcome-card__action-desc {
    color: rgba(226, 232, 240, 0.75);
}

body.theme-jambo-blue .welcome-card__action-icon {
    color: rgba(148, 163, 184, 0.75);
}

body.theme-jambo-blue .surface-card .border {
    border-color: rgba(148, 163, 184, 0.2) !important;
}

body.theme-jambo-blue .surface-card input,
body.theme-jambo-blue .surface-card textarea,
body.theme-jambo-blue .surface-card select {
    background-color: rgba(15, 23, 42, 0.55);
    border-color: rgba(148, 163, 184, 0.35);
    color: rgba(226, 232, 240, 0.95);
}

body.theme-jambo-blue .surface-card input::placeholder,
body.theme-jambo-blue .surface-card textarea::placeholder {
    color: rgba(148, 163, 184, 0.7);
}

body.theme-jambo-blue .surface-card button {
    border-color: rgba(148, 163, 184, 0.3);
}

body.theme-jambo-blue .surface-card .bg-white {
    background-color: rgba(15, 23, 42, 0.75) !important;
}

body.theme-jambo-blue .surface-card .bg-slate-50 {
    background-color: rgba(37, 99, 235, 0.12) !important;
}

body.theme-jambo-blue .surface-card .text-slate-500,
body.theme-jambo-blue .surface-card .text-slate-600 {
    color: var(--text-muted) !important;
}

body.theme-jambo-blue .surface-card .text-slate-800,
body.theme-jambo-blue .surface-card .text-slate-900 {
    color: var(--text-strong) !important;
}

body.theme-jambo-blue .surface-card .text-emerald-600 {
    color: rgba(16, 185, 129, 0.85) !important;
}

body.theme-jambo-blue .surface-card .text-rose-700 {
    color: rgba(252, 165, 165, 0.92) !important;
}

body.theme-jambo-blue .surface-card .bg-emerald-50 {
    background-color: rgba(34, 197, 94, 0.15) !important;
}

body.theme-jambo-blue .surface-card .bg-rose-50 {
    background-color: rgba(244, 63, 94, 0.15) !important;
}

body.theme-jambo-blue .surface-card .bg-amber-50 {
    background-color: rgba(251, 191, 36, 0.18) !important;
    color: rgba(253, 224, 71, 0.95) !important;
}

body.theme-jambo-blue .surface-card .bg-slate-900 {
    background-color: var(--primary-bg) !important;
    color: var(--primary-text) !important;
}

body.theme-jambo-blue .surface-card .border {
    border-color: rgba(96, 165, 250, 0.35) !important;
}

body.theme-jambo-blue .surface-card a {
    color: rgba(96, 165, 250, 0.9);
}

body.theme-jambo-blue .surface-card a:hover {
    color: rgba(165, 180, 252, 1);
}

body.theme-jambo-blue .theme-option {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(14, 116, 144, 0.25));
    border-color: rgba(148, 163, 184, 0.25);
}

body.theme-jambo-blue .theme-option:hover {
    border-color: rgba(96, 165, 250, 0.7);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(37, 99, 235, 0.35));
}

body.theme-jambo-blue .theme-option-active {
    border-color: rgba(191, 219, 254, 0.9);
    background: linear-gradient(135deg, rgba(191, 219, 254, 0.6), rgba(99, 102, 241, 0.6));
    box-shadow: 0 28px 60px -25px rgba(37, 99, 235, 0.85);
}

body.theme-jambo-blue .theme-option-dot {
    background: rgba(191, 219, 254, 1);
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.33);
}

body.theme-jambo-blue .nav-shell {
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.92), rgba(30, 64, 175, 0.75));
    border-color: rgba(96, 165, 250, 0.35) !important;
    box-shadow: 0 20px 40px -25px rgba(37, 99, 235, 0.65);
}

body.theme-jambo-blue .nav-shell .nav-btn {
    color: rgba(203, 213, 225, 0.88);
}

body.theme-jambo-blue .nav-shell .nav-btn:hover {
    background: rgba(59, 130, 246, 0.28);
    color: #f8fafc;
}

body.theme-jambo-blue .bg-gradient-to-b.from-white.to-slate-50 {
    background-image: var(--page-bg) !important;
    color: var(--text-strong);
}

body.theme-jambo-blue .bg-white {
    background-color: var(--surface-bg) !important;
    color: var(--text-strong) !important;
}

body.theme-jambo-blue .bg-slate-50 {
    background-color: rgba(59, 130, 246, 0.12) !important;
    color: rgba(226, 232, 240, 0.95) !important;
}

body.theme-jambo-blue .border {
    border-color: var(--surface-border) !important;
}

body.theme-jambo-blue .border-slate-200,
body.theme-jambo-blue .border-slate-300 {
    border-color: rgba(96, 165, 250, 0.32) !important;
}

body.theme-jambo-blue .text-slate-900,
body.theme-jambo-blue .text-slate-800 {
    color: var(--text-strong) !important;
}

body.theme-jambo-blue .text-slate-600,
body.theme-jambo-blue .text-slate-500 {
    color: var(--text-muted) !important;
}

body.theme-jambo-blue .text-white {
    color: var(--primary-text) !important;
}

body.theme-jambo-blue .bg-slate-900,
body.theme-jambo-blue .bg-slate-800 {
    background-color: var(--primary-bg) !important;
}

body.theme-jambo-blue .bg-amber-50 {
    background-color: rgba(251, 191, 36, 0.2) !important;
}

body.theme-jambo-blue .text-amber-900 {
    color: rgba(253, 224, 71, 0.92) !important;
}

body.theme-jambo-blue button {
    border-color: rgba(148, 163, 184, 0.25) !important;
}

body.theme-jambo-blue a {
/*    color: rgba(191, 219, 254, 0.92);*/
}

body.theme-jambo-blue a:hover {
    color: rgba(224, 231, 255, 1);
}

/* Gogo Sunrise theme */
body.theme-gogo-sunrise {
    --page-bg: linear-gradient(180deg, #fff7ed 0%, #fef2f2 100%);
    --surface-bg: #ffffff;
    --surface-border: rgba(234, 179, 8, 0.25);
    --text-muted: #6b7280;
    --text-soft: #4b5563;
    --text-strong: #1f2937;
    --primary-bg: #f97316;
    --primary-text: #ffffff;
}

body.theme-gogo-sunrise .page-shell {
    background-image: var(--page-bg);
    color: var(--text-strong);
}

body.theme-gogo-sunrise .surface-card {
    background-color: var(--surface-bg);
    border-color: rgba(249, 115, 22, 0.18);
    box-shadow: 0 18px 40px -25px rgba(249, 115, 22, 0.35);
}

body.theme-gogo-sunrise .surface-card .text-slate-500,
body.theme-gogo-sunrise .surface-card .text-slate-600 {
    color: var(--text-muted) !important;
}

body.theme-gogo-sunrise .surface-card .text-slate-800,
body.theme-gogo-sunrise .surface-card .text-slate-900 {
    color: var(--text-strong) !important;
}

body.theme-gogo-sunrise .surface-card .bg-slate-50 {
    background-color: rgba(253, 186, 116, 0.16) !important;
}

body.theme-gogo-sunrise .surface-card .border {
    border-color: rgba(249, 115, 22, 0.2) !important;
}

body.theme-gogo-sunrise .surface-card .bg-slate-900,
body.theme-gogo-sunrise .surface-card .bg-slate-800 {
    background-color: var(--primary-bg) !important;
    color: var(--primary-text) !important;
}

body.theme-gogo-sunrise .surface-card button {
    border-color: rgba(249, 115, 22, 0.24) !important;
}

body.theme-gogo-sunrise .theme-option {
    background: linear-gradient(135deg, rgba(254, 215, 170, 0.45), rgba(251, 191, 36, 0.25));
    border-color: rgba(249, 115, 22, 0.28);
}

body.theme-gogo-sunrise .theme-option:hover {
    border-color: rgba(244, 114, 182, 0.45);
    background: linear-gradient(135deg, rgba(253, 186, 116, 0.5), rgba(251, 146, 60, 0.3));
}

body.theme-gogo-sunrise .theme-option-active {
    border-color: rgba(249, 115, 22, 0.6);
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.55), rgba(244, 114, 182, 0.4));
    box-shadow: 0 20px 40px -25px rgba(249, 115, 22, 0.55);
}

body.theme-gogo-sunrise .theme-option-dot {
    background: linear-gradient(135deg, #f97316, #fb7185);
    box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.25);
}

body.theme-gogo-sunrise .nav-shell {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(249, 115, 22, 0.25) !important;
    box-shadow: 0 12px 24px -18px rgba(249, 115, 22, 0.45);
}

@media (min-width: 1024px) {
    body.theme-gogo-sunrise #app-sidebar {
        position: sticky;
        top: 0;
        z-index: 40;
        border-radius: 1.25rem;
        background: rgba(255, 255, 255, 0.92);
        grid-column: 1 / -1;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 1.5rem;
        gap: 1rem;
        backdrop-filter: saturate(180%) blur(12px);
        box-shadow: 0 16px 32px -28px rgba(249, 115, 22, 0.55);
    }

    body.theme-gogo-sunrise #app-sidebar > div {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    body.theme-gogo-sunrise #app-sidebar .brand-text {
        color: var(--primary-bg);
        font-weight: 700;
        letter-spacing: -0.02em;
    }

    body.theme-gogo-sunrise #app-sidebar nav {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    body.theme-gogo-sunrise #app-sidebar nav .nav-btn {
        width: auto;
        padding: 0.55rem 0.95rem;
        border-radius: 9999px;
        background: rgba(249, 115, 22, 0.08);
        border: 1px solid transparent;
        color: var(--text-soft);
        transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    }

    body.theme-gogo-sunrise #app-sidebar nav .nav-btn:hover {
        background: rgba(249, 115, 22, 0.18);
        border-color: rgba(249, 115, 22, 0.28);
        color: var(--primary-bg);
    }

    body.theme-gogo-sunrise #app-sidebar nav .bg-slate-900 {
        background: var(--primary-bg) !important;
        color: var(--primary-text) !important;
        box-shadow: 0 10px 24px -20px rgba(249, 115, 22, 0.65);
    }

    body.theme-gogo-sunrise #app-sidebar .collapse-btn {
        display: none;
    }
}

body.theme-gogo-sunrise main {
    grid-column: 1 / -1;
}

body.theme-gogo-sunrise .grid {
    gap: 1.5rem !important;
}

body.theme-gogo-sunrise .nav-shell {
    border-radius: 1.25rem;
}

body.theme-gogo-sunrise .surface-card .bg-emerald-50 {
    background-color: rgba(110, 231, 183, 0.2) !important;
}

body.theme-gogo-sunrise #app-sidebar .brand-text {
    color: var(--primary-bg);
}

body.theme-gogo-sunrise #app-sidebar nav .nav-btn {
    background: rgba(249, 115, 22, 0.08);
    border-radius: 9999px;
    border: 1px solid transparent;
    color: var(--text-soft);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body.theme-gogo-sunrise #app-sidebar nav .nav-btn:hover {
    background: rgba(249, 115, 22, 0.18);
    border-color: rgba(249, 115, 22, 0.28);
    color: var(--primary-bg);
}

body.theme-gogo-sunrise #app-sidebar nav .bg-slate-900 {
    background: var(--primary-bg) !important;
    color: var(--primary-text) !important;
    box-shadow: 0 10px 24px -20px rgba(249, 115, 22, 0.55);
}

body.theme-gogo-sunrise .surface-card .bg-rose-50 {
    background-color: rgba(252, 165, 165, 0.18) !important;
}

body.theme-gogo-sunrise .surface-card .bg-amber-50 {
    background-color: rgba(253, 213, 141, 0.35) !important;
    color: rgba(180, 83, 9, 0.9) !important;
}

body.theme-gogo-sunrise .surface-card .bg-slate-900:hover {
    box-shadow: 0 16px 32px -20px rgba(249, 115, 22, 0.6);
}
