
/* :root {
    --color-primary: #002c7a;
    --color-primary-hover: #001f5f;
    --color-primary-active: #001844;
    --color-primary-contrast: #ffffff;
    --color-sidebar-header: #002c7a;
    --color-sidebar-bg: #ffffff;
    --color-sidebar-bg-dark: #101114;
    --color-heritage-gold: #7b5800;
    --color-surface: #ffffff;
    --color-border: #e0e0e0;
    --color-text: #333333;
    --color-link-hover: #990000;
} */
:root {
    --color-primary: #002c7a;
    --color-primary-rgb: 0, 44, 122;
    --color-primary-hover: #001f5f;
    --color-primary-active: #001844;
    --color-primary-contrast: #ffffff;
    --color-sidebar-header: #ffffff;
    --color-sidebar-bg: #002c7a;
    --color-sidebar-text: #ffffff;
    --color-sidebar-bg-dark: #101114;
    --color-heritage-gold: #7b5800;
    --color-surface: #ffffff;
    --color-border: #e0e0e0;
    --color-text: #333333;
    --color-link-hover: #990000;
}


.border-primary {
    border-color: var(--color-primary) !important;
}



.aside-primary nav.nav-deep-hover > ul > li.nav-item:hover, .aside-primary nav.nav-deep-hover > ul > li.nav-item.active  {
    background-color: rgb(0 92 255 / 52%) !important;
    color: #ffffff !important;
    border-left: 3px solid var(--color-heritage-gold) !important;
}

nav.nav-deep-dark .nav-item > a.nav-link {
    color: #bfc6d7;
    font-weight: 500;
}



html[data-bs-theme="light"] body.layout-admin {
    background-color: #e5e5e5 !important;
    color: #212529;
}

html[data-bs-theme="dark"] body.layout-admin {
    background-color: #101114;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='%23ffffff' fill-opacity='.035'%3E%3Ccircle cx='12' cy='18' r='1'/%3E%3Ccircle cx='36' cy='82' r='1'/%3E%3Ccircle cx='58' cy='34' r='1'/%3E%3Ccircle cx='76' cy='118' r='1'/%3E%3Ccircle cx='98' cy='54' r='1'/%3E%3Ccircle cx='124' cy='24' r='1'/%3E%3Ccircle cx='112' cy='92' r='1'/%3E%3Ccircle cx='24' cy='122' r='1'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(180deg, #101114 0%, #15171d 100%);
    background-repeat: repeat, no-repeat;
    background-size: 140px 140px, 100% 100%;
    color: #e5e7eb;
}

body.layout-admin {
    background-color: #e7e7e7;
}
.aside-primary {
    color: var(--color-text);
    background-color: var(--color-sidebar-bg);
    border-right: 1px solid var(--color-border);
}

html[data-bs-theme="dark"] .aside-primary {
    color: #e5e7eb;
    background-color: var(--color-sidebar-bg-dark);
    background-image: none;
    border-right-color: rgba(255, 255, 255, 0.08);
}

html[data-bs-theme="dark"] nav.nav-deep-dark .nav-item > a.nav-link {
    color: #e5e7eb;
}

html[data-bs-theme="dark"] nav.nav-deep-dark .nav-item > a.nav-link:hover {
    color: var(--color-sidebar-text);
    background-color: rgba(0, 44, 122, 0.08);
}


nav.nav-deep-dark .nav-item > a.nav-link.active,
nav.nav-deep-dark .nav-item.active > a.nav-link,
.aside-primary .nav-item.active > a.nav-link {
    color: var(--color-primary-contrast);
    background-color: var(--color-primary);
}

html[data-bs-theme="dark"] #middle,
html[data-bs-theme="dark"] #footer,
html[data-bs-theme="dark"] .text-gray-800 {
    color: #e5e7eb !important;
}

