/**
 * NephroConnect Center — Global Theme
 * Matches client mockups: light sidebar, navy + teal palette, rounded cards
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --nc-navy: #0a2540;
    --nc-navy-light: #1a3a5c;
    --nc-teal: #00b4a8;
    --nc-teal-dark: #009688;
    --nc-teal-light: #e0f7f5;
    --nc-bg: #f4f7fb;
    --nc-card: #ffffff;
    --nc-border: #e8edf3;
    --nc-text: #334155;
    --nc-muted: #64748b;
    --nc-danger: #ef4444;
    --nc-warning: #f59e0b;
    --nc-success: #10b981;
    --nc-radius: 14px;
    --nc-radius-sm: 10px;
    --nc-shadow: 0 4px 24px rgba(10, 37, 64, 0.06);
    --nc-sidebar-w: 260px;
}

/* ---- Base ---- */
body.nephroconnect-theme {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    background: var(--nc-bg) !important;
    color: var(--nc-text);
}

body.nephroconnect-theme #layout-wrapper {
    background: var(--nc-bg);
}

body.nephroconnect-theme .main-content {
    background: var(--nc-bg);
    margin-left: var(--nc-sidebar-w);
}

body.nephroconnect-theme .sidebar-collapse-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: var(--nc-teal) !important;
    border: none;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: #fff;
}

body.nephroconnect-theme #sidebar-menu .has-arrow:after {
    display: block;
}

body.nephroconnect-theme #sidebar-menu ul.mm-collapse:not(.mm-show) {
    display: none;
}

body.nephroconnect-theme #sidebar-menu ul.mm-collapse.mm-show {
    display: block;
}

body.nephroconnect-theme.vertical-collpsed .main-content {
    margin-left: 70px;
}

body.nephroconnect-theme.vertical-collpsed .vertical-menu {
    width: 70px !important;
}

body.nephroconnect-theme.vertical-collpsed .nc-sidebar-brand,
body.nephroconnect-theme.vertical-collpsed .nc-sidebar-cta {
    display: none;
}

@media (max-width: 992px) {
    body.nephroconnect-theme .main-content {
        margin-left: 0 !important;
    }
}

body.nephroconnect-theme .page-content {
    padding: calc(70px + 24px) 0 24px;
}

body.nephroconnect-theme .container-fluid {
    padding-left: 24px;
    padding-right: 24px;
}

/* ---- Sidebar ---- */
body.nephroconnect-theme .vertical-menu {
    background: var(--nc-card) !important;
    border-right: 1px solid var(--nc-border);
    box-shadow: 2px 0 16px rgba(10, 37, 64, 0.04);
    width: var(--nc-sidebar-w);
}

body.nephroconnect-theme #sidebar-menu ul li a {
    color: var(--nc-muted) !important;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--nc-radius-sm);
    margin: 2px 12px;
    padding: 10px 14px !important;
    transition: all 0.2s ease;
}

body.nephroconnect-theme #sidebar-menu ul li a:hover,
body.nephroconnect-theme #sidebar-menu ul li.mm-active > a,
body.nephroconnect-theme #sidebar-menu ul li a.active {
    background: var(--nc-teal-light) !important;
    color: var(--nc-navy) !important;
    border-left: 3px solid var(--nc-teal);
}

body.nephroconnect-theme #sidebar-menu ul li a i {
    color: var(--nc-teal) !important;
    font-size: 1.15rem;
}

body.nephroconnect-theme #sidebar-menu .menu-title {
    color: var(--nc-muted) !important;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 16px 20px 8px !important;
}

body.nephroconnect-theme #sidebar-menu .sub-menu {
    background: transparent !important;
}

body.nephroconnect-theme #sidebar-menu .sub-menu li a {
    font-size: 0.85rem;
    padding-left: 48px !important;
}

body.nephroconnect-theme .nc-sidebar-brand {
    padding: 20px 20px 12px;
    border-bottom: 1px solid var(--nc-border);
    margin-bottom: 8px;
}

body.nephroconnect-theme .nc-sidebar-brand h5 {
    color: var(--nc-navy);
    font-weight: 800;
    font-size: 1.05rem;
    margin: 0;
}

body.nephroconnect-theme .nc-sidebar-brand small {
    color: var(--nc-muted);
    font-size: 0.75rem;
}

body.nephroconnect-theme .nc-sidebar-cta {
    margin: 16px;
    padding: 14px;
    background: linear-gradient(135deg, var(--nc-teal), var(--nc-teal-dark));
    border-radius: var(--nc-radius-sm);
    color: #fff;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    display: block;
    border: 2px dashed rgba(255, 255, 255, 0.4);
}

body.nephroconnect-theme .nc-sidebar-cta:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 180, 168, 0.35);
}

body.nephroconnect-theme .nc-sidebar-user {
    padding: 16px 20px;
    border-top: 1px solid var(--nc-border);
    margin-top: auto;
}

