@import url('https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,100..900;1,100..900&display=swap');

* {
    font-family: "Public Sans", Century, sans-serif;
}


.btn-success {
    --bs-btn-color: #fff !important;
    --bs-btn-bg: #2E7D32 !important;
    /* Dark Green */
    --bs-btn-border-color: #2E7D32 !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: #276729 !important;
    /* Slightly darker green */
    --bs-btn-hover-border-color: #245d24 !important;
    --bs-btn-focus-shadow-rgb: 46, 125, 50 !important;
    --bs-btn-active-color: #fff !important;
    --bs-btn-active-bg: #245d24 !important;
    /* Even darker green */
    --bs-btn-active-border-color: #204d20 !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    --bs-btn-disabled-color: #fff !important;
    --bs-btn-disabled-bg: #2E7D32 !important;
    --bs-btn-disabled-border-color: #2E7D32 !important;
}

.btn-outline-success {
    --bs-btn-color: #2E7D32 !important;
    --bs-btn-border-color: #2E7D32 !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: #2E7D32 !important;
    --bs-btn-hover-border-color: #2E7D32 !important;
    --bs-btn-focus-shadow-rgb: 46, 125, 50 !important;
    --bs-btn-active-color: #fff !important;
    --bs-btn-active-bg: #2E7D32 !important;
    --bs-btn-active-border-color: #2E7D32 !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    --bs-btn-disabled-color: #2E7D32 !important;
    --bs-btn-disabled-bg: transparent !important;
    --bs-btn-disabled-border-color: #2E7D32 !important;
    --bs-gradient: none !important;
}


/* Chrome, Safari, Edge, Opera */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}



.refresh-btn {
    cursor: pointer;
    position: absolute;
    right: -4rem;
    text-align: center;
    top: 50.8%;
    transform: translateY(-50%);
    z-index: 9999;
    font-size: 1.4rem;
    border-radius: 0.375rem;
    background-color: #fff;
    height: 30px;
    width: 30px;
    color: indigo !important;
}

.refresh-btn .spinner {
    display: inline-block;
    left: 0rem;
    position: relative;
    top: 0rem;
    -webkit-transition: all 0.3s ease-in-out 0s;
    transition: all 0.3s ease-in-out 0s;
    width: 1.625rem;
    z-index: 999;
}


.refresh-btn.spin i {
    animation: spin 0.5s linear;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.header .header-content {
    padding-left: 5rem !important;
}

.footer .copyright a {
    color: #26387d !important;
}


.hide-pass.eye {
    position: absolute;
    right: 25px;
    bottom: 3px;
    font-size: 18px;
}

.btn-outline-info {
    --bs-btn-color: #07afe1 !important;
}

.elevation-0 {
    box-shadow: none !important;
}

.nav-tabs .nav-link.active {
    border: 1px solid #26387d !important;
    color: #ffffff !important;
    background-color: #26387d !important;
    font-weight: 700 !important;
}

.nav-tabs .nav-link {
    border: 1px solid #26387d !important;
}


.elevation-1 {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24) !important;
}

.elevation-2 {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23) !important;
}

.elevation-3 {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23) !important;
}

.elevation-4 {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22) !important;
}

.elevation-5 {
    box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3), 0 15px 12px rgba(0, 0, 0, 0.22) !important;
}

.card {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23) !important;
}

.card-body:not(.no-cbs) {
    border-radius: 0.5rem !important;
    border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
    --bs-border-opacity: 1;
    border-color: #26387d !important;
    margin: 1rem !important;
    padding: 1rem !important;
}

hr {
    margin: 0.5rem 0 !important;
}

.formerror {
    border: 1px ridge red !important;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23FF5E5E'%3E%3Ccircle cx='6' cy='6' r='4.5'/%3E%3Cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3E%3Ccircle cx='6' cy='8.2' r='.6' fill='%23FF5E5E' stroke='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    border-radius: 0.25rem !important;
    background-color: white;
}

