@media (max-width: 576px) {
    .mobile-mt-5 {
        margin-top: 3rem !important;
    }
}

/* Button-like Card Styles */
.btn-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-card:hover {
    transform: translateY(-2px);
    /* box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important; */
    text-decoration: none;
    color: inherit;
}

.btn-card:active,
.btn-card:focus {
    transform: translateY(0);
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1), inset -3px -3px 7px rgba(255, 255, 255, 0.5) !important;
    text-decoration: none;
    color: inherit;
}

/* Popup container */
.neu-popup {
    /* border: 0.0625rem solid rgba(243, 247, 250, 0.05); */
    border-radius: 1.55rem !important;
    background-color: #e6e7ee !important;
    background-clip: border-box !important;
    box-shadow: 6px 6px 12px #b8b9be, -6px -6px 12px #ffffff !important;
    padding: 30px;
    border: 0.0625rem solid rgba(243, 247, 250, 0.05) !important;
}

/* Title */
.neu-title {
    color: #44476A;
    font-weight: 600;
}

/* Button */
.neu-btn {
    border-radius: 12px;
    padding: 10px 25px;
    font-weight: 600;
    color: #44476A;
    background-color: #e6e7ee !important;
    border: none;
    box-shadow: 6px 6px 12px #b8b9be, -6px -6px 12px #ffffff !important;
    transition: all 0.2s ease;
}

/* Button pressed effect */
.neu-btn:active {
    box-shadow: inset 6px 6px 12px #b8b9be, inset -6px -6px 12px #ffffff !important;
}

/* Optional: Icon glow */
.swal2-icon.swal2-success {
    border-color: #00c853 !important;
    color: #00c853 !important;
}

.swal2-actions {
    display: flex !important;
    gap: 12px;
    /* adjust spacing here */
    justify-content: center;
}

/* .my-swal-popup {
	border-radius: 1.55rem !important;
} */

/* Background blur */
.modal-backdrop.show {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.25) !important;
    opacity: 1 !important;
}

/* Modal neumorphic container */
.modal-content {
    background: #e0e5ec;
    border-radius: 1.55rem !important;
    border: 0.0625rem solid rgba(243, 247, 250, 0.05) !important;
    box-shadow: 6px 6px 12px #b8b9be, -6px -6px 12px #ffffff !important;
}

/* Email display (pressed effect) */
.email-display {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border-radius: 12px;
    background: #e0e5ec;
    border: none;
    color: #495057;

    box-shadow: inset 6px 6px 12px #b8b9be, inset -6px -6px 12px #ffffff !important;

    margin-bottom: 20px;
    pointer-events: none;
}

/* Title text */
.verify-text {
    text-align: center;
    font-weight: 500;
    color: #6c757d;
    letter-spacing: 0.5px;
}

/* Container responsive */
.pin-input-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 25px 0;
    flex-wrap: nowrap;
}

/* PIN inputs (desktop default) */
.pin-input {
    width: 55px;
    height: 55px;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    border-radius: 14px;
    border: none;
    background: #e0e5ec;
    color: #333;

    box-shadow: 6px 6px 10px #c2c8d0,
        -6px -6px 10px #ffffff;

    transition: all 0.2s ease;
}

/* 📱 Mobile optimization */
@media (max-width: 576px) {
    .pin-input-container {
        gap: 8px;
        padding: 0 10px;
    }

    .pin-input {
        width: 42px;
        height: 48px;
        font-size: 18px;
        border-radius: 10px;
    }
}

/* 📱 Extra small devices */
@media (max-width: 360px) {
    .pin-input-container {
        gap: 6px;
    }

    .pin-input {
        width: 38px;
        height: 44px;
        font-size: 16px;
    }
}

/* Focus effect (pressed in) */
.pin-input:focus {
    outline: none;
    box-shadow: inset 4px 4px 8px #c2c8d0,
        inset -4px -4px 8px #ffffff;
    transform: scale(0.95);
}

/* Disabled state */
.pin-input:disabled {
    opacity: 0.6;
}

/* Optional resend link */
.resend-link {
    display: block;
    text-align: center;
    font-size: 13px;
    color: #6c757d;
}

.resend-link a {
    text-decoration: none;
    font-weight: 600;
    color: #0d6efd;
}

.resend-link a:hover {
    text-decoration: underline;
}