html[data-bs-theme="dark"] .card {
    --bs-card-bg: #1f2937;
    --bs-card-border-color: rgba(255, 255, 255, 0.08);
    --bs-card-cap-bg: #181c24;
    --bs-card-color: #e5e7eb;
    background-color: #1f2937 !important;
    color: #e5e7eb;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

html[data-bs-theme="dark"] .modal-content,
html[data-bs-theme="dark"] .dropdown-menu,
html[data-bs-theme="dark"] .offcanvas,
html[data-bs-theme="dark"] .js-image-uploader-placeholder,
html[data-bs-theme="dark"] .js-image-uploader-preview {
    background-color: #1f2937 !important;
    color: #e5e7eb;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-bs-theme="dark"] .card-header,
html[data-bs-theme="dark"] .card-footer {
    background-color: #181c24 !important;
    color: #f3f4f6;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-bs-theme="dark"] .card-title {
    color: #f3f4f6;
}

html[data-bs-theme="dark"] .card-subtitle {
    color: #9ca3af !important;
}

html[data-bs-theme="dark"] .card-text {
    color: #d1d5db;
}

html[data-bs-theme="dark"] .card-link {
    color: #f87171;
}

html[data-bs-theme="dark"] .card-link:hover {
    color: #fca5a5;
}

html[data-bs-theme="dark"] .card .list-group-item {
    background-color: #1f2937;
    border-color: rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
}

html[data-bs-theme="dark"] .section {
    background-color: #181b20;
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

html[data-bs-theme="dark"] .section .text-muted,
html[data-bs-theme="dark"] .section small {
    color: #9ca3af !important;
}

html[data-bs-theme="dark"] .tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background-color: #20242b;
    color: #f3f4f6;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

html[data-bs-theme="dark"] .tag a,
html[data-bs-theme="dark"] .tag .text-muted {
    color: inherit !important;
}

html[data-bs-theme="dark"] .table,
html[data-bs-theme="dark"] .table-datatable,
html[data-bs-theme="dark"] table.table {
    --bs-table-bg: #181b20;
    --bs-table-striped-bg: #1d2127;
    --bs-table-hover-bg: #242932;
    --bs-table-border-color: rgba(255, 255, 255, 0.09);
    --bs-table-color: #e5e7eb;
    color: #e5e7eb;
    background-color: #181b20;
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

html[data-bs-theme="dark"] .table > :not(caption) > * > *,
html[data-bs-theme="dark"] .table-datatable > :not(caption) > * > * {
    background-color: transparent;
    color: inherit;
    border-bottom-color: rgba(255, 255, 255, 0.09);
    box-shadow: none;
}

html[data-bs-theme="dark"] .table-light,
html[data-bs-theme="dark"] thead.table-light,
html[data-bs-theme="dark"] .table thead {
    --bs-table-bg: #20242b;
    --bs-table-color: #f3f4f6;
    color: #f3f4f6 !important;
    background-color: #20242b !important;
}

html[data-bs-theme="dark"] .table-hover > tbody > tr:hover > *,
html[data-bs-theme="dark"] .table-hover > tbody > tr:hover {
    color: #ffffff;
    background-color: #242932 !important;
}

html[data-bs-theme="dark"] .table-bordered,
html[data-bs-theme="dark"] .table-bordered > :not(caption) > * {
    border-color: rgba(255, 255, 255, 0.09) !important;
}

html[data-bs-theme="dark"] .dataTables_wrapper .dataTables_filter input,
html[data-bs-theme="dark"] .dataTables_wrapper .dataTables_length select {
    background-color: #111418;
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-bs-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #d1d5db !important;
}

html[data-bs-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button.current,
html[data-bs-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    color: #ffffff !important;
    background: #242932 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-bs-theme="dark"] .text-muted,
html[data-bs-theme="dark"] .small.text-muted,
html[data-bs-theme="dark"] .form-check-label,
html[data-bs-theme="dark"] .js-image-uploader-placeholder .text-muted {
    color: #9ca3af !important;
}

html[data-bs-theme="dark"] .form-control,
html[data-bs-theme="dark"] .form-select,
html[data-bs-theme="dark"] .input-group-text {
    background-color: #111827;
    color: #e5e7eb;
    border-color: rgba(255, 255, 255, 0.1);
}

html[data-bs-theme="dark"] #header.header-match-aside-primary {
    background: var(--color-sidebar-header);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-bs-theme="dark"] #footer {
    background-color: #111827 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
#header.header-match-aside-primary {
    background: var(--color-sidebar-header);
    border-bottom: 1px solid var(--color-border);
}

.bg-primary{
    background-color: var(--color-primary) !important;
}

.text-primary{
    color: var(--color-primary) !important;
}

.btn-light-blue {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--color-primary);
    --bs-btn-border-color: var(--color-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--color-primary-hover);
    --bs-btn-hover-border-color: var(--color-primary-hover);
    --bs-btn-focus-shadow-rgb: 0, 44, 122; /* RGB of #002c7a */
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--color-primary-active);
    --bs-btn-active-border-color: var(--color-primary-active);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--color-primary);
    --bs-btn-disabled-border-color: var(--color-primary);
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--color-primary);
    --bs-btn-border-color: var(--color-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--color-primary-hover);
    --bs-btn-hover-border-color: var(--color-primary-hover);
    --bs-btn-focus-shadow-rgb: 0, 44, 122; /* RGB of #002c7a */
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--color-primary-active);
    --bs-btn-active-border-color: var(--color-primary-active);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--color-primary);
    --bs-btn-disabled-border-color: var(--color-primary);
}

.btn-outline-primary {
    --bs-btn-color: var(--color-primary);
    --bs-btn-border-color: var(--color-primary);

    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--color-primary);
    --bs-btn-hover-border-color: var(--color-primary);

    --bs-btn-focus-shadow-rgb: 0, 44, 122; /* RGB of #002c7a */

    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--color-primary-active);
    --bs-btn-active-border-color: var(--color-primary-active);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);

    --bs-btn-disabled-color: var(--color-primary);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--color-primary);

    --bs-gradient: none;
}