.formvalid:not(.select2-search__field) {
    border: 1px ridge green !important;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%233A9B94' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    border-radius: 0.25rem !important;
    background-color: white;
}

.form-label.formerror {
    border: none !important;
    color: red !important;
}

.form-label.formvalid {
    border: none !important;
    color: rgb(35, 150, 96) !important;
}

.select2-container--default .select2-selection--single {
    border-radius: 0.25rem;
}

.form-check-inline .form-check-input {
    margin-right: 0 !important;
}



select[readonly],
input[readonly],
textarea[readonly] {
    cursor: no-drop !important;
}

/* ------------------------------------------------------------------------ */
/*------------------ FOR THIS THEME ONLY----------------- */
/* ------------------------------------------------------------------------ */

.header,
.deznav {
    /* fallback */
    background: #223365;

    /* subtle gradient: dark → normal navy */
    background: linear-gradient(315deg,
            #1A2740 0%,
            /* darker indigo */
            #223365 60%,
            /* mid (matches nav-header) */
            #26387D 100%
            /* normal navy */
        );

    background: -webkit-linear-gradient(315deg,
            #1A2740 0%,
            #223365 60%,
            #26387D 100%);

    background: -moz-linear-gradient(315deg,
            #1A2740 0%,
            #223365 60%,
            #26387D 100%);

    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#1A2740",
            endColorstr="#26387D",
            GradientType=1);
}

.nav-header {
    background-color: #1c2a49;
    /* perfectly in the middle of gradient */
}


.btn-secondary,
.btn-warning {
    color: #000000 !important;
    font-weight: 500;
}





.metismenu li>ul>li>a {
    color: #5efefe !important;
}

.metismenu li>ul>li>ul>li>a {
    color: #98FF98 !important;
    /* padding-left: .5rem !important; */
}

.metismenu li>ul>li>a:hover,
.metismenu li>ul>li.mm-active>a,
.metismenu li>ul>li>ul>li>a:hover,
.metismenu li>ul>li>ul>li>a.mm-active {
    color: #F8B940 !important;
}



.content-body .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-top: 1rem !important;
}

.footer {
    margin-top: -8px !important;
}

#profilePreview {
    width: 150px !important;
    height: 150px !important;
    object-fit: cover !important;
}


.copyright p {
    line-height: 35px !important;
}

.copyright {
    padding: 0px !important;
}

.user-img {
    border-radius: 50% !important;
    background-color: white;
    height: 50px !important;
    width: 50px !important;
    border: 1px ridge black;
    margin-right: 5px !important;
    object-fit: cover !important;
}

.username {
    color: yellow !important;
    font-size: 20px;
    margin-bottom: 0 !important;
    text-align: center;
}

.add-btn {
    margin-bottom: 10px !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23) !important;
}

.brand-img {
    width: 50%;
    height: auto;
    margin: auto;
}

.brand-logo {
    margin-top: 3px;
}

.brand-title {
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    margin-left: 0.5rem !important;
}

.form-control[type="file"] {
    line-height: 175% !important;
    padding-left: 10px !important;
}

.designation {
    color: cyan !important;
    font-size: 15px;
    margin-bottom: 0 !important;
    text-align: center;
}

.name-div {
    display: none;
}

.header-profile2 .dropdown-menu {
    width: fit-content !important;
}

.menu-icon i {
    font-size: 18px !important;
    margin-right: 8px !important;
    padding-bottom: 2px !important;
}

.deznav .metismenu>li.mm-active>a i {
    background: none !important;
    color: #F8B940 !important;
}



.btn-outline-success.active {
    color: #FFF !important;
}



.tab-content {
    padding: 10px !important;
    border-radius: 0 0 0.25rem 0.25rem !important;
    border: 1px solid #26387d !important;
}


.btn:hover {
    transform: scale(1.05);
}

.card-hover {
    transition: transform 0.3s ease-in-out;
}

.card-hover:hover {
    transform: scale(1.05);
}




td,
th,
.table thead tr th:last-child {
    text-align: center !important;
    vertical-align: middle !important;
}

