html, body, button, input, select, textarea, .radzen-text, .rz-grid-table, .form-control, .form-select, .btn, .nav-link, h1, h2, h3, h4, h5, h6 {
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.brand-logo-img {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px;
    object-fit: contain;
    background: #ffffff;
    padding: 3px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    flex-shrink: 0;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* GLOBAL DARK THEME COMPREHENSIVE OVERRIDES */
:root[data-bs-theme="dark"],
[data-bs-theme="dark"],
.dark-theme {
    color-scheme: dark !important;
}

[data-bs-theme="dark"] body,
.dark-theme body {
    background-color: #0b1120 !important;
    color: #f1f5f9 !important;
}

/* Background utilities */
[data-bs-theme="dark"] .bg-white,
.dark-theme .bg-white {
    background-color: #1e293b !important;
    color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .bg-light,
.dark-theme .bg-light {
    background-color: #0f172a !important;
    color: #f1f5f9 !important;
}

/* Text color utilities */
[data-bs-theme="dark"] .text-dark,
.dark-theme .text-dark,
[data-bs-theme="dark"] .text-black,
.dark-theme .text-black {
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .text-muted,
.dark-theme .text-muted {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .text-body,
.dark-theme .text-body {
    color: #f1f5f9 !important;
}

/* Border utilities */
[data-bs-theme="dark"] .border,
.dark-theme .border,
[data-bs-theme="dark"] .border-bottom,
.dark-theme .border-bottom,
[data-bs-theme="dark"] .border-top,
.dark-theme .border-top,
[data-bs-theme="dark"] .border-start,
.dark-theme .border-start,
[data-bs-theme="dark"] .border-end,
.dark-theme .border-end {
    border-color: #334155 !important;
}

/* CARDS */
[data-bs-theme="dark"] .card,
.dark-theme .card {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .card-header,
.dark-theme .card-header {
    background-color: #0f172a !important;
    border-bottom-color: #334155 !important;
    color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .card-footer,
.dark-theme .card-footer {
    background-color: #0f172a !important;
    border-top-color: #334155 !important;
    color: #f1f5f9 !important;
}

/* TABLES - STANDARDIZED DARK THEME */
[data-bs-theme="dark"] .table,
.dark-theme .table {
    --bs-table-bg: #1e293b !important;
    --bs-table-color: #f1f5f9 !important;
    --bs-table-border-color: #334155 !important;
    --bs-table-striped-bg: #162032 !important;
    --bs-table-striped-color: #f1f5f9 !important;
    --bs-table-active-bg: #223049 !important;
    --bs-table-active-color: #f8fafc !important;
    --bs-table-hover-bg: #27354a !important;
    --bs-table-hover-color: #f8fafc !important;
    color: #f1f5f9 !important;
    border-color: #334155 !important;
}

[data-bs-theme="dark"] .table > :not(caption) > * > *,
.dark-theme .table > :not(caption) > * > * {
    background-color: var(--bs-table-bg, #1e293b);
    color: var(--bs-table-color, #f1f5f9);
    border-bottom-color: #334155 !important;
}

/* THEAD / TFOOT - PREVENTS WHITE HEADER FLASH IN DARK THEME */
[data-bs-theme="dark"] .table-light,
.dark-theme .table-light,
[data-bs-theme="dark"] thead.table-light,
.dark-theme thead.table-light,
[data-bs-theme="dark"] thead.table-light th,
.dark-theme thead.table-light th,
[data-bs-theme="dark"] thead th,
.dark-theme thead th,
[data-bs-theme="dark"] tfoot.table-light,
.dark-theme tfoot.table-light,
[data-bs-theme="dark"] tfoot.table-light td,
.dark-theme tfoot.table-light td,
[data-bs-theme="dark"] tfoot.table-light th,
.dark-theme tfoot.table-light th {
    --bs-table-bg: #0f172a !important;
    --bs-table-color: #94a3b8 !important;
    --bs-table-border-color: #334155 !important;
    background-color: #0f172a !important;
    color: #cbd5e1 !important;
    border-color: #334155 !important;
    font-weight: 600;
}

/* CONTEXTUAL TABLE ROWS IN DARK THEME */
[data-bs-theme="dark"] .table-info,
.dark-theme .table-info,
[data-bs-theme="dark"] .table-info > th,
.dark-theme .table-info > th,
[data-bs-theme="dark"] .table-info > td,
.dark-theme .table-info > td {
    --bs-table-bg: #1e3a5f !important;
    --bs-table-color: #e0f2fe !important;
    background-color: #1e3a5f !important;
    color: #e0f2fe !important;
}

[data-bs-theme="dark"] .table-primary,
.dark-theme .table-primary,
[data-bs-theme="dark"] .table-primary > th,
.dark-theme .table-primary > th,
[data-bs-theme="dark"] .table-primary > td,
.dark-theme .table-primary > td {
    --bs-table-bg: #1e3a8a !important;
    --bs-table-color: #eff6ff !important;
    background-color: #1e3a8a !important;
    color: #eff6ff !important;
}

[data-bs-theme="dark"] .table-secondary,
.dark-theme .table-secondary,
[data-bs-theme="dark"] .table-secondary > th,
.dark-theme .table-secondary > th,
[data-bs-theme="dark"] .table-secondary > td,
.dark-theme .table-secondary > td {
    --bs-table-bg: #1e293b !important;
    --bs-table-color: #cbd5e1 !important;
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .table-success,
.dark-theme .table-success,
[data-bs-theme="dark"] .table-success > th,
.dark-theme .table-success > th,
[data-bs-theme="dark"] .table-success > td,
.dark-theme .table-success > td {
    --bs-table-bg: #064e3b !important;
    --bs-table-color: #ecfdf5 !important;
    background-color: #064e3b !important;
    color: #ecfdf5 !important;
}

[data-bs-theme="dark"] .table-warning,
.dark-theme .table-warning,
[data-bs-theme="dark"] .table-warning > th,
.dark-theme .table-warning > th,
[data-bs-theme="dark"] .table-warning > td,
.dark-theme .table-warning > td {
    --bs-table-bg: #78350f !important;
    --bs-table-color: #fef3c7 !important;
    background-color: #78350f !important;
    color: #fef3c7 !important;
}

[data-bs-theme="dark"] .table-danger,
.dark-theme .table-danger,
[data-bs-theme="dark"] .table-danger > th,
.dark-theme .table-danger > th,
[data-bs-theme="dark"] .table-danger > td,
.dark-theme .table-danger > td {
    --bs-table-bg: #7f1d1d !important;
    --bs-table-color: #fee2e2 !important;
    background-color: #7f1d1d !important;
    color: #fee2e2 !important;
}

[data-bs-theme="dark"] .table-active,
.dark-theme .table-active,
[data-bs-theme="dark"] .table-active > th,
.dark-theme .table-active > th,
[data-bs-theme="dark"] .table-active > td,
.dark-theme .table-active > td {
    --bs-table-bg: #27354a !important;
    --bs-table-color: #f8fafc !important;
    background-color: #27354a !important;
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .table-hover > tbody > tr:hover > *,
.dark-theme .table-hover > tbody > tr:hover > * {
    --bs-table-hover-bg: #27354a !important;
    --bs-table-hover-color: #f8fafc !important;
    background-color: #27354a !important;
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > *,
.dark-theme .table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-striped-bg: #162032 !important;
    --bs-table-striped-color: #f1f5f9 !important;
    background-color: #162032 !important;
    color: #f1f5f9 !important;
}

/* CODE & BADGES */
[data-bs-theme="dark"] code,
.dark-theme code {
    color: #38bdf8 !important;
    background-color: rgba(56, 189, 248, 0.12) !important;
    padding: 2px 6px;
    border-radius: 4px;
}

[data-bs-theme="dark"] .badge.bg-light,
.dark-theme .badge.bg-light {
    background-color: #0f172a !important;
    color: #93c5fd !important;
    border-color: #334155 !important;
}

[data-bs-theme="dark"] .badge.bg-white,
.dark-theme .badge.bg-white {
    background-color: #1e293b !important;
    color: #f1f5f9 !important;
    border-color: #334155 !important;
}

/* FORMS, INPUTS & SELECTS */
[data-bs-theme="dark"] .form-control,
.dark-theme .form-control,
[data-bs-theme="dark"] .form-select,
.dark-theme .form-select {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
    color-scheme: dark !important;
}

[data-bs-theme="dark"] .form-control::placeholder,
.dark-theme .form-control::placeholder {
    color: #64748b !important;
}

[data-bs-theme="dark"] .form-control:focus,
.dark-theme .form-control:focus,
[data-bs-theme="dark"] .form-select:focus,
.dark-theme .form-select:focus {
    background-color: #0f172a !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25) !important;
    color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .form-select option,
.dark-theme .form-select option {
    background-color: #0f172a !important;
    color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .input-group-text,
.dark-theme .input-group-text {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

/* MODALS & OFFCANVAS */
[data-bs-theme="dark"] .modal-content,
.dark-theme .modal-content,
[data-bs-theme="dark"] .offcanvas,
.dark-theme .offcanvas {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
}

[data-bs-theme="dark"] .modal-header,
.dark-theme .modal-header,
[data-bs-theme="dark"] .modal-footer,
.dark-theme .modal-footer,
[data-bs-theme="dark"] .offcanvas-header,
.dark-theme .offcanvas-header {
    background-color: #0f172a !important;
    border-color: #334155 !important;
}

[data-bs-theme="dark"] .btn-close,
.dark-theme .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* NAV TABS & LIST GROUPS */
[data-bs-theme="dark"] .nav-tabs,
.dark-theme .nav-tabs {
    border-bottom-color: #334155 !important;
}

[data-bs-theme="dark"] .nav-tabs .nav-link,
.dark-theme .nav-tabs .nav-link {
    color: #94a3b8 !important;
    border-color: transparent !important;
}

[data-bs-theme="dark"] .nav-tabs .nav-link:hover,
.dark-theme .nav-tabs .nav-link:hover {
    color: #f1f5f9 !important;
    border-color: #334155 #334155 transparent !important;
}

[data-bs-theme="dark"] .nav-tabs .nav-link.active,
.dark-theme .nav-tabs .nav-link.active {
    background-color: #1e293b !important;
    border-color: #334155 #334155 #1e293b !important;
    color: #38bdf8 !important;
}

[data-bs-theme="dark"] .list-group-item,
.dark-theme .list-group-item {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .list-group-item:hover,
.dark-theme .list-group-item:hover {
    background-color: #27354a !important;
}

/* DROPDOWN MENUS */
[data-bs-theme="dark"] .dropdown-menu,
.dark-theme .dropdown-menu {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
}

[data-bs-theme="dark"] .dropdown-item,
.dark-theme .dropdown-item {
    color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .dropdown-item:hover,
.dark-theme .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus,
.dark-theme .dropdown-item:focus {
    background-color: #27354a !important;
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .dropdown-divider,
.dark-theme .dropdown-divider {
    border-top-color: #334155 !important;
}

/* PAGINATION */
[data-bs-theme="dark"] .pagination .page-link,
.dark-theme .pagination .page-link {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .pagination .page-item.active .page-link,
.dark-theme .pagination .page-item.active .page-link {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .pagination .page-item.disabled .page-link,
.dark-theme .pagination .page-item.disabled .page-link {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #64748b !important;
}

/* ALERTS */
[data-bs-theme="dark"] .alert-info,
.dark-theme .alert-info {
    background-color: rgba(14, 165, 233, 0.15) !important;
    border-color: rgba(14, 165, 233, 0.3) !important;
    color: #7dd3fc !important;
}

[data-bs-theme="dark"] .alert-success,
.dark-theme .alert-success {
    background-color: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: #6ee7b7 !important;
}

[data-bs-theme="dark"] .alert-warning,
.dark-theme .alert-warning {
    background-color: rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    color: #fcd34d !important;
}

[data-bs-theme="dark"] .alert-danger,
.dark-theme .alert-danger {
    background-color: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #fca5a5 !important;
}

/* RADZEN COMPONENTS IN DARK THEME */
[data-bs-theme="dark"] .rz-dialog,
.dark-theme .rz-dialog {
    background-color: #1e293b !important;
    color: #f1f5f9 !important;
    border: 1px solid #334155 !important;
}

[data-bs-theme="dark"] .rz-dialog-titlebar,
.dark-theme .rz-dialog-titlebar {
    background-color: #0f172a !important;
    color: #f1f5f9 !important;
    border-bottom: 1px solid #334155 !important;
}

[data-bs-theme="dark"] .rz-notification-message,
.dark-theme .rz-notification-message {
    background-color: #1e293b !important;
    color: #f1f5f9 !important;
    border: 1px solid #334155 !important;
}

/* BUTTONS IN DARK THEME */
[data-bs-theme="dark"] .btn-light,
.dark-theme .btn-light,
[data-bs-theme="dark"] .btn-white,
.dark-theme .btn-white {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .btn-light:hover,
.dark-theme .btn-light:hover,
[data-bs-theme="dark"] .btn-white:hover,
.dark-theme .btn-white:hover {
    background-color: #27354a !important;
    border-color: #475569 !important;
    color: #ffffff !important;
}

/* FORM CHECKS & SWITCHES */
[data-bs-theme="dark"] .form-check-input,
.dark-theme .form-check-input {
    background-color: #0f172a;
    border-color: #334155;
}

[data-bs-theme="dark"] .form-check-input:checked,
.dark-theme .form-check-input:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}

/* ACCORDIONS IN DARK THEME */
[data-bs-theme="dark"] .accordion-item,
.dark-theme .accordion-item {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .accordion-button,
.dark-theme .accordion-button {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .accordion-button:not(.collapsed),
.dark-theme .accordion-button:not(.collapsed) {
    background-color: #1e3a5f !important;
    color: #38bdf8 !important;
    box-shadow: none !important;
}

[data-bs-theme="dark"] .accordion-button::after,
.dark-theme .accordion-button::after {
    filter: invert(1) brightness(150%);
}

/* CARDS, VOUCHERS & AVATARS */
[data-bs-theme="dark"] .voucher-card,
.dark-theme .voucher-card {
    border-color: #334155 !important;
}

[data-bs-theme="dark"] .profile-avatar,
.dark-theme .profile-avatar,
[data-bs-theme="dark"] .profile-avatar-placeholder,
.dark-theme .profile-avatar-placeholder,
[data-bs-theme="dark"] .profile-avatar-large,
.dark-theme .profile-avatar-large,
[data-bs-theme="dark"] .profile-avatar-large-placeholder,
.dark-theme .profile-avatar-large-placeholder {
    border-color: #334155 !important;
}

/* RADZEN POPUPS & DROPDOWNS */
[data-bs-theme="dark"] .rz-dropdown,
.dark-theme .rz-dropdown,
[data-bs-theme="dark"] .rz-lookup,
.dark-theme .rz-lookup {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .rz-dropdown-items,
.dark-theme .rz-dropdown-items {
    background-color: #1e293b !important;
    color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .rz-dropdown-item:hover,
.dark-theme .rz-dropdown-item:hover {
    background-color: #27354a !important;
    color: #ffffff !important;
}

/* SIDEBAR DARK THEME VARIABLES */
[data-bs-theme="dark"] .nav-menu-container,
.dark-theme .nav-menu-container {
    --sidebar-bg: #0b1523 !important;
    --sidebar-color: #e2e8f0 !important;
    --sidebar-border: rgba(255, 255, 255, 0.08) !important;
    --sidebar-header-bg: linear-gradient(180deg, #0f1f35 0%, #0b1523 100%) !important;
    --sidebar-header-border: rgba(255, 255, 255, 0.08) !important;
    --sidebar-title-color: #ffffff !important;
    --sidebar-subtitle-color: #94a3b8 !important;
    --sidebar-group-color: #94a3b8 !important;
    --sidebar-group-hover-bg: rgba(255, 255, 255, 0.05) !important;
    --sidebar-group-hover-color: #f8fafc !important;
    --sidebar-badge-bg: rgba(255, 255, 255, 0.1) !important;
    --sidebar-badge-color: #cbd5e1 !important;
    --sidebar-badge-border: transparent !important;
    --sidebar-link-color: #cbd5e1 !important;
    --sidebar-link-hover-bg: rgba(255, 255, 255, 0.07) !important;
    --sidebar-link-hover-color: #ffffff !important;
    --sidebar-link-active-bg: linear-gradient(90deg, #1d4ed8 0%, #2563eb 100%) !important;
    --sidebar-link-active-color: #ffffff !important;
    --sidebar-link-active-shadow: 0 4px 14px rgba(37, 99, 235, 0.4) !important;
    --sidebar-link-active-bar: #38bdf8 !important;
    --sidebar-toggle-card-bg: rgba(15, 23, 42, 0.75) !important;
    --sidebar-toggle-card-border: rgba(59, 130, 246, 0.25) !important;
    --sidebar-toggle-card-title: #ffffff !important;
    --sidebar-toggle-card-sub: #94a3b8 !important;
    --sidebar-auth-bg: rgba(255, 255, 255, 0.03) !important;
    --sidebar-auth-border: rgba(255, 255, 255, 0.15) !important;
    --sidebar-auth-color: #e2e8f0 !important;
    --sidebar-auth-hover-bg: rgba(37, 99, 235, 0.15) !important;
    --sidebar-auth-hover-border: #3b82f6 !important;
    --sidebar-auth-hover-color: #60a5fa !important;
    --sidebar-scrollbar-thumb: rgba(255, 255, 255, 0.15) !important;
    --sidebar-divider: rgba(255, 255, 255, 0.1) !important;
}

/* SIDEBAR GLOBAL ELEMENT RESETS */
.group-header-btn {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.group-header-btn:focus,
.group-header-btn:active,
.group-header-btn:hover {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* SIDEBAR NAV LINKS - EXPLICIT SPECIFICITY */
.nav-menu-container a.nav-link {
    color: #334155 !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    padding: 0.52rem 0.85rem !important;
    transition: all 0.18s ease-in-out !important;
}

.nav-menu-container a.nav-link:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    transform: translateX(3px) !important;
}

.nav-menu-container a.nav-link.active,
.nav-menu-container a.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28) !important;
}

.nav-menu-container a.nav-link.active .nav-icon,
.nav-menu-container a.active .nav-icon {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* DARK THEME NAV LINKS */
[data-bs-theme="dark"] .nav-menu-container a.nav-link,
.dark-theme .nav-menu-container a.nav-link {
    color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .nav-menu-container a.nav-link:hover,
.dark-theme .nav-menu-container a.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.07) !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .nav-menu-container a.nav-link.active,
.dark-theme .nav-menu-container a.nav-link.active {
    background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 100%) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   STANDARDIZED PAGE HEADER CARD
   Consistent across all portal pages:
   - Left thick rounded border (5px accent)
   - Left-aligned icon box
   - Header text in UPPER CASE
   - Sub header directly under header text
   - Action buttons aligned to the right
   ========================================================================== */
.page-header-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #2563eb !important;
    border-radius: 0.75rem !important;
    padding: 1.1rem 1.35rem;
    margin-bottom: 1.35rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    transition: all 0.2s ease;
}

[data-bs-theme="dark"] .page-header-card,
.dark-theme .page-header-card {
    background: #111e30 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    border-left: 5px solid #3b82f6 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

.page-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    flex: 1;
}

.page-header-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
}

[data-bs-theme="dark"] .page-header-icon-box,
.dark-theme .page-header-icon-box {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.page-header-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.page-header-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase !important;
    margin: 0;
    line-height: 1.3;
    color: #0f172a;
}

[data-bs-theme="dark"] .page-header-title,
.dark-theme .page-header-title {
    color: #ffffff !important;
}

.page-header-subtitle {
    font-size: 0.83rem;
    color: #64748b;
    margin: 0.25rem 0 0 0;
    line-height: 1.4;
    font-weight: 400;
}

[data-bs-theme="dark"] .page-header-subtitle,
.dark-theme .page-header-subtitle {
    color: #94a3b8 !important;
}

.page-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* ==========================================================================
   SUMMARY / KPI STAT CARDS
   ========================================================================== */
.hover-elevate {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}
.hover-elevate:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.08) !important;
}
.cursor-pointer {
    cursor: pointer;
}
.stat-card-active {
    box-shadow: 0 0 0 2px #2563eb, 0 8px 20px rgba(37, 99, 235, 0.15) !important;
    background-color: rgba(37, 99, 235, 0.03) !important;
}
.stat-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}
[data-bs-theme="dark"] .stat-card-active,
.dark-theme .stat-card-active {
    box-shadow: 0 0 0 2px #60a5fa, 0 8px 20px rgba(96, 165, 250, 0.25) !important;
    background-color: rgba(59, 130, 246, 0.08) !important;
}

/* ==========================================================================
   DATAGRID PAGINATION
   ========================================================================== */
.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 0.5rem;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 6px;
    margin: 0 2px;
    color: #475569;
    border: 1px solid #e2e8f0;
    transition: all 0.15s ease;
}
.pagination .page-item.active .page-link {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}
.pagination .page-link:hover:not(.active) {
    background-color: #f1f5f9;
    color: #1e293b;
    border-color: #cbd5e1;
}
.pagination .page-item.disabled .page-link {
    background-color: transparent;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.6;
}

[data-bs-theme="dark"] .pagination .page-link,
.dark-theme .pagination .page-link {
    background-color: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}
[data-bs-theme="dark"] .pagination .page-item.active .page-link,
.dark-theme .pagination .page-item.active .page-link {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}
[data-bs-theme="dark"] .pagination .page-item.disabled .page-link,
.dark-theme .pagination .page-item.disabled .page-link {
    background-color: #0f172a;
    border-color: #334155;
    color: #64748b;
    opacity: 0.5;
}
[data-bs-theme="dark"] .pagination .page-link:hover:not(.active),
.dark-theme .pagination .page-link:hover:not(.active) {
    background-color: #334155;
    color: #ffffff;
}

[data-bs-theme="dark"] .btn-outline-secondary,
.dark-theme .btn-outline-secondary {
    color: #cbd5e1;
    border-color: #334155;
}
[data-bs-theme="dark"] .btn-outline-secondary:hover,
.dark-theme .btn-outline-secondary:hover {
    color: #ffffff;
    background-color: #334155;
    border-color: #475569;
}