.btn-heritage-gold {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--color-heritage-gold);
    --bs-btn-border-color: var(--color-heritage-gold);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #7b5800;
    --bs-btn-hover-border-color: #7b5800;
    --bs-btn-focus-shadow-rgb: 123, 88, 0; /* RGB of #7b5800 */
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #6a4700;
    --bs-btn-active-border-color: #6a4700;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--color-heritage-gold);
    --bs-btn-disabled-border-color: var(--color-heritage-gold);
}

.btn-heritage-gold:hover {
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #7b5800;
    --bs-btn-hover-border-color: #7b5800;
}

/* Links in primary/gold */

a:not(.btn):not(.nav-link):not(.dropdown-item):not(.tag a) {
    color: var(--color-primary) ;
}
a:hover:not(.btn) {
    color: var(--color-heritage-gold) ;
}

.aside-primary a:hover {
    color: var(--color-heritage-gold) ;
}

.bg-heritage-gold {
    background-color: var(--color-heritage-gold) ;
}

.text-heritage-gold {
    color: var(--color-heritage-gold) ;
}

/* Premium Bootstrap 5 Nav-Tabs */
.nav-tabs {
    border-bottom: 2px solid #e5e7eb;
    gap: 6px;
}

.nav-tabs .nav-link {
    color: #6b7280;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 16px;
    border: none;
    border-bottom: 2px solid transparent;
    background-color: transparent;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.nav-tabs .nav-link:hover {
    color: #00446b;
    background-color: rgba(0, 68, 107, 0.04);
    border-bottom-color: rgba(0, 68, 107, 0.2);
}

.nav-tabs .nav-link.active {
    color: #00446b;
    background-color: transparent;
    border-bottom-color: #00b2e2;
    font-weight: 600;
}

.nav-tabs .nav-link.active:hover {
    color: #00446b;
    background-color: rgba(0, 178, 226, 0.05);
    border-bottom-color: #00b2e2;
}

.nav-tabs .nav-link:disabled {
    color: #d1d5db;
    cursor: not-allowed;
    background-color: transparent;
}

/* Nav-Tabs Variants */

/* Primary (Default) */
.nav-tabs.nav-tabs-primary .nav-link.active {
    color: #00446b;
    border-bottom-color: #00b2e2;
}

.nav-tabs.nav-tabs-primary .nav-link:hover:not(.disabled) {
    color: #00446b;
    border-bottom-color: rgba(0, 178, 226, 0.3);
}

/* Secondary - Subtle muted style */
.nav-tabs.nav-tabs-secondary .nav-link {
    color: #9ca3af;
    font-weight: 400;
}

.nav-tabs.nav-tabs-secondary .nav-link:hover:not(.disabled) {
    color: #4b5563;
    background-color: rgba(75, 85, 99, 0.04);
}

.nav-tabs.nav-tabs-secondary .nav-link.active {
    color: #4b5563;
    border-bottom-color: #6b7280;
}

.nav-tabs.nav-tabs-secondary .nav-link.active:hover {
    color: #4b5563;
    background-color: rgba(75, 85, 99, 0.08);
    border-bottom-color: #6b7280;
}

/* Outline Tabs - Bordered boxes */
.nav-tabs.nav-tabs-outline {
    border-bottom: none;
}

.nav-tabs.nav-tabs-outline .nav-link {
    border: 1px solid #e5e7eb;
    border-radius: 6px 6px 0 0;
    margin-right: 4px;
}

.nav-tabs.nav-tabs-outline .nav-link:hover:not(.disabled) {
    border-color: #00b2e2;
    background-color: rgba(0, 178, 226, 0.05);
}

.nav-tabs.nav-tabs-outline .nav-link.active {
    border-color: #00b2e2;
    background-color: rgba(0, 178, 226, 0.08);
    border-bottom-color: #00b2e2;
}

.nav-tabs.nav-tabs-outline .nav-link.active:hover {
    border-color: #00b2e2;
    background-color: rgba(0, 178, 226, 0.12);
    border-bottom-color: #00b2e2;
}

/* Pill Tabs - Rounded corners with background */
.nav-tabs.nav-tabs-pills {
    border-bottom: none;
    gap: 8px;
}

.nav-tabs.nav-tabs-pills .nav-link {
    border-radius: 20px;
    background-color: #f3f4f6;
    border: 1px solid transparent;
    cursor: pointer;
}

.nav-tabs.nav-tabs-pills .nav-link:hover:not(.disabled) {
    background-color: #e5e7eb;
    color: #00446b;
}

.nav-tabs.nav-tabs-pills .nav-link.active {
    background-color: #00446b;
    color: #ffffff;
    border-bottom-color: transparent;
    font-weight: 600;
}

.nav-tabs.nav-tabs-pills .nav-link.active:hover {
    background-color: #003450;
    color: #ffffff;
    border-bottom-color: transparent;
}