.dataTables_scrollHead {
    border-top: 1px ridge #dad8d4 !important;
}

.display th {
    color: #fff !important;
    background-color: #26387d !important;
    border-color: white !important;
}

.display td {
    color: black;
}

table.display {
    width: 100% !important;
}

table.dataTable>tfoot>tr>th,
table.dataTable>tfoot>tr>td {
    padding: 8px 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);

}

.dataTables_wrapper .dataTables_paginate {
    margin-bottom: 0px !important;
}

.dataTables_info {
    padding-top: 0.25rem !important;
    color: black !important;
}

.dataTables_filter {
    margin-bottom: 0px !important;
    color: black !important;
}

.dataTables_scroll {
    padding-top: 0px !important;
}

.display tbody tr:nth-child(even) {
    background-color: #F5F5F5 !important;
}

.display tbody tr:hover {
    background-color: #FFF8E3 !important;
    transition: background-color 0.1s ease-in-out;
}

table.dataTable thead>tr>th.sorting:after,
table.dataTable thead>tr>th.sorting_asc:after,
table.dataTable thead>tr>th.sorting_desc:after,
table.dataTable thead>tr>th.sorting_asc_disabled:after,
table.dataTable thead>tr>th.sorting_desc_disabled:after,
table.dataTable thead>tr>td.sorting:after,
table.dataTable thead>tr>td.sorting_asc:after,
table.dataTable thead>tr>td.sorting_desc:after,
table.dataTable thead>tr>td.sorting_asc_disabled:after,
table.dataTable thead>tr>td.sorting_desc_disabled:after {
    content: "▼" !important;
}

.deznav .metismenu {
    padding-top: 0 !important;
}

tr.filters th {
    background-color: #FFDAB9 !important;
    padding: 2px !important;
    padding-left: 2px !important;
}

.buttons-columnVisibility {
    background: grey !important;
    color: #fff !important;
}

.buttons-columnVisibility.active {
    background: #fff !important;
    color: #26387d !important;
    font-weight: 500 !important;
}

.form-label {
    margin-bottom: 0.05rem !important;
    margin-top: 0.75rem;
    font-size: 14px !important;
    color: black;
    margin-left: 2px !important;
}

.form-control {
    border-radius: 0.25rem !important;
    color: black !important;
    font-size: 14px !important;
    height: 2.5rem !important;

}



.form-check-label {
    font-size: 12px !important;
    margin-top: 4px !important;
    margin-left: 0 !important;
}

.form-check-input {
    top: 0.125rem !important;
    border-width: 2px !important;
    width: 1rem !important;
    height: 1rem !important;
}

.toast-container {
    padding-top: 70px !important;
}

.toast-header {
    border-bottom: 1px solid white !important;
}

.toast .btn-close {
    color: white !important;
}

.login-page {
    background-image: url('../images/loginbg.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.authincation-content {
    background: #ffffff60;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22) !important;
}

.auth-form {
    padding: 1rem;
    margin: 1rem;
    border: 1px solid #26387d;
    border-radius: 16px;
}

.form-check-label {
    color: black;
    margin-top: 6px;
    font-size: 15px;
}



.mylist {
    list-style: decimal;
    text-align: left;
    line-height: 25px;
}

.preview-box {
    width: 100%;
    min-height: 100px;
    border: 1px solid #09122C;
    text-align: center;
    margin-top: 2px;
    padding: 2px;
    display: none;
    /* Hide preview box by default */
}

.preview-img {
    width: 100%;
}

.modal #body {
    text-align: justify;
}

.filters input {
    background: #fff !important;
}


.logintext {
    font-size: 75px;
    color: #26387d;
    display: inline-block;
    font-weight: 1000;
    vertical-align: middle;
    margin-left: 2.5%;
}