/* ---- Top header ---- */
body.nephroconnect-theme #page-topbar {
    background: var(--nc-card) !important;
    border-bottom: 1px solid var(--nc-border);
    box-shadow: 0 2px 12px rgba(10, 37, 64, 0.04);
}

body.nephroconnect-theme .navbar-brand-box {
    display: none;
}

body.nephroconnect-theme .nc-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 8px;
    gap: 16px;
}

body.nephroconnect-theme .nc-topbar-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--nc-navy);
    white-space: nowrap;
}

body.nephroconnect-theme .nc-topbar-search {
    flex: 1;
    max-width: 480px;
    margin: 0 auto;
}

body.nephroconnect-theme .nc-topbar-search .form-control {
    border-radius: 50px;
    border: 1px solid var(--nc-border);
    background: #f8fafc;
    padding: 10px 20px 10px 44px;
    font-size: 0.9rem;
}

body.nephroconnect-theme .nc-topbar-search-wrap {
    position: relative;
}

body.nephroconnect-theme .nc-topbar-search-wrap i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--nc-muted);
}

body.nephroconnect-theme .header-item {
    color: var(--nc-navy) !important;
}

body.nephroconnect-theme .page-title-box {
    display: none !important;
}

/* ---- Cards & components ---- */
body.nephroconnect-theme .card {
    border: 1px solid var(--nc-border) !important;
    border-radius: var(--nc-radius) !important;
    box-shadow: var(--nc-shadow) !important;
    background: var(--nc-card);
}

body.nephroconnect-theme .card-body {
    padding: 1.5rem;
}

body.nephroconnect-theme .btn-primary {
    background: var(--nc-teal) !important;
    border-color: var(--nc-teal) !important;
    border-radius: var(--nc-radius-sm);
    font-weight: 600;
}

body.nephroconnect-theme .btn-primary:hover {
    background: var(--nc-teal-dark) !important;
    border-color: var(--nc-teal-dark) !important;
}

body.nephroconnect-theme .btn-outline-primary {
    color: var(--nc-teal) !important;
    border-color: var(--nc-teal) !important;
    border-radius: var(--nc-radius-sm);
}

body.nephroconnect-theme .form-control,
body.nephroconnect-theme .form-select,
body.nephroconnect-theme .form-control-plaintext {
    border-radius: var(--nc-radius-sm);
    border: 1px solid var(--nc-border);
    background-color: #f8fafc;
    color: var(--nc-text);
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    line-height: 1.5;
    min-height: 42px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

body.nephroconnect-theme textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

body.nephroconnect-theme .form-control::placeholder {
    color: #94a3b8;
    opacity: 1;
}

body.nephroconnect-theme .form-control:hover:not(:disabled):not([readonly]),
body.nephroconnect-theme .form-select:hover:not(:disabled) {
    border-color: #cbd5e1;
    background-color: #fff;
}

body.nephroconnect-theme .form-control:focus,
body.nephroconnect-theme .form-select:focus {
    border-color: var(--nc-teal);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 180, 168, 0.15);
    outline: none;
}

body.nephroconnect-theme .form-control:disabled,
body.nephroconnect-theme .form-control[readonly],
body.nephroconnect-theme .form-select:disabled {
    background-color: #f1f5f9;
    color: var(--nc-muted);
    cursor: not-allowed;
}

body.nephroconnect-theme .form-control.is-invalid,
body.nephroconnect-theme .form-select.is-invalid {
    border-color: var(--nc-danger);
    background-image: none;
    padding-right: 0.9rem;
}

body.nephroconnect-theme .form-control.is-invalid:focus,
body.nephroconnect-theme .form-select.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

body.nephroconnect-theme .form-control.is-valid,
body.nephroconnect-theme .form-select.is-valid {
    border-color: var(--nc-success);
    background-image: none;
    padding-right: 0.9rem;
}

body.nephroconnect-theme .invalid-feedback,
body.nephroconnect-theme .valid-feedback {
    font-size: 0.8rem;
    margin-top: 0.35rem;
}

body.nephroconnect-theme .form-label,
body.nephroconnect-theme label.col-form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--nc-navy);
    margin-bottom: 0.4rem;
    letter-spacing: 0.01em;
}

body.nephroconnect-theme .form-label .text-danger,
body.nephroconnect-theme label .text-danger {
    color: var(--nc-danger) !important;
    font-weight: 700;
}

body.nephroconnect-theme .form-text,
body.nephroconnect-theme small.text-muted,
body.nephroconnect-theme .card-body form small.text-muted {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--nc-muted) !important;
    line-height: 1.45;
}

body.nephroconnect-theme .form-check {
    padding-left: 1.75rem;
    margin-bottom: 0.5rem;
}

body.nephroconnect-theme .form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.15rem;
    border: 1px solid var(--nc-border);
    cursor: pointer;
}

body.nephroconnect-theme .form-check-input:checked {
    background-color: var(--nc-teal);
    border-color: var(--nc-teal);
}

body.nephroconnect-theme .form-check-input:focus {
    border-color: var(--nc-teal);
    box-shadow: 0 0 0 3px rgba(0, 180, 168, 0.15);
}

