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

html[data-bs-theme="light"] body.layout-admin {
    background-color: #e5e5e5;
    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: #333333;
        /* background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100% ); */
    background-color: #ffffff;
    border-right: 1px solid #e0e0e0;
}

html[data-bs-theme="dark"] .aside-primary {
    color: #e5e7eb;
    background-color: #101114;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23ffffff' fill-opacity='.03'%3E%3Ccircle cx='14' cy='20' r='1'/%3E%3Ccircle cx='42' cy='64' r='1'/%3E%3Ccircle cx='68' cy='18' r='1'/%3E%3Ccircle cx='88' cy='92' r='1'/%3E%3Ccircle cx='108' cy='42' r='1'/%3E%3Ccircle cx='30' cy='102' r='1'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(180deg, #101114 0%, #17191f 100%);
    background-repeat: repeat, no-repeat;
    background-size: 120px 120px, 100% 100%;
    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 {
    background-color: rgba(255, 255, 255, 0.06);
}

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: linear-gradient(135deg, #111827, #7f1d1d, #CC0000);
    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: linear-gradient(135deg, #fff, #ff6b6b,#fd5b5b, #CC0000);
    border-bottom: 1px solid #e0e0e0;
}

.bg-primary{
    background-color: #CC0000 !important;
}

.text-primary{
    color: #CC0000 !important;
}

.btn-light-blue {
    --bs-btn-color: #fff;
    --bs-btn-bg: #CC0000;
    --bs-btn-border-color: #CC0000;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #A00000;
    --bs-btn-hover-border-color: #A00000;
    --bs-btn-focus-shadow-rgb: 204, 0, 0; /* RGB of #CC0000 */
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #990000;
    --bs-btn-active-border-color: #990000;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #CC0000;
    --bs-btn-disabled-border-color: #CC0000;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #CC0000;
    --bs-btn-border-color: #CC0000;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #A00000;
    --bs-btn-hover-border-color: #A00000;
    --bs-btn-focus-shadow-rgb: 204, 0, 0; /* RGB of #CC0000 */
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #990000;
    --bs-btn-active-border-color: #990000;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #CC0000;
    --bs-btn-disabled-border-color: #CC0000;
}

.btn-outline-primary {
    --bs-btn-color: #CC0000;
    --bs-btn-border-color: #CC0000;

    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #CC0000; /* darker hover shade */
    --bs-btn-hover-border-color: #CC0000;

    --bs-btn-focus-shadow-rgb: 204, 0, 0; /* RGB of #CC0000 */

    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #990000; /* darker active state */
    --bs-btn-active-border-color: #990000;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);

    --bs-btn-disabled-color: #CC0000;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #CC0000;

    --bs-gradient: none;
}

/* Links in bright red */


a:hover {
    color: #990000 !important;
}



.aside-primary a:hover {
    color: #990000 !important;
}

/* Gallery sortable handle */
.sortable-handle {
    cursor: grab;
}
.sortable-handle:active {
    cursor: grabbing;
}
.list-group.sortable .list-group-item.ui-sortable-helper {
    opacity: 0.8;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.list-group.sortable .list-group-item.js-ignore {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f8f9fa;
}