.login-logo {
    width: 50% !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.menu-toggle .brand-img {
    width: 40% !important;
}

.select2-search--dropdown {
    padding: 0 0.25rem;
    margin: 0;
}

.select2-container--open .select2-dropdown {
    padding: 0.25rem;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #26387d;
}

.select2-selection__rendered {
    color: #7e7e7e !important;
}

.formvalid .select2-selection__rendered {
    color: black !important;
}

.select2-container--default .select2-selection--multiple {
    border: 1px solid #dad8d4 !important;
}

.formvalid .select2-selection--single,
.formerror .select2-selection--single,
.formvalid .select2-selection--multiple,
.formerror .select2-selection--multiple {
    border-right: none !important;
}

.select2-container .select2-search--inline .select2-search__field {
    margin-top: 9px;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding: 0.36rem 0.75rem !important;
}

.select2-selection__choice__display {
    padding: 5px !important;
}



.select2-selection__choice__remove {
    color: white !important;
    font-size: 25px !important;
}

.select2-selection__choice__remove:hover {
    background-color: #8e5bac !important;
}


.select2-selection__choice,
.select2-selection__choice__display {
    background-color: #26387d !important;
    color: white !important;
    font-size: 14px !important;
}

.a-link,
p a {
    color: darkblue !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

.modal-title {
    color: #26387d !important;
    margin-bottom: 0 !important;
}


td:has(.btn),
td:has(.badge),
td:has(i),
td:has(textarea) {
    padding: 0 5px !important;
}

.modal-header .btn-close {
    color: red !important;
    --bs-btn-close-opacity: 1 !important;
    font-size: 20px !important;
    padding-top: 0 !important;
}

.modal-header {
    padding: 0.5rem 1rem !important;
}

.modal-border {
    border: 1px solid #26387d !important;
    border-radius: 0.25rem !important;
    margin: 6px !important;
    padding: 10px !important;
}

.modal-body {
    padding: 1rem;
    color: #000000;
}

h1,
.h1,
.h1,
h2,
.h2,
.h2,
h3,
.h3,
.h3,
h4,
.h4,
.h4,
h5,
.h5,
.h5,
h6,
.h6,
.h6,
p {
    line-height: normal;
    margin-bottom: 5px !important;
}

.preload-image {
    width: 100% !important;
    display: block;
    margin: 0 auto;
}

.input-group-text {
    font-size: 14px !important;
}

.selectdiv .select2-container {
    width: 1% !important;
    position: relative !important;
    flex: 1 !important;
}



.select2-selection__arrow {
    display: none !important;
}

.mob-page-title {
    display: none !important;
}

#MyFilterDataTable2_filter {
    display: none !important;
}


.dsr-table th {
    background-color: indigo !important;
}

.pr-table th {
    background-color: darkgreen !important;
}

/* ------------------------------------------ */
/* -----------------------COUNTER---------------------- */



.counter .counter-content {
    height: 125px;
    width: 125px;
    padding: 26.25px 26.25px 0;
    margin: 0 0 6.25px;
    position: relative;
    z-index: 1;
}

.counter .counter-content:before,
.counter .counter-content:after {
    content: '';
    background: linear-gradient(to right bottom, #f8dede, #faf8f8);
    border-radius: 62.5% 62.5% 0 62.5%;
    border: 10px solid #fff;
    box-shadow: 0px 0px 12.5px rgba(0, 0, 0, 0.4);
    position: absolute;
    left: 6.25px;
    top: 6.25px;
    right: 6.25px;
    bottom: 6.25px;
    z-index: -1;
}

.counter .counter-content:after {
    background: linear-gradient(to right bottom, transparent 50%, #EA237E 51%);
    height: 75%;
    width: 75%;
    border: none;
    border-radius: 0;
    box-shadow: none;
    right: 0;
    bottom: 0;
    left: auto;
    top: auto;
    z-index: -2;
}

.counter .counter-icon {
    font-size: 22px;
    line-height: 22px;
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.counter .counter-value {
    text-align: center;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    line-height: 75px;
    width: 75px;
    height: 75px;
    border-radius: 37.5px;
    display: inline-block;
    -webkit-border-radius: 75px;
    -moz-border-radius: 75px;
    -ms-border-radius: 75px;
    -o-border-radius: 75px;
}

.counter-title {
    font-size: 14px;
    font-weight: 600;
    text-align: end;
    text-transform: uppercase;
    margin: 0;
}


/* Blue */
.counter.blue .counter-value {
    background: #0C6DB1;
}

.counter.blue .counter-content:after {
    background: linear-gradient(to right bottom, transparent 50%, #0C6DB1 51%);
}

.counter.blue .counter-icon,
.counter.blue .counter-title {
    color: #0C6DB1;
}

/* Red */
.counter.red .counter-value {
    background: #FF0000;
}

.counter.red .counter-content:after {
    background: linear-gradient(to right bottom, transparent 50%, #FF0000 51%);
}

.counter.red .counter-icon,
.counter.red .counter-title {
    color: #FF0000;
}

/* Orange */
.counter.orange .counter-value {
    background: #FFA500;
}

.counter.orange .counter-content:after {
    background: linear-gradient(to right bottom, transparent 50%, #FF8C00 51%);
}

.counter.orange .counter-icon,
.counter.orange .counter-title {
    color: #FFA500;
}


/* Yellow */
.counter.yellow .counter-value {
    background: #FFFF00;
}

.counter.yellow .counter-content:after {
    background: linear-gradient(to right bottom, transparent 50%, #FFFF00 51%);
}

.counter.yellow .counter-icon,
.counter.yellow .counter-title {
    color: #FFFF00;
}

/* Green */
.counter.green .counter-value {
    background: #008000;
}

.counter.green .counter-content:after {
    background: linear-gradient(to right bottom, transparent 50%, #008000 51%);
}

.counter.green .counter-icon,
.counter.green .counter-title {
    color: #008000;
}

/* Purple */
.counter.purple .counter-value {
    background: #800080;
}

.counter.purple .counter-content:after {
    background: linear-gradient(to right bottom, transparent 50%, #800080 51%);
}

.counter.purple .counter-icon,
.counter.purple .counter-title {
    color: #800080;
}

/*  Pink */
.counter.pink .counter-value {
    background: #C71585;
    /* Deep pink */
}

.counter.pink .counter-content:after {
    background: linear-gradient(to right bottom, transparent 50%, #D63384 51%);
}

.counter.pink .counter-icon,
.counter.pink .counter-title {
    color: #C71585;
}


/* Teal */
.counter.teal .counter-value {
    background: #027d7d;
}

.counter.teal .counter-content:after {
    background: linear-gradient(to right bottom, transparent 50%, #008080 51%);
}

.counter.teal .counter-icon,
.counter.teal .counter-title {
    color: #027d7d;
}

/* Brown */
.counter.brown .counter-value {
    background: #26387d;
}

.counter.brown .counter-content:after {
    background: linear-gradient(to right bottom, transparent 50%, #A52A2A 51%);
}

.counter.brown .counter-icon,
.counter.brown .counter-title {
    color: #26387d;
}

/* Gray */
.counter.gray .counter-value {
    background: #71706E;
}

.counter.gray .counter-content:after {
    background: linear-gradient(to right bottom, transparent 50%, #808080 51%);
}

.counter.gray .counter-icon,
.counter.gray .counter-title {
    color: #71706E;
}

/*  Coral */
.counter.coral .counter-value {
    background: #E5673C;
}

.counter.coral .counter-content:after {
    background: linear-gradient(to right bottom, transparent 50%, #D9533F 51%);
}

.counter.coral .counter-icon,
.counter.coral .counter-title {
    color: #E5673C;
}




/* --------------------------------------------------------------- */


.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    border-radius: inherit;
}



.file-input-wrapper {
    position: relative;
}

.file-preview-icon {
    font-size: 20px;
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;
    color: #0d6efd;
    /* Bootstrap primary blue */
}

.file-preview-wrapper {
    position: relative;
}

#filePreviewModal .modal-body {
    padding: 0.25rem !important;
}

#previewImage,
#previewPdf {
    max-width: 100%;
    border-radius: 0.25rem;
    border: 1px solid #26387d;
}


#filePreviewModal .modal-content {
    max-height: 90vh;
    overflow: auto;
    width: fit-content;
    margin: auto;
}


#filePreviewModal img {
    max-height: 80vh;
    max-width: 100%;
}

#filePreviewModal iframe {
    height: 80vh;
    width: 50vw;
    border: 1px solid #26387d;
}





/* -------------------------------------------------- */

/* greater than 500px */
@media (min-width: 500px) {
    .header-right .header-profile2 .dropdown-menu {
        min-width: 0 !important;
    }

    .mobile-view {
        display: none !important;
    }
}

#loadingSpinner {
    padding: 2rem 1rem;
    margin: 1rem 0;
}

.spinner-border.enhanced {
    width: 3.5rem;
    height: 3.5rem;
    border-width: 0.25em;
    border-color: #26387d;
    border-right-color: transparent;
    animation: enhanced-spin 0.75s linear infinite;
}

@keyframes enhanced-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#loadingSpinner .font-30 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #26387d;
    display: block;
    margin-top: 1rem;
    letter-spacing: 0.5px;
}

.spinner-border.enhanced::after {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid rgba(38, 56, 125, 0.2);
    animation: enhanced-pulse 1.5s ease-in-out infinite;
}

@keyframes enhanced-pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.3;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

@media (prefers-color-scheme: dark) {
    #loadingSpinner .font-30 {
        color: #5c72c5;
    }
}

.banner-img,
.offer-img {
    width: 100%;
    aspect-ratio: 3/1;
    object-fit: cover;
    object-position: center;
    display: block;
}



#carouselExampleIndicators .carousel-indicators {
    margin-bottom: 0rem;

}

#offerCarousel .carousel-indicators {
    margin-bottom: 2rem;

}

#carouselExampleIndicators,
#offerCarousel {
    margin: auto -7px;
    border: 1px solid #BDBDBD;
}

.category-img-wrapper {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0.75rem;
    background: #f8f9fa;
}

.category-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-img-wrapper img:hover {
    transform: scale(1.05);
}

.small-card {
    border-radius: 15px;
    background-color: #fff;
    transition: 0.2s;
}

.small-card:hover {
    transform: scale(1.05);
}

.card-img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 8px;
}

.hover-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

/* Mobile-friendly tweaks */
@media (max-width: 576px) {
    .product-card img {
        width: 70px;
        height: 70px;
    }

    .product-card h6 {
        font-size: 0.9rem;
    }
}

.day-circle {
    border-radius: 50%;
    transition: all 0.15s ease;
    display: inline-block;
    user-select: none;
}

.day-circle.active {
    background-color: #233469;
    color: #fff;
    border: none;
}

.policies p,
.policies li,
.policies small {
    color: #57564F !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}


#detail-view .modal-content {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

#detail-view .modal-header {
    background: #FAF1E6;
}

#detail-view .modal-title {
    font-weight: 600;
    font-size: 1.3rem;
}

#detail-view .modal-body {
    padding: 0 !important;
    background-color: #FAF1E6;
}