body.nephroconnect-theme .form-check-label {
    font-size: 0.9rem;
    color: var(--nc-text);
    cursor: pointer;
}

body.nephroconnect-theme .form-switch .form-check-input {
    width: 2.25rem;
    height: 1.15rem;
}

body.nephroconnect-theme .input-group > .form-control,
body.nephroconnect-theme .input-group > .form-select {
    border-radius: var(--nc-radius-sm);
}

body.nephroconnect-theme .input-group-text {
    background: #f1f5f9;
    border: 1px solid var(--nc-border);
    color: var(--nc-muted);
    font-size: 0.85rem;
    border-radius: var(--nc-radius-sm);
}

body.nephroconnect-theme .input-group > :not(:first-child) {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

body.nephroconnect-theme .input-group > :not(:last-child) {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

body.nephroconnect-theme input[type="file"].form-control {
    padding: 0.5rem 0.75rem;
    background: #fff;
}

body.nephroconnect-theme input[type="file"].form-control::file-selector-button {
    margin-right: 0.75rem;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--nc-border);
    border-radius: 8px;
    background: var(--nc-teal-light);
    color: var(--nc-navy);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

body.nephroconnect-theme input[type="file"].form-control::file-selector-button:hover {
    background: #c8f0ec;
}

body.nephroconnect-theme .form-floating > .form-control,
body.nephroconnect-theme .form-floating > .form-select {
    min-height: 52px;
}

body.nephroconnect-theme .form-floating > label {
    color: var(--nc-muted);
    font-size: 0.85rem;
}

/* Form layout inside cards and pages */
body.nephroconnect-theme .main-content form .mb-3,
body.nephroconnect-theme .card-body > form .mb-3,
body.nephroconnect-theme .card-body form .mb-3,
body.nephroconnect-theme .nc-intake-form-card form .mb-3,
body.nephroconnect-theme .nc-form .mb-3 {
    margin-bottom: 1.1rem !important;
}

body.nephroconnect-theme .main-content form .row,
body.nephroconnect-theme .card-body form .row,
body.nephroconnect-theme .nc-intake-form-card form .row,
body.nephroconnect-theme .nc-form .row {
    --bs-gutter-x: 1.25rem;
}

body.nephroconnect-theme .main-content form .card-title,
body.nephroconnect-theme .main-content form h4.card-title,
body.nephroconnect-theme .card-body form .card-title,
body.nephroconnect-theme .card-body form h4.card-title,
body.nephroconnect-theme .card-body form blockquote,
body.nephroconnect-theme .nc-form-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--nc-navy);
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--nc-border);
}

body.nephroconnect-theme .card-body form blockquote {
    padding: 0;
    border-left: none;
    margin-left: 0;
    font-size: 1rem;
}

body.nephroconnect-theme .main-content form .card-title:first-child,
body.nephroconnect-theme .main-content form h4.card-title:first-child,
body.nephroconnect-theme .card-body form .card-title:first-child,
body.nephroconnect-theme .card-body form h4.card-title:first-child,
body.nephroconnect-theme .card-body form blockquote:first-child {
    margin-top: 0;
}

body.nephroconnect-theme .main-content form > .alert,
body.nephroconnect-theme .card-body form > .alert,
body.nephroconnect-theme .nc-form > .alert {
    border-radius: var(--nc-radius-sm);
    border: none;
    font-size: 0.9rem;
}

body.nephroconnect-theme .main-content form > .alert-danger,
body.nephroconnect-theme .card-body form > .alert-danger,
body.nephroconnect-theme .nc-form > .alert-danger {
    background: #fef2f2;
    color: #b91c1c;
}

body.nephroconnect-theme .main-content form > .alert-danger ul,
body.nephroconnect-theme .card-body form > .alert-danger ul,
body.nephroconnect-theme .nc-form > .alert-danger ul {
    margin-bottom: 0;
    padding-left: 1.1rem;
}

body.nephroconnect-theme .main-content form > .alert-success,
body.nephroconnect-theme .card-body form > .alert-success,
body.nephroconnect-theme .nc-form > .alert-success {
    background: #ecfdf5;
    color: #047857;
}

/* Submit / action rows */
body.nephroconnect-theme .main-content form .row:has([type="submit"]),
body.nephroconnect-theme .main-content form .row:has(.btn-primary),
body.nephroconnect-theme .main-content form .d-flex:has(.btn-primary),
body.nephroconnect-theme .card-body form .row:has([type="submit"]),
body.nephroconnect-theme .card-body form .row:has(.btn-primary),
body.nephroconnect-theme .card-body form .d-flex:has(.btn-primary),
body.nephroconnect-theme .nc-form-actions {
    margin-top: 1.5rem !important;
    padding-top: 1.25rem;
    border-top: 1px solid var(--nc-border);
    gap: 0.5rem;
}

body.nephroconnect-theme .nc-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

