html {
    overflow: hidden !important
}

.gold-color {
    color: var(--secondary-color) !important
}

.black-color {
    color: var(--primary-color) !important
}

.graygold-bg {
    background: var(--third-color) !important
}

.sidebar .nav {
    padding-top: 0px !important;
}

    .sidebar .nav .nav-item.active > .nav-link {
        background: linear-gradient( to left, var(--secondary-color), color-mix(in srgb, var(--secondary-color) 85%, white 15%), color-mix(in srgb, var(--secondary-color) 50%, var(--primary-color) 75%) );
    }

a.nav-link::before {
    background: var(--secondary-color) !important
}

.card {
    border-radius: 0.75rem;
}

body {
    font-family: 'Satoshi', sans-serif;
    font-weight: 600 !important;
    overflow: hidden !important;
}

nav ul span {
    font-weight: 900 !important
}

.sidebar .nav-link .menu-icon i {
    color: white !important;
}

.content-wrapper {
    padding-top:0;
    overflow-y: auto;
    /*max-height: 85vh;*/
    height: calc(100vh - 70px); /* if header is 60px height */
}

body:not(.sidebar-icon-only) ul.nav {
    overflow-y: auto !important;
    max-height: 70vh;
}

body.sidebar-icon-only img {
    margin-top: 15px;
}

body.sidebar-icon-only ul.nav {
    margin-top: 15px;
}

.card {
    background: #2d2d29 !important
}

.bg-gray-dark {
    background: #1e2019 !important;
}

.form-control, .asColorPicker-input, .dataTables_wrapper select, .jsgrid .jsgrid-table .jsgrid-filter-row input[type=text], .jsgrid .jsgrid-table .jsgrid-filter-row select, .jsgrid .jsgrid-table .jsgrid-filter-row input[type=number], .select2-container--default .select2-selection--single, .select2-container--default .select2-selection--single .select2-search__field, .typeahead, .tt-query, .tt-hint {
    border: 1px solid var(--secondary-color) !important;
    height: calc(2.25rem + 2px);
    font-weight: normal;
    font-size: 0.875rem;
    padding: 0.625rem 0.6875rem;
    background-color: var(--fourth-color);
    border-radius: 2px;
    color: var(--primary-color);
    font-weight: 500;
}

    select.form-control, select.asColorPicker-input, .dataTables_wrapper select, .jsgrid .jsgrid-table .jsgrid-filter-row select, .select2-container--default select.select2-selection--single, .select2-container--default .select2-selection--single select.select2-search__field, select.typeahead, select.tt-query, select.tt-hint {
        color: var(--primary-color);
        font-weight: 500;
    }



        .form-control:focus, .asColorPicker-input:focus, .dataTables_wrapper select:focus, .jsgrid .jsgrid-table .jsgrid-filter-row input:focus[type=text], .jsgrid .jsgrid-table .jsgrid-filter-row select:focus, .jsgrid .jsgrid-table .jsgrid-filter-row input:focus[type=number], .select2-container--default .select2-selection--single:focus, .select2-container--default .select2-selection--single .select2-search__field:focus, .typeahead:focus, .tt-query:focus, .tt-hint:focus {
            background: var(--fourth-color) !important
        }


.menu-arrow {
    color: var(--fourth-color) !important
}

.maindiv {
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    overflow-x: hidden;
}

.table-scrollx{
    max-width:92%;
    overflow-x:auto;
}

table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

    table thead th:first-child {
        border-top-left-radius: 12px;
    }

    table thead th:last-child {
        border-top-right-radius: 12px;
    }


    table thead th {
        background-color: #c2c2be !important; /* Dark grayish for depth */
        font-weight: 900 !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 12px;
        color: var(--primary-color) !important
    }

    table td {
        border-top: 0px solid red !important
    }
    table tbody {
        background: #00000021;
    }

    table tbody tr:hover {
        color:white !important;
    }



.themed-modal {
    background-color: #2d2d29;
    color: #fff;
    border: 1px solid #b69d15;
}

.gold-btn {
    background-color: #b69d15 !important;
    color: #000;
    border: none;
}
.gold-border {
    border: 1px solid #b69d15;
}



/* === SweetAlert Themed Overrides === */

.swal-modal {
    background-color: var(--third-color) !important; /* Dark background */
    color: var(--fourth-color); /* Light text */
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--secondary-color);
}

.swal-title {
    color: var(--secondary-color) !important; /* Gold title */
    font-weight: bold;
}

.swal-text {
    color: var(--fourth-color); /* Off-white text */
}

.swal-button {
    background-color: var(--secondary-color) !important; /* Gold button */
    color: var(--primary-color) !important; /* Black text */
    font-weight: 600;
    border-radius: 4px;
    box-shadow: none;
}

    .swal-button:hover {
        background-color: #d4b523 !important; /* Slightly lighter gold */
    }

.swal-icon--success:before {
    background: transparent;
}

.swal-icon--success:after {
    background: transparent;
}

.swal-icon--success__hide-corners {
    background: transparent;
}


/* Track (background) */
::-webkit-scrollbar {
    width: 12px; /* width of vertical scrollbar */
    height: 12px; /* height of horizontal scrollbar */
}

/* Track */
::-webkit-scrollbar-track {
    background: var(--secondary-color);
    border-radius: 8px;
    border-color: red
}

/* Thumb (the draggable handle) */
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 8px;
    border: 3px solid var(--secondary-color); /* creates padding around thumb */
}

    /* Thumb on hover */
    ::-webkit-scrollbar-thumb:hover {
        background: var(--primary-color);
    }

.btn-icon-only {
    width: 25px !important
}

    .btn-icon-only i {
        margin-left: -6px !important;
    }

input:read-only {
    border: 1px solid #ccc;
    cursor: not-allowed;
    background-color: #8c9298 !important;
    opacity: 0.5;
    color: black !important;
    cursor: not-allowed;
}

.loader-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loader-spinner {
    width: 3rem;
    height: 3rem;
    color: var(--secondary-color) !important;
}

.swal-button--cancel {
    background: #a00 !important;
    color:white !important;
}
    .swal-button--cancel:hover {
        background-color: #7e0303 !important;
    }
    .swal-button--cancel:focus {
        box-shadow: unset;
    }


.navbar .navbar-menu-wrapper .search input {
    color: var(--secondary-color) !important
}

.shieldX_22 {
    pointer-events: none; /* blocks mouse/touch interaction */
    -webkit-user-drag: none; /* prevents image/text dragging in WebKit */
    opacity: 0.9; /* optional: visual hint it's inactive */
}