/* Fullscreen wrapper (acts like backdrop) */
.static-modal-wrapper {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    z-index: 1050;
}

/* Neumorphic modal card */
.static-modal {
    width: 95%;
    max-width: 480px;
    /* padding: 25px; */

    background: #e0e5ec;
    border-radius: 1.55rem;
    border: 0.0625rem solid rgba(243, 247, 250, 0.05);

    box-shadow: 6px 6px 12px #b8b9be,
        -6px -6px 12px #ffffff;

    animation: fadeInScale 0.4s ease;
}

/* Smooth entrance animation */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ====================================
   DataTable Neumorphism Styling
   ==================================== */

.dataTables_wrapper {
    padding: 1.55rem;
}

/* DataTable style */
#dataTable {
    background-color: #e6e7ee !important;
    border-radius: 0.55rem !important;
    overflow: hidden;
}

/* Table Headers */
#dataTable thead {
    background-color: #e6e7ee !important;
}

#dataTable thead th {
    background-color: #e6e7ee !important;
    color: #44476A !important;
    font-weight: 600;
    padding: 15px 10px !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(38, 40, 51, 0.05) !important;
    transition: all 0.2s ease;
}

#dataTable thead th:hover {
    background-color: #dfe0e9 !important;
    /* box-shadow: inset 2px 2px 5px rgba(184, 185, 190, 0.2) !important; */
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1), inset -3px -3px 7px rgba(255, 255, 255, 0.5) !important;
}

/* Table Body Cells */
#dataTable tbody td {
    color: #44476A !important;
    padding: 12px 10px !important;
    border: none !important;
    background-color: #e6e7ee !important;
}

#dataTable tbody tr {
    background-color: #e6e7ee !important;
    transition: all 0.2s ease;
}

/* Table Row Hover Effect */
#dataTable tbody tr:hover {
    background-color: #dfe0e9 !important;
    box-shadow: 0 4px 8px rgba(184, 185, 190, 0.15) !important;
    transform: translateY(-2px);
}

/* Table Row Stripe */
/* #dataTable tbody tr:nth-child(odd) {
    background-color: #f0f0f5 !important;
}

#dataTable tbody tr:nth-child(odd):hover {
    background-color: #dfe0e9 !important;
} */

/* DataTables Controls Styling */
.dataTables_filter input {
    border-radius: 0.55rem;
    border: none;
    padding: 8px 12px;
    background-color: #f0f0f5 !important;
    color: #44476A !important;
    box-shadow: inset 2px 2px 5px rgba(184, 185, 190, 0.2), inset -2px -2px 5px rgba(255, 255, 255, 0.5) !important;
    transition: all 0.2s ease;
}

.dataTables_filter input:focus {
    outline: none;
    background-color: #e6e7ee !important;
    box-shadow: inset 3px 3px 7px rgba(184, 185, 190, 0.3), inset -3px -3px 7px rgba(255, 255, 255, 0.6) !important;
}

/* DataTables Info and Pagination */
.dataTables_info,
.dataTables_length {
    color: #44476A !important;
    font-weight: 500;
}

/* .dataTables_paginate .paginate_button {
    background-color: #e6e7ee !important;
    color: #44476A !important;
    border: none;
    border-radius: 0.55rem;
    padding: 6px 12px;
    margin: 0 2px;
    box-shadow: 2px 2px 5px rgba(184, 185, 190, 0.15), -2px -2px 5px rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
    cursor: pointer;
}

.dataTables_paginate .paginate_button:hover {
    background-color: #dfe0e9 !important;
    box-shadow: inset 2px 2px 5px rgba(184, 185, 190, 0.2), inset -2px -2px 5px rgba(255, 255, 255, 0.5);
}

.dataTables_paginate .paginate_button.current {
    background-color: #2D4CC8 !important;
    color: #ECF0F3 !important;
    box-shadow: 2px 2px 5px rgba(45, 76, 200, 0.3);
}

.dataTables_paginate .paginate_button.current:hover {
    background-color: #1f3899 !important;
}

.dataTables_paginate .paginate_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
} */