body.nephroconnect-theme .main-content form .btn,
body.nephroconnect-theme .card-body form .btn,
body.nephroconnect-theme .nc-form-actions .btn {
    border-radius: var(--nc-radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.55rem 1.15rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

body.nephroconnect-theme .main-content form .btn-secondary,
body.nephroconnect-theme .card-body form .btn-secondary,
body.nephroconnect-theme .nc-form-actions .btn-secondary {
    background: #fff;
    border-color: var(--nc-border);
    color: var(--nc-muted);
}

body.nephroconnect-theme .main-content form .btn-secondary:hover,
body.nephroconnect-theme .card-body form .btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--nc-navy);
}

body.nephroconnect-theme .nc-form-section {
    padding: 1.25rem 0 0;
}

body.nephroconnect-theme .nc-form-section + .nc-form-section {
    margin-top: 0.5rem;
    border-top: 1px solid var(--nc-border);
}

body.nephroconnect-theme .nc-intake-form-card .form-control,
body.nephroconnect-theme .nc-intake-form-card .form-select {
    background-color: #fff;
}

body.nephroconnect-theme .nav-tabs,
body.nephroconnect-theme .nav-tabs-custom {
    border-bottom: 1px solid var(--nc-border);
    gap: 0.25rem;
    margin-bottom: 1.25rem;
}

body.nephroconnect-theme .nav-tabs .nav-link,
body.nephroconnect-theme .nav-tabs-custom .nav-link {
    border: none;
    border-radius: var(--nc-radius-sm) var(--nc-radius-sm) 0 0;
    color: var(--nc-muted);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.65rem 1rem;
    background: transparent;
}

body.nephroconnect-theme .nav-tabs .nav-link:hover,
body.nephroconnect-theme .nav-tabs-custom .nav-link:hover {
    color: var(--nc-navy);
    background: #f8fafc;
}

body.nephroconnect-theme .nav-tabs .nav-link.active,
body.nephroconnect-theme .nav-tabs-custom .nav-link.active {
    color: var(--nc-teal-dark);
    background: var(--nc-teal-light);
    border-bottom: 2px solid var(--nc-teal);
}

body.nephroconnect-theme .tab-content {
    padding-top: 0.25rem;
}

/* Select2 */
body.nephroconnect-theme .select2-container--default .select2-selection--single,
body.nephroconnect-theme .select2-container--default .select2-selection--multiple {
    min-height: 42px;
    border: 1px solid var(--nc-border) !important;
    border-radius: var(--nc-radius-sm) !important;
    background: #f8fafc !important;
    padding: 4px 8px;
}

body.nephroconnect-theme .select2-container--default.select2-container--focus .select2-selection--multiple,
body.nephroconnect-theme .select2-container--default.select2-container--open .select2-selection--single,
body.nephroconnect-theme .select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: var(--nc-teal) !important;
    box-shadow: 0 0 0 3px rgba(0, 180, 168, 0.15);
}

body.nephroconnect-theme .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 30px;
    color: var(--nc-text);
    padding-left: 4px;
}

body.nephroconnect-theme .select2-dropdown {
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius-sm);
    box-shadow: var(--nc-shadow);
}

body.nephroconnect-theme .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: var(--nc-teal);
}

/* Fieldset / legend */
body.nephroconnect-theme fieldset {
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius-sm);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    background: #fafbfc;
}

body.nephroconnect-theme legend {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--nc-navy);
    padding: 0 0.5rem;
    width: auto;
    float: none;
    margin-bottom: 0.75rem;
}

body.nephroconnect-theme .table thead th {
    background: #f8fafc;
    color: var(--nc-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid var(--nc-border);
    vertical-align: middle;
    padding: 12px 16px;
    white-space: nowrap;
}

body.nephroconnect-theme .table tbody td {
    vertical-align: middle;
    padding: 12px 16px;
    color: var(--nc-text);
}

body.nephroconnect-theme .table-hover tbody tr:hover {
    background-color: #f8fafc;
}

body.nephroconnect-theme .card-header {
    background: transparent;
    border-bottom: 1px solid var(--nc-border);
    padding: 1.25rem 1.5rem;
}

body.nephroconnect-theme .card-header h5,
body.nephroconnect-theme .card-header h4 {
    margin: 0;
    font-weight: 700;
    color: var(--nc-navy);
}

body.nephroconnect-theme .badge {
    border-radius: 50px;
    font-weight: 600;
    padding: 0.4em 0.85em;
}

body.nephroconnect-theme .footer {
    background: transparent;
    border-top: 1px solid var(--nc-border);
    color: var(--nc-muted);
}

/* ---- NephroConnect page components ---- */
.nc-page-header {
    margin-bottom: 24px;
}

.nc-page-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--nc-navy);
    margin: 0;
}

.nc-page-header .nc-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--nc-teal);
    margin-bottom: 4px;
}

.nc-panel {
    background: var(--nc-card);
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius);
    box-shadow: var(--nc-shadow);
    padding: 1.5rem;
    height: 100%;
}

