/* Nexus Admin: tema Nexus (variabilele culorilor, tema deschisă și cea închisă) copiată din src/Nexus.Web/wwwroot/app.css (:root și html[data-theme="dark"]); restul e propriu portalului. La o schimbare a temei Nexus se copiază din nou blocurile de mai jos. */

/* fontul Sora (Google Fonts) se încarcă din App.razor numai pe paginile personalului: portalul pacientului nu cere nimic de la terți (§3.158) */
:root {
    --nx-ink: #16201f;
    /* tema deschisă (după modelul ales de proprietar, 2026-10-22): fundal gri-verzui foarte deschis, carduri și meniu albe,
       o singură culoare de acțiune teal; accesibilitate (docs/ACCESIBILITATE.md): #2b7d73 dă 4,9:1 cu textul alb al butoanelor */
    --nx-sea: #2b7d73;
    --nx-sea-deep: #23695f;
    --nx-sea-bright: #3a9188;
    --nx-sand: #e4ecea;
    --nx-paper: #f0f5f4;
    --nx-mist: #e9f0ef;
    --nx-line: #e1e9e7;
    --nx-text: #1f2a2e;
    --nx-muted: #5d6b6e;
    --nx-surface: #ffffff;
    --nx-top: #ffffff;
    --nx-danger: #b42318;
    --nx-warn: #b54708;
    /* chenarul câmpurilor de formular (WCAG 1.4.11: cel puțin 3:1 față de fundal) și conturul de focalizare (2.4.7) */
    --nx-line-control: #7f8c8a;
    --nx-focus: #1f6b62;
    --nx-font-ui: "Sora", "Segoe UI", sans-serif;
    --nx-font-display: var(--nx-font-ui);
    --bs-font-sans-serif: var(--nx-font-ui);
    --bs-body-font-family: var(--nx-font-ui);
    --bs-body-color: var(--nx-text);
    --bs-body-bg: transparent;
    --bs-primary: var(--nx-sea);
    --bs-primary-rgb: 43, 125, 115;
    --bs-link-color: var(--nx-sea-deep);
    --bs-link-hover-color: var(--nx-ink);
    --bs-border-radius: 0.55rem;
    --bs-border-color: var(--nx-line);
    /* nuanța culorii de acțiune pentru stări (selecție, hover), ca „r, g, b” pentru rgba() */
    --nx-accent-rgb: 43, 125, 115;
    --nx-accent-bright-rgb: 58, 145, 136;
    /* meniul din stânga și bannerul de pe prima pagină: deschise pe tema deschisă (valorile închise în html[data-theme="dark"]) */
    --nx-side-bg: #ffffff;
    --nx-side-line: #e6eceb;
    --nx-side-brand: #16201f;
    --nx-side-brand-hover: #2b7d73;
    --nx-side-sub: #5d6b6e;
    --nx-side-label: #5d6b6e;
    --nx-side-link: #1f2a2e;
    --nx-side-hover-bg: #f0f5f4;
    --nx-side-hover-text: #16201f;
    --nx-side-active-bg: #e2f1ee;
    --nx-side-active-text: #1f6b62;
    --nx-side-active-bar: #e2f1ee;
    --nx-side-focus: #1f6b62;
    --nx-side-field-line: #7f8c8a;
    --nx-side-field-bg: #ffffff;
    --nx-side-field-bg-focus: #ffffff;
    --nx-side-field-text: #1f2a2e;
    --nx-side-placeholder: #5d6b6e;
    --nx-side-key-line: #c9d6d3;
    --nx-side-key-text: #5d6b6e;
    --nx-side-empty-link: #23695f;
    --nx-side-mark-bg: #cfe8e3;
    --nx-side-mark-text: #16201f;
    --nx-side-first-ring: #2b7d73;
    --nx-side-toggler-bg: #ffffff;
    --nx-side-toggler-checked: #e2f1ee;
    --nx-side-burger: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2831,31,31,0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    --nx-hero-bg: #ffffff;
    --nx-hero-line: #e1e9e7;
    --nx-hero-text: #16201f;
    --nx-hero-kicker: #2b7d73;
    --nx-hero-lead: #3d4a4d;
    --nx-hero-cta-bg: #2b7d73;
    --nx-hero-cta-hover: #23695f;
    --nx-hero-cta-text: #ffffff;
    /* căsuțele iconițelor din meniu și capetele de tabel */
    --nx-side-ico-bg: #edf3f2;
    --nx-side-ico-fg: #2f3d40;
    --nx-side-ico-active-bg: #2b7d73;
    --nx-side-ico-active-fg: #ffffff;
    --nx-th-bg: #2b7d73;
    --nx-th-fg: #ffffff;
}