/* Details Cards */
#detail-view .details-container {
    padding: 10px;
    padding-left: 15px;
}

#detail-view .details-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow: hidden;
}

#detail-view .details-card .card-header {
    padding: 12px 20px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

#detail-view .details-card .card-header i,
#detail-view .details-card .card-header h5 {
    color: white;
}

#detail-view .log-day {
    width: 29px;
    height: 29px;
    line-height: 25px;
}

#detail-view .log-day span {
    font-size: 11px;
}


#detail-view .log-container {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 10px !important;
}

#detail-view .bg-delivery {
    background-color: rgba(66, 153, 225, 0.2);
    border-left-color: #1b4870;
    color: #1b4870;
}

#detail-view .bg-resume {
    background-color: rgba(72, 187, 120, 0.2);
    border-left-color: #165a31;
    color: #165a31;
}

#detail-view .bg-pause {
    background-color: rgba(239, 68, 68, 0.2);
    border-left-color: #a72828;
    color: #a72828;
}

#detail-view .bg-internal {
    background-color: rgba(249, 115, 22, 0.2);
    /* light orange background */
    border-left-color: #c2410c;
    /* darker orange border */
    color: #c2410c;
    /* text color */
}

#detail-view .log-item {
    transition: all 0.2s;
    border-left: 3px solid;
}