.nc-panel-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--nc-navy);
    margin-bottom: 1rem;
}

.nc-alert-critical {
    background: linear-gradient(135deg, #fef2f2, #fff5f5);
    border: 1px solid #fecaca;
    border-radius: var(--nc-radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.nc-alert-critical strong {
    color: #b91c1c;
    font-size: 1rem;
}

.nc-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.nc-stat-pill--teal { background: var(--nc-teal-light); color: var(--nc-teal-dark); }
.nc-stat-pill--gray { background: #f1f5f9; color: var(--nc-muted); }
.nc-stat-pill--yellow { background: #fef9c3; color: #a16207; }

.nc-metric-card {
    background: #f8fafc;
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius-sm);
    padding: 1rem 1.25rem;
}

.nc-metric-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--nc-navy);
    margin: 0.25rem 0 0;
}

.nc-revenue-hero {
    background: linear-gradient(135deg, #e0f7f5 0%, #f0fdfa 100%);
    border: 1px solid #b2dfdb;
    border-radius: var(--nc-radius);
    padding: 1.5rem;
    text-align: center;
}

.nc-revenue-hero .amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--nc-navy);
}

.nc-progress-bar {
    height: 8px;
    border-radius: 50px;
    background: #e2e8f0;
    overflow: hidden;
}

.nc-progress-bar .fill {
    height: 100%;
    border-radius: 50px;
    background: var(--nc-teal);
}

/* ---- Bay cards (bed allocation) ---- */
.nc-bay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.nc-bay-card {
    background: var(--nc-card);
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius);
    padding: 1.25rem;
    transition: box-shadow 0.2s ease;
}

.nc-bay-card:hover {
    box-shadow: var(--nc-shadow);
}

.nc-bay-card--active { border-left: 4px solid var(--nc-teal); }
.nc-bay-card--ready { border-left: 4px solid #cbd5e1; }
.nc-bay-card--cleaning { border-left: 4px solid var(--nc-warning); background: #fffbeb; }
.nc-bay-card--alert { border-left: 4px solid var(--nc-danger); background: #fef2f2; }

.nc-bay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.nc-bay-label {
    font-weight: 800;
    color: var(--nc-navy);
    font-size: 0.95rem;
}

.nc-bay-status {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 50px;
}

.nc-bay-status--active { background: var(--nc-teal-light); color: var(--nc-teal-dark); }
.nc-bay-status--ready { background: #f1f5f9; color: var(--nc-muted); }
.nc-bay-status--cleaning { background: #fef9c3; color: #a16207; }
.nc-bay-status--alert { background: #fee2e2; color: #b91c1c; }

.nc-bay-patient {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.nc-bay-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--nc-teal), var(--nc-navy));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.nc-bay-vitals {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.nc-bay-vital {
    background: #f8fafc;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.75rem;
}

.nc-bay-vital strong {
    display: block;
    color: var(--nc-navy);
    font-size: 0.85rem;
}

/* Dashboard bed allocation widget */
.admin-dash-bed-widget .admin-dash-bay-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.admin-dash-bed-widget .nc-bay-card {
    padding: 1rem;
}

.admin-dash-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: adminDashLivePulse 1.8s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes adminDashLivePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.85); }
}

@media (max-width: 1199.98px) {
    .admin-dash-bed-widget .admin-dash-bay-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .admin-dash-bed-widget .admin-dash-bay-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Patient profile (modern view) ---- */
.nc-profile-hero {
    position: relative;
    border-radius: var(--nc-radius);
    overflow: hidden;
    background: linear-gradient(135deg, var(--nc-navy) 0%, #0d3d56 55%, var(--nc-teal-dark) 100%);
    color: #fff;
    padding: 1.75rem;
    box-shadow: var(--nc-shadow);
    margin-bottom: 1.5rem;
}

.nc-profile-hero::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    top: -140px;
    right: -80px;
}

.nc-profile-hero::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(0, 180, 168, 0.18);
    bottom: -110px;
    left: 30%;
}

.nc-profile-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nc-profile-avatar {
    width: 92px;
    height: 92px;
    border-radius: 24px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.nc-profile-avatar-fallback {
    width: 92px;
    height: 92px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--nc-teal), var(--nc-navy-light));
    border: 3px solid rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

.nc-profile-head-main { flex: 1; min-width: 240px; }

.nc-profile-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.2;
}

.nc-profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.nc-profile-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    backdrop-filter: blur(4px);
}

.nc-profile-tag i { font-size: 0.95rem; }

.nc-profile-hero .nc-profile-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.nc-profile-hero .btn-light {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: var(--nc-navy);
    font-weight: 600;
}

.nc-profile-hero .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    font-weight: 600;
}

.nc-stat-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.nc-stat-tile {
    background: var(--nc-card);
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius);
    box-shadow: var(--nc-shadow);
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 14px;
}