/* DataTables Length Select */
.dataTables_length select {
    border-radius: 0.55rem;
    border: none;
    padding: 6px 8px;
    background-color: #f0f0f5 !important;
    color: #44476A !important;
    box-shadow: inset 2px 2px 5px rgba(184, 185, 190, 0.2), inset -2px -2px 5px rgba(255, 255, 255, 0.5) !important;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dataTables_length select:focus {
    outline: none;
    background-color: #e6e7ee !important;
    box-shadow: inset 3px 3px 7px rgba(184, 185, 190, 0.3), inset -3px -3px 7px rgba(255, 255, 255, 0.6) !important;
}

/* Hide intermediate page numbers - show only First, Current, and Last */
.dataTables_paginate .paginate_button:not(.first):not(.last):not(.current):not(.previous):not(.next) {
    display: none !important;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
}

.bento-item {
    position: relative;
    background: #e6e7ee;
    border-radius: 10px;
    padding: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: 0.2s ease;
    border: 0.0625rem solid rgba(243, 247, 250, 0.05) !important;
    box-shadow: 6px 6px 12px #b8b9be, -6px -6px 12px #ffffff !important;
}

@keyframes bentoIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.bento-item:hover {
    /* transform: translateY(-3px); */
    transform: translateY(0);
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1), inset -3px -3px 7px rgba(255, 255, 255, 0.5) !important;
    text-decoration: none;
    color: inherit;
}

.bento-item span {
    position: absolute;
    cursor: pointer;
    top: 11px;
    right: 12px;
    font-size: 12px;
    color: #dc3545;
    background-color: #e6e7ee;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;

}

.bento-item span:hover {
    color: #a71d2a;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1), inset -3px -3px 7px rgba(255, 255, 255, 0.5) !important;
    /* transform: scale(1.2); */
}

.bento-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.bento-file {
    font-size: 12px;
    margin-top: 5px;
    word-break: break-all;
}

.bento-icon {
    font-size: 28px;
    margin-top: 10px;
}

.image-viewer {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
}

.image-viewer.active {
    display: flex;
    background: rgba(0, 0, 0, 0.9);
}

.image-viewer img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    transform: scale(0.85);
    opacity: 0;
    transition: all 0.3s ease;
}

.image-viewer.active img {
    transform: scale(1);
    opacity: 1;
}

#closeViewer {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

/* Match Bootstrap custom-select look */
.select2-container--default .select2-selection--single {
    align-items: center !important;
    display: flex !important;
    width: 100% !important;
    height: calc(1.5em + 1.2rem + 0.0625rem) !important;
    padding: 0.6rem 0.75rem !important;
    font-size: 1rem !important;
    font-weight: 300 !important;
    line-height: 1.5 !important;
    color: #44476A !important;
    background-color: #e6e7ee !important;
    background-clip: padding-box !important;
    border: 0.0625rem solid #D1D9E6 !important;
    border-radius: 0.55rem !important;
    box-shadow: inset 2px 2px 5px #b8b9be, inset -3px -3px 7px #FFFFFF !important;
    transition: all 0.3s ease-in-out !important;
}

.select2-selection__placeholder {
    color: #44476A !important;
    font-weight: 300 !important;
}

.select2-selection__rendered {
    line-height: normal !important;
    padding-left: 0 !important;
}

.select2-selection__arrow {
    height: 100% !important;
    right: 10px !important;
}

/* Focus style */
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #44476A !important;
    outline: 0 !important;
}

/* Dropdown */
.select2-dropdown {
    border: 0.0625rem solid #D1D9E6 !important;
    border-radius: 0.55rem !important;
    color: #44476A !important;
    background-color: #e6e7ee !important;
    background-clip: padding-box !important;
    font-size: 1rem !important;
}

/* SEARCH INPUT (inside dropdown) */
.select2-container--default .select2-search--dropdown .select2-search__field {
    width: 100% !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.95rem !important;
    color: #44476A !important;
    background-color: #e6e7ee !important;
    border: 0.0625rem solid #D1D9E6 !important;
    border-radius: 0.45rem !important;

    /* neumorphism inset */
    box-shadow: inset 2px 2px 5px #b8b9be,
        inset -3px -3px 7px #FFFFFF !important;

    outline: none !important;
}

/* SEARCH FOCUS */
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #44476A !important;
}

/* DROPDOWN OPTIONS BASE */
.select2-container--default .select2-results__option {
    padding: 8px 12px !important;
    border-radius: 0.4rem !important;
    margin: 2px 6px !important;
    transition: all 0.2s ease-in-out !important;
}