#detail-view .progress {
    height: 12px !important;
    background-color: #e4e6e8 !important;
}

#detail-view .details-card .card-body {
    padding: 15px !important;
    margin: 0rem !important;
    border: none !important;
}


#detail-view .detail-row {
    display: flex;
    margin-bottom: 10px;
}

#detail-view .detail-row:last-child {
    margin-bottom: 0;
}

#detail-view .detail-label {
    width: 150px;
    font-weight: 600;
    color: #901E3E;
    flex-shrink: 0;
    margin: auto;
}

#detail-view .detail-value {
    flex-grow: 1;
    color: #03346E;
}



/* ================================================ */
/* Card Borders */
.dashboard .event-open {
    border-left: 6px solid #ffc107 !important;
    /* Yellow for Deliver Now / Pending */
}

.dashboard .event-closed {
    border-left: 6px solid #ffb3b3 !important;
    /* Red for Closed */
}

.dashboard .event-delivered {
    border-left: 6px solid #28a745 !important;
    /* Green for Delivered Today */
}

/* Font / Icons */
.dashboard .fas {
    color: #1b2842 !important;
}

.dashboard .showtext {
    color: #1b2842 !important;
}

/* Product Image Circle */
.dashboard .scan-count-circle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    font-size: 1.25rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #1b2842 !important;
    transition: transform 0.3s ease !important;
}