html[data-theme="dark"] {
    color-scheme: dark;
    /* tema închisă „bleumarin de noapte”: fundal albastru-închis calm, aceeași acțiune teal ca tema deschisă (butoane #2b7d73, legături #7fd1c4); textul ~9:1, nu alb pur (mai puțin obositor) */
    --nx-ink: #cfd6e2;
    --nx-sea: #2b7d73;
    --nx-sea-deep: #7fd1c4;
    --nx-sea-bright: #3fb3a3;
    --nx-sand: #1f2533;
    --nx-paper: #151a24;
    --nx-mist: #252c3b;
    --nx-line: #2a3344;
    --nx-text: #b1b9c6;
    --nx-muted: #939dae;
    --nx-surface: #1c2230;
    --nx-top: #181e2a;
    /* accesibilitate: textul roșu / portocaliu pe fundal închis (vechile valori din tema deschisă aveau 2,5:1 și 3,0:1) */
    --nx-danger: #f97066;
    --nx-warn: #fdb022;
    --nx-line-control: #6e7a8f;
    --nx-focus: #7fd1c4;
    --bs-body-color: #b1b9c6;
    --bs-body-bg: #151a24;
    --bs-emphasis-color: #cfd6e2;
    --bs-nav-tabs-link-active-color: #cfd6e2;
    --bs-nav-tabs-link-active-bg: #1c2230;
    --bs-border-color: #2a3344;
    --bs-secondary-color: #939dae;
    --bs-tertiary-bg: #202736;
    --bs-secondary-bg: #202736;
    --bs-list-group-bg: #1c2230;
    --bs-list-group-color: #b1b9c6;
    --bs-list-group-border-color: #2a3344;
    --bs-list-group-action-hover-bg: #252c3b;
    --bs-list-group-action-hover-color: #cfd6e2;
    --bs-list-group-action-active-bg: #252c3b;
    --bs-list-group-action-active-color: #cfd6e2;
    --nx-accent-rgb: 43, 125, 115;
    --nx-accent-bright-rgb: 127, 209, 196;
    --nx-side-bg: #181e2a;
    --nx-side-line: #283041;
    --nx-side-brand: #cfd6e2;
    --nx-side-brand-hover: #7fd1c4;
    --nx-side-sub: #939dae;
    --nx-side-label: #939dae;
    --nx-side-link: #a8b1c0;
    --nx-side-hover-bg: #222a39;
    --nx-side-hover-text: #dfe5ee;
    --nx-side-active-bg: #2b7d73;
    --nx-side-active-text: #ffffff;
    --nx-side-active-bar: #2b7d73;
    --nx-side-focus: #7fd1c4;
    --nx-side-field-line: #6e7a8f;
    --nx-side-field-bg: #1f2634;
    --nx-side-field-bg-focus: #232b3a;
    --nx-side-field-text: #b1b9c6;
    --nx-side-placeholder: #939dae;
    --nx-side-key-line: #3a4458;
    --nx-side-key-text: #939dae;
    --nx-side-empty-link: #7fd1c4;
    --nx-side-mark-bg: rgba(43, 125, 115, 0.35);
    --nx-side-mark-text: #dfe5ee;
    --nx-side-first-ring: #7fd1c4;
    --nx-side-toggler-bg: #1f2634;
    --nx-side-toggler-checked: #222a39;
    --nx-side-burger: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    --nx-hero-bg: #1c2230;
    --nx-hero-line: #2a3344;
    --nx-hero-text: #cfd6e2;
    --nx-hero-kicker: #7fd1c4;
    --nx-hero-lead: #a9b2c0;
    --nx-hero-cta-bg: #2b7d73;
    --nx-hero-cta-hover: #23695f;
    --nx-hero-cta-text: #ffffff;
    --nx-side-ico-bg: #222a39;
    --nx-side-ico-fg: #a8b1c0;
    --nx-side-ico-active-bg: rgba(255, 255, 255, 0.18);
    --nx-side-ico-active-fg: #ffffff;
    --nx-th-bg: #1e4a46;
    --nx-th-fg: #d6ece8;
}
html[data-theme="dark"] .btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #2b7d73;
    --bs-btn-border-color: #2b7d73;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #23695f;
    --bs-btn-hover-border-color: #23695f;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #1f5c54;
    --bs-btn-active-border-color: #1f5c54;
    --bs-btn-disabled-color: #b9cfcb;
    --bs-btn-disabled-bg: #24433f;
    --bs-btn-disabled-border-color: #24433f;
}
html[data-theme="dark"] .m-chip.is-on,
html[data-theme="dark"] .m-chip.is-on b,
html[data-theme="dark"] .m-fab {
    background: #2b7d73;
    border-color: #2b7d73;
    color: #fff;
}
html[data-theme="dark"] body { background: var(--nx-paper); color: var(--nx-text); }
html[data-theme="dark"] .top-row { background: var(--nx-top); color: var(--nx-text); }
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .nx-help-drawer,
html[data-theme="dark"] .nx-notif-panel,
html[data-theme="dark"] .nx-dropdown-menu,
html[data-theme="dark"] .btn-logout,
html[data-theme="dark"] .nx-editor,
html[data-theme="dark"] .nx-editor-bara,
html[data-theme="dark"] .nx-editor-bara .nx-ed-select,
html[data-theme="dark"] .nx-kpi,
html[data-theme="dark"] .list-group-item {
    background: var(--nx-surface);
    color: var(--nx-text);
    border-color: var(--nx-line);
}
html[data-theme="dark"] .nx-editor-bara button { color: var(--nx-text); }
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .form-check-input { border-color: var(--nx-line-control); }
/* fundalurile roșii păstrează nuanța închisă, cu textul alb (6,6:1); --nx-danger din tema închisă e pentru text */
html[data-theme="dark"] .btn-danger-nx,
html[data-theme="dark"] .blazor-error-boundary { background: #b42318; border-color: #b42318; color: #fff; }
html[data-theme="dark"] .table {
    --bs-table-color: var(--nx-text);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--nx-line);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.06);
}
html[data-theme="dark"] .nx-dropdown-menu a:hover,
html[data-theme="dark"] .nx-icon-btn:hover { background: var(--nx-mist); }
html[data-theme="dark"] .alert-warning { background: #3a2e1c; color: #f3d7a1; }
html[data-theme="dark"] .alert-danger { background: #3a2220; color: #f3b4ae; }
html[data-theme="dark"] .alert-success { background: #1a3330; color: #b7ebe3; }