/* HOVER EFFECT */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #e6e7ee !important;
    color: #44476A !important;

    /* soft neumorphism hover */
    box-shadow: inset 2px 2px 5px #b8b9be,
        inset -3px -3px 7px #FFFFFF !important;
}

/* SELECTED OPTION */
.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #e6e7ee !important;
    color: #44476A !important;
    font-weight: 500 !important;
}

/* DROPDOWN CONTAINER PADDING */
.select2-results {
    padding: 5px 0 !important;
}

.step {
    display: none;
    animation: fade .3s ease;
}

.step.active {
    display: block;
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.option-card {
    border-radius: 0.55rem;
    padding: 35px 20px;
    text-align: center;
    cursor: pointer;
    color: #44476A;
    background-color: #e6e7ee !important;
    border: 0.0625rem solid rgba(243, 247, 250, 0.05) !important;
    box-shadow: 6px 6px 12px #b8b9be, -6px -6px 12px #ffffff !important;
    transition: all 0.2s ease;
}

.option-card:hover {
    /* transform: translateY(-5px);
            border-color: #2563eb;
            box-shadow: 0 10px 25px rgba(37, 99, 235, .15); */
    box-shadow: inset 6px 6px 12px #b8b9be, inset -6px -6px 12px #ffffff !important;
}

.option-card.active {
    /* border-color: #2563eb;
            background: #eff6ff; */
    box-shadow: inset 6px 6px 12px #b8b9be, inset -6px -6px 12px #ffffff !important;
}

.btn-custom {
    min-width: 130px;
    border-radius: 12px;
    padding: 10px 20px;
}

.top-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.load-display {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    border: none;
    background: #e6e7ee;
    border-radius: 14px;
    padding: 12px;
    color: #44476A;
    box-shadow: inset 6px 6px 12px #b8b9be, inset -6px -6px 12px #ffffff !important;
}


.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.quick-chip {
    width: 100%;
    padding: 10px 0;
    border-radius: 14px;
    border: none;
    font-size: 13px;
    font-weight: 700;
    background: #e6e7ee;
    color: #44476A;
    box-shadow: 6px 6px 12px #b8b9be,
        -6px -6px 12px #ffffff !important;
    transition: 0.2s ease;
    text-align: center;
}

.quick-chip:active {
    box-shadow: inset 6px 6px 12px #b8b9be,
        inset -6px -6px 12px #ffffff !important;
    transform: scale(0.96);
}

.numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.numpad button {
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 14px;
    background: #e6e7ee;
    color: #44476A;
    box-shadow: 6px 6px 12px #b8b9be, -6px -6px 12px #ffffff !important;
    transition: 0.2s;
}

.numpad button:active {
    box-shadow: inset 6px 6px 12px #b8b9be, inset -6px -6px 12px #ffffff !important;
    transform: scale(0.96);
}

@media (max-width: 576px) {
    .quick-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .quick-chip {
        font-size: 12px;
        padding: 9px 0;
    }

    .numpad button {
        padding: 14px;
        font-size: 16px;
    }

    .load-display {
        font-size: 1.6rem;
    }
}

@media (max-width: 360px) {
    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


.qrReader {
    width: 50%;
    height: inherit;
    box-shadow: 6px 6px 12px #b8b9be, -6px -6px 12px #ffffff !important;
    border: 0.0625rem solid rgba(243, 247, 250, 0.05) !important;
    border-radius: 1.55rem !important;
    overflow: hidden;
    transition: all 0.35s ease-in-out;
    opacity: 1;
}

/* sleep state */
.qrReader.sleeping {
    opacity: 0;
    filter: blur(1px);
}

/* wake state */
.qrReader.waking {
    opacity: 0;
    filter: blur(2px);
}

@media (max-width: 576px) {
    .qrReader {
        width: 100%;
        height: inherit;
        box-shadow: 6px 6px 12px #b8b9be, -6px -6px 12px #ffffff !important;
        border: 0.0625rem solid rgba(243, 247, 250, 0.05) !important;
        border-radius: 1.55rem !important;
        overflow: hidden;
        transition: all 0.35s ease-in-out;
        opacity: 1;
    }
}

.form-control {
    color: #000000 !important;
    font-weight: 500 !important;
}

.custom-select {
    color: #000000 !important;
    font-weight: 500 !important;
}

.modal-xxl {
    max-width: 900px !important;
}