.nc-stat-tile-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.nc-stat-tile-icon--teal { background: var(--nc-teal-light); color: var(--nc-teal-dark); }
.nc-stat-tile-icon--navy { background: rgba(10, 37, 64, 0.08); color: var(--nc-navy); }
.nc-stat-tile-icon--amber { background: #fef3c7; color: #b45309; }
.nc-stat-tile-icon--green { background: #dcfce7; color: #15803d; }

.nc-stat-tile-label {
    font-size: 0.78rem;
    color: var(--nc-muted);
    font-weight: 600;
    margin: 0;
}

.nc-stat-tile-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--nc-navy);
    margin: 2px 0 0;
    line-height: 1.1;
}

.nc-info-list { margin: 0; }

.nc-info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0.7rem 0;
    border-bottom: 1px dashed var(--nc-border);
}

.nc-info-row:last-child { border-bottom: none; }

.nc-info-row-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--nc-teal-light);
    color: var(--nc-teal-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.nc-info-row-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    color: var(--nc-muted);
    margin: 0;
}

.nc-info-row-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--nc-navy);
    margin: 1px 0 0;
    word-break: break-word;
}

.nc-quick-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.nc-quick-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.85rem 0.95rem;
    border-radius: var(--nc-radius-sm);
    border: 1px solid var(--nc-border);
    background: #fff;
    color: var(--nc-navy);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.18s ease;
}

.nc-quick-action:hover {
    border-color: var(--nc-teal);
    background: var(--nc-teal-light);
    color: var(--nc-navy);
    transform: translateY(-1px);
}

.nc-quick-action i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    background: var(--nc-teal-light);
    color: var(--nc-teal-dark);
    flex-shrink: 0;
}

.nc-quick-action--wide { grid-column: 1 / -1; justify-content: center; }

.nc-empty-row {
    text-align: center;
    color: var(--nc-muted);
    padding: 2rem 1rem !important;
}

.nc-empty-row i { font-size: 2rem; display: block; margin-bottom: 0.5rem; opacity: 0.5; }

@media (max-width: 1199.98px) {
    .nc-stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
    .nc-stat-tiles { grid-template-columns: 1fr; }
    .nc-quick-action-grid { grid-template-columns: 1fr; }
    .nc-profile-hero-inner { flex-direction: column; align-items: flex-start; text-align: left; }
}

html[data-bs-theme="dark"] body.nephroconnect-theme .nc-stat-tile,
html[data-bs-theme="dark"] body.nephroconnect-theme .nc-quick-action {
    background: #0f1828;
}

html[data-bs-theme="dark"] body.nephroconnect-theme .nc-quick-action:hover {
    background: var(--nc-teal-light);
}

/* ---- Patient intake wizard ---- */
.nc-intake-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.nc-intake-steps {
    background: var(--nc-card);
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius);
    padding: 1.25rem;
    position: sticky;
    top: 80px;
}

.nc-intake-steps h6 {
    font-weight: 800;
    color: var(--nc-navy);
    margin-bottom: 1rem;
}

.nc-intake-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--nc-radius-sm);
    color: var(--nc-muted);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 4px;
    text-decoration: none;
    border-left: 3px solid transparent;
}

.nc-intake-step i {
    font-size: 1.2rem;
    color: var(--nc-teal);
}

.nc-intake-step.active {
    background: var(--nc-teal-light);
    color: var(--nc-navy);
    border-left-color: var(--nc-teal);
    font-weight: 600;
}

.nc-intake-notice {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--nc-teal-light);
    border-radius: var(--nc-radius-sm);
    font-size: 0.8rem;
    color: var(--nc-navy-light);
}

.nc-intake-form-card {
    background: var(--nc-card);
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius);
    padding: 2rem;
    box-shadow: var(--nc-shadow);
}

.nc-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--nc-navy);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    margin-right: 10px;
}

.nc-photo-upload {
    border: 2px dashed var(--nc-border);
    border-radius: var(--nc-radius);
    padding: 2rem;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
}

.nc-review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.5rem;
}

.nc-review-item {
    display: flex;
    flex-direction: column;
    padding: 0.65rem 0.85rem;
    background: var(--nc-teal-light);
    border-radius: var(--nc-radius-sm);
    border: 1px solid var(--nc-border);
}

.nc-review-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    color: var(--nc-muted);
    margin-bottom: 2px;
}

.nc-review-value {
    font-weight: 600;
    color: var(--nc-navy);
    word-break: break-word;
}

@media (max-width: 575.98px) {
    .nc-review-grid {
        grid-template-columns: 1fr;
    }
}