.dashboard .scan-count-circle:hover {
    transform: scale(1.05) !important;
}

/* Phone / Username */
.dashboard .template-name {
    font-weight: 600 !important;
    text-decoration: underline !important;
}

/* Buttons */
.dashboard .btn-scan-action {
    background-color: #a3e9a8 !important;
    color: #155724 !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.dashboard .btn-scan-action:hover {
    background-color: #88d18e !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(21, 87, 36, 0.3) !important;
}

/* Status Badges */
.dashboard .status-open {
    background-color: #ffc107 !important;
    /* Yellow */
    color: #212529 !important;
}

.dashboard .status-closed {
    background-color: #ffb3b3 !important;
    /* Red */
    color: #721c24 !important;
}

.dashboard .status-delivered {
    background-color: #28a745 !important;
    /* Green */
    color: #fff !important;
}

.dashboard .status-pending {
    background-color: #ffc107 !important;
    /* Yellow same as event-open */
    color: #212529 !important;
}

/* Footer Buttons */
.dashboard .btn-delivered {
    background-color: #28a745 !important;
    /* Green */
    color: #fff !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.dashboard .btn-delivered:hover {
    background-color: #218838 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(33, 136, 56, 0.3) !important;
}

.dashboard .btn-pending {
    background-color: #ffc107 !important;
    /* Yellow */
    color: #212529 !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.dashboard .btn-pending:hover {
    background-color: #e0a800 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(224, 168, 0, 0.3) !important;
}

.dashboard .btn-status-closed {
    background-color: #ffb3b3 !important;
    /* Red */
    color: #721c24 !important;
    border: 1px solid #f5c6cb !important;
}

/* Card Styling */
.dashboard .card {
    border-radius: 12px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.log-img {
    cursor: pointer;
}

.dashboard .card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Remove extra margin for card-body container */
.dashboard .d-cb {
    margin-top: 0 !important;
}

.razorpay-container svg {
    width: 100% !important;
    height: auto !important;
}

/* Ensure proper modal display */
.razorpay-container {
    z-index: 999999 !important;
}