.nc-blood-type-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nc-blood-pill {
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid var(--nc-border);
    background: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.nc-blood-pill.active,
.nc-blood-pill:hover {
    background: var(--nc-teal);
    border-color: var(--nc-teal);
    color: #fff;
}

@media (max-width: 991.98px) {
    .nc-intake-layout {
        grid-template-columns: 1fr;
    }

    .nc-intake-steps {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .nc-intake-step {
        flex: 1 1 auto;
        margin: 0;
    }

    body.nephroconnect-theme .nc-topbar-search {
        display: none;
    }

    .nc-bay-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Auth / Login ---- */
body.nc-auth-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    background: var(--nc-bg);
    min-height: 100vh;
    margin: 0;
}

body.nc-auth-page #preloader,
#preloader.preloader-done {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.nc-login-wrap {
    display: flex;
    min-height: 100vh;
}

.nc-login-brand {
    flex: 1;
    background: linear-gradient(145deg, var(--nc-navy) 0%, #0d3d56 45%, var(--nc-teal-dark) 100%);
    color: #fff;
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.nc-login-brand::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(0, 180, 168, 0.12);
    top: -120px;
    right: -100px;
}

.nc-login-brand::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    bottom: -80px;
    left: -60px;
}

.nc-login-brand > * {
    position: relative;
    z-index: 1;
}

.nc-login-logo h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 4px;
    color: #fff;
}

.nc-login-logo p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.nc-login-hero h2 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1rem;
    max-width: 420px;
}

.nc-login-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    max-width: 400px;
    line-height: 1.6;
}

.nc-login-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
}

.nc-login-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.nc-login-features li i {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--nc-teal);
    flex-shrink: 0;
}

.nc-login-brand-footer {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.nc-login-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background: var(--nc-bg);
}

.nc-login-card {
    width: 100%;
    max-width: 420px;
    background: var(--nc-card);
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius);
    box-shadow: 0 8px 40px rgba(10, 37, 64, 0.08);
    padding: 2.5rem;
}

.nc-login-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--nc-navy);
    margin: 0 0 0.35rem;
}

.nc-login-card .subtitle {
    color: var(--nc-muted);
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

.nc-login-card .form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--nc-navy);
    margin-bottom: 0.4rem;
}

.nc-login-card .form-control {
    border-radius: var(--nc-radius-sm);
    border: 1px solid var(--nc-border);
    padding: 12px 16px;
    font-size: 0.95rem;
}

.nc-login-card .form-control:focus {
    border-color: var(--nc-teal);
    box-shadow: 0 0 0 3px rgba(0, 180, 168, 0.15);
}

.nc-login-input-wrap {
    position: relative;
}

.nc-login-input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--nc-muted);
    font-size: 1.1rem;
}

.nc-login-input-wrap .form-control {
    padding-left: 42px;
}

.nc-login-card .btn-login {
    background: linear-gradient(135deg, var(--nc-teal), var(--nc-teal-dark));
    border: none;
    border-radius: var(--nc-radius-sm);
    padding: 12px;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nc-login-card .btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 180, 168, 0.35);
    color: #fff;
}

.nc-login-forgot {
    color: var(--nc-teal);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
}

.nc-login-forgot:hover {
    color: var(--nc-teal-dark);
}

.nc-login-mobile-logo {
    display: none;
    text-align: center;
    margin-bottom: 1.5rem;
}

.nc-login-mobile-logo h1 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--nc-navy);
    margin: 0;
}

@media (max-width: 991.98px) {
    .nc-login-wrap {
        flex-direction: column;
    }

    .nc-login-brand {
        display: none;
    }

    .nc-login-mobile-logo {
        display: block;
    }

    .nc-login-form-side {
        min-height: 100vh;
    }
}

/* ==========================================================================
   DARK MODE  (activated via <html data-bs-theme="dark">)
   Redefine theme variables so every var(--nc-*) consumer adapts, then patch
   the few places that use hardcoded light colors.
   ========================================================================== */
html[data-bs-theme="dark"] {
    color-scheme: dark;
    --nc-navy: #e7edf6;
    --nc-navy-light: #cbd5e1;
    --nc-teal: #2dd4bf;
    --nc-teal-dark: #14b8a6;
    --nc-teal-light: rgba(45, 212, 191, 0.16);
    --nc-bg: #0b1220;
    --nc-card: #131c2e;
    --nc-border: #25324a;
    --nc-text: #cbd5e1;
    --nc-muted: #93a4bd;
    --nc-shadow: 0 6px 28px rgba(0, 0, 0, 0.45);
}

html[data-bs-theme="dark"] body.nephroconnect-theme {
    color: var(--nc-text);
}

/* Headings / strong text */
html[data-bs-theme="dark"] body.nephroconnect-theme h1,
html[data-bs-theme="dark"] body.nephroconnect-theme h2,
html[data-bs-theme="dark"] body.nephroconnect-theme h3,
html[data-bs-theme="dark"] body.nephroconnect-theme h4,
html[data-bs-theme="dark"] body.nephroconnect-theme h5,
html[data-bs-theme="dark"] body.nephroconnect-theme h6,
html[data-bs-theme="dark"] body.nephroconnect-theme .card-title {
    color: var(--nc-navy);
}

/* Form fields */
html[data-bs-theme="dark"] body.nephroconnect-theme .form-control,
html[data-bs-theme="dark"] body.nephroconnect-theme .form-select,
html[data-bs-theme="dark"] body.nephroconnect-theme .form-control-plaintext,
html[data-bs-theme="dark"] body.nephroconnect-theme .nc-topbar-search .form-control {
    background-color: #0f1828;
    color: var(--nc-text);
    border-color: var(--nc-border);
}

html[data-bs-theme="dark"] body.nephroconnect-theme .form-control::placeholder {
    color: #64748b;
}

html[data-bs-theme="dark"] body.nephroconnect-theme .form-control:hover:not(:disabled):not([readonly]),
html[data-bs-theme="dark"] body.nephroconnect-theme .form-select:hover:not(:disabled),
html[data-bs-theme="dark"] body.nephroconnect-theme .form-control:focus,
html[data-bs-theme="dark"] body.nephroconnect-theme .form-select:focus {
    background-color: #16223a;
    border-color: var(--nc-teal);
}

html[data-bs-theme="dark"] body.nephroconnect-theme .form-control:disabled,
html[data-bs-theme="dark"] body.nephroconnect-theme .form-control[readonly],
html[data-bs-theme="dark"] body.nephroconnect-theme .form-select:disabled {
    background-color: #0b1220;
    color: var(--nc-muted);
}

/* Tables */
html[data-bs-theme="dark"] body.nephroconnect-theme .table {
    color: var(--nc-text);
}

html[data-bs-theme="dark"] body.nephroconnect-theme .table thead th {
    background: #0f1828;
    color: var(--nc-muted);
}

html[data-bs-theme="dark"] body.nephroconnect-theme .table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

/* Bootstrap contextual table heads used in report views */
html[data-bs-theme="dark"] body.nephroconnect-theme .table-light,
html[data-bs-theme="dark"] body.nephroconnect-theme .table-light > th,
html[data-bs-theme="dark"] body.nephroconnect-theme .table-light > td {
    --bs-table-bg: #0f1828;
    --bs-table-color: var(--nc-text);
    background-color: #0f1828;
    color: var(--nc-text);
}

/* Metric / hero / alert surfaces that use hardcoded light gradients */
html[data-bs-theme="dark"] body.nephroconnect-theme .nc-metric-card {
    background: #0f1828;
    border-color: var(--nc-border);
}

html[data-bs-theme="dark"] body.nephroconnect-theme .nc-revenue-hero {
    background: linear-gradient(135deg, #0e2e2b 0%, #0c211f 100%);
    border-color: #1b4a45;
}

html[data-bs-theme="dark"] body.nephroconnect-theme .nc-alert-critical {
    background: linear-gradient(135deg, #2a1414, #231010);
    border-color: #5b2424;
}

html[data-bs-theme="dark"] body.nephroconnect-theme .nc-alert-critical strong {
    color: #fca5a5;
}

html[data-bs-theme="dark"] body.nephroconnect-theme .nc-progress-bar {
    background: #25324a;
}

/* Secondary button surfaces */
html[data-bs-theme="dark"] body.nephroconnect-theme .card-body form .btn-secondary {
    background: #16223a;
    color: var(--nc-text);
    border-color: var(--nc-border);
}

/* Muted text helper */
html[data-bs-theme="dark"] body.nephroconnect-theme .text-muted {
    color: var(--nc-muted) !important;
}

/* Dropdowns / notification menus */
html[data-bs-theme="dark"] body.nephroconnect-theme .dropdown-menu {
    background-color: var(--nc-card);
    border-color: var(--nc-border);
    color: var(--nc-text);
}

html[data-bs-theme="dark"] body.nephroconnect-theme .dropdown-item {
    color: var(--nc-text);
}

html[data-bs-theme="dark"] body.nephroconnect-theme .dropdown-item:hover,
html[data-bs-theme="dark"] body.nephroconnect-theme .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--nc-navy);
}

/* Right settings sidebar */
html[data-bs-theme="dark"] body.nephroconnect-theme .right-bar {
    background: var(--nc-card);
    color: var(--nc-text);
}

/* ApexCharts legibility on dark surfaces */
html[data-bs-theme="dark"] body.nephroconnect-theme .apexcharts-text,
html[data-bs-theme="dark"] body.nephroconnect-theme .apexcharts-text tspan {
    fill: #cbd5e1;
}

html[data-bs-theme="dark"] body.nephroconnect-theme .apexcharts-legend-text {
    color: #cbd5e1 !important;
}

html[data-bs-theme="dark"] body.nephroconnect-theme .apexcharts-gridline,
html[data-bs-theme="dark"] body.nephroconnect-theme .apexcharts-xaxis line,
html[data-bs-theme="dark"] body.nephroconnect-theme .apexcharts-yaxis line {
    stroke: #25324a;
}

html[data-bs-theme="dark"] body.nephroconnect-theme .apexcharts-tooltip {
    background: #131c2e !important;
    color: #cbd5e1 !important;
    border-color: #25324a !important;
}

html[data-bs-theme="dark"] body.nephroconnect-theme .apexcharts-tooltip-title {
    background: #0f1828 !important;
    border-color: #25324a !important;
}
