@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
    font-family: "Inter", serif, Century, sans-serif;
}

/* Hide number input spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.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: var(--primary);
}

.refresh-btn .spinner {
    display: inline-block;
    position: relative;
    -webkit-transition: all 0.3s ease-in-out 0s;
    transition: all 0.3s ease-in-out 0s;
    z-index: 999;
    scale: 0.8;
}

.refresh-btn.spin i {
    animation: spin 0.5s linear;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.hide-pass.eye {
    position: absolute;
    right: 25px;
    bottom: 3px;
    font-size: 18px;
}

/* Elevation Classes */
.elevation-0 {
    box-shadow: none;
}

.elevation-1 {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.elevation-2 {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.elevation-3 {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}

.elevation-4 {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

.elevation-5 {
    box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3), 0 15px 12px rgba(0, 0, 0, 0.22);
}

.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;
    background-color: var(--bs-gray-200);
}

/* Header & Sidebar Theme */
.header,
.deznav {
    background: #03045E;
    background: linear-gradient(315deg, #03045E 20%, #0077B6 70%, #00B4D8 100%);
    background: -moz-linear-gradient(315deg, #03045E 20%, #0077B6 70%, #00B4D8 100%);
    background: -webkit-linear-gradient(315deg, #03045E 20%, #0077B6 70%, #00B4D8 100%);
}

.nav-header {
    background-color: #03045E;
}

.content-body .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 1rem;
}

.login-page {
    background-image: url('../../images/loginbg.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.auth-form {
    padding: 1rem;
    margin: 1rem;
    border: 1px solid var(--primary);
    border-radius: 16px;
}

.form-check-label {
    color: black;
    margin-top: 6px;
    font-size: 15px;
}

.modal #body {
    text-align: justify;
}

.filters input {
    background: #fff !important;
}

.login-logo {
    width: 90% !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.menu-toggle .brand-img {
    width: 40% !important;
}

.modal-title {
    color: var(--primary) !important;
    margin-bottom: 0 !important;
}

td:has(.btn),
td:has(.badge),
td:has(i),
td:has(textarea) {
    padding: 2px 5px !important;
}

.modal-body {
    padding: 1rem;
    color: #000000;
}

.input-group-text {
    font-size: 14px !important;
}

.mob-page-title {
    display: none !important;
}

#MyFilterDataTable2_filter {
    display: none !important;
}

.mobile-view {
    display: none !important;
}

.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;
}

td .scroll-box {
    max-height: 70px;
    overflow-y: auto;
    display: block;
    overflow-x: hidden;
    padding: 2px !important;
}

td .scroll-box .badge {
    margin: 2px 0 !important;
}

td:has(.scroll-box) {
    padding: 0px !important;
}

/* ===== 3D Pill Badges ===== */
.badge {
    border-radius: 50rem !important;
    padding: 0.5em 1.5em !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    border-top: 1.5px solid rgba(255, 255, 255, 0.45) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.25) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.25),
        inset 0 3px 6px rgba(255, 255, 255, 0.35),
        inset 0 -3px 6px rgba(0, 0, 0, 0.2) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.badge-glass-primary {
    background: linear-gradient(to bottom, #3b82f6 0%, #1d4ed8 100%) !important;
}

.badge-glass-success {
    background: linear-gradient(to bottom, #16a34a 0%, #14532d 100%) !important;
}

.badge-glass-danger {
    background: linear-gradient(to bottom, #e11d48 0%, #881337 100%) !important;
}

.badge-glass-warning {
    background: linear-gradient(to bottom, #f59e0b 0%, #92400e 100%) !important;
}

.badge-glass-info {
    background: linear-gradient(to bottom, #0ea5e9 0%, #0369a1 100%) !important;
}

.badge-glass-purple {
    background: linear-gradient(to bottom, #8b5cf6 0%, #5b21b6 100%) !important;
}

.badge-glass-teal {
    background: linear-gradient(to bottom, #0d9488 0%, #134e4a 100%) !important;
}

.badge-glass-pink {
    background: linear-gradient(to bottom, #ec4899 0%, #9d174d 100%) !important;
}

.badge-glass-navy {
    background: linear-gradient(to bottom, #1e3a8a 0%, #172554 100%) !important;
}

.badge-glass-dark {
    background: linear-gradient(to bottom, #475569 0%, #1e293b 100%) !important;
}

.badge-glass-lime {
    background: linear-gradient(to bottom, #84cc16 0%, #3f6212 100%) !important;
}

.badge-glass-indigo {
    background: linear-gradient(to bottom, #6366f1 0%, #3730a3 100%) !important;
}

/* ===== DataTable Styles ===== */
.table-responsive {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin-bottom: 1rem;
    border-radius: 12px;
}

table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
    min-width: 800px;
    margin-bottom: 0 !important;
    color: #212529 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.02);
}

table.dataTable thead th {
    background: #05339C !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 0.8rem !important;
    letter-spacing: 0.8px;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 10px 12px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    vertical-align: middle !important;
}

table.dataTable thead tr th:first-child {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

table.dataTable thead tr th:last-child {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

table.dataTable tbody tr {
    background-color: #ffffff !important;
    transition: all 0.1s ease !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

table.dataTable tbody tr:last-child td {
    border-bottom: none !important;
}

table.dataTable td {
    border-top: none !important;
    border-right: 1px solid #f0f0f0 !important;
    border-bottom: none !important;
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
    vertical-align: middle !important;
    color: #000 !important;
}

table.dataTable tbody tr td:first-child {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

table.dataTable tbody tr td:last-child {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    color: #6c757d !important;
    font-size: 0.85rem !important;
    margin-top: 10px !important;
}

.dataTables_wrapper .dataTables_length {
    margin-top: 3px !important;
    height: 30px !important;
    margin-left: 10px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: linear-gradient(135deg, #03045e 0%, #023e8a 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 6px !important;
    border: 1px solid transparent !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #e9ecef !important;
    color: #03045e !important;
    border: 1px solid #dee2e6 !important;
}

.table.dataTable thead tr.filters th {
    background-color: rgba(233, 244, 173, 0.336) !important;
    padding: 4px 6px !important;
}

.table.dataTable thead tr.filters th .form-control {
    border: 1px solid #dee2e6 !important;
}

/* ===== Switch Button Styles ===== */
.switch.btn {
    border-radius: 20rem !important;
    min-width: 50px !important;
    min-height: 34px !important;
    border: none !important;
}

.switch .switch-on:hover,
.switch .switch-off:hover,
.switch .switch-handle:hover {
    transform: none !important;
    transition: all 0.15s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 0 rgba(0, 0, 0, 0.15) !important;
    filter: brightness(1.05);
}

.switch-group {
    border-radius: 20rem !important;
    overflow: hidden;
}

.switch.btn .switch-on,
.switch.btn .switch-off {
    padding: 0 10px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    text-align: center !important;
}

.switch.btn .switch-handle {
    border-radius: 50% !important;
    background: #ECFAE5 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.switch.btn:not(.off) .switch-handle {
    margin-right: 36px !important;
}

.switch.btn.off .switch-handle {
    margin-left: 36px !important;
}

.btn.switch-on {
    margin-left: -28px !important;
}

.btn.switch-off {
    margin-right: -28px !important;
}

/* Layout Utilities */
.max-width-200 {
    max-width: 200px !important;
}

.max-width-300 {
    max-width: 300px !important;
}

.chart-height {
    height: 300px !important;
}

.cursor-pointer {
    cursor: pointer !important;
}

.d-none-js {
    display: none !important;
}

.mt-25 {
    margin-top: 25px !important;
}

.toast-z-index {
    z-index: 1050 !important;
}

/* Usage Donut Chart */
.usage-chart {
    width: 50px;
    height: 50px;
}

.usage-chart-sm {
    width: 30px;
    height: 30px;
}

.circular-chart {
    display: block;
    width: 100%;
    height: 100%;
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 4.5;
}

.circle-fill {
    fill: none;
    stroke: #ffffff;
    stroke-width: 4.5;
    stroke-linecap: round;
    animation: progress 1s ease-out forwards;
}

@keyframes progress {
    0% {
        stroke-dasharray: 0 100;
    }
}

/* ===== Support & Client Cards ===== */
.support-card,
.client-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.support-card:hover,
.client-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ===== OTP Input ===== */
.otp-input-group {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.otp-input {
    width: 42px;
    height: 42px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    border: 1px solid #ccc;
    color: var(--primary);
}

.otp-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 5px var(--rgba-primary-3);
    outline: none;
}

.otp-input::-webkit-outer-spin-button,
.otp-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.otp-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* ===== Accordion Status ===== */
.accordion-item.status-pending {
    border: 1px solid #ffc107 !important;
    border-radius: 10px !important;
    overflow: hidden;
}

.accordion-item.status-resolved {
    border: 1px solid #28a745 !important;
    border-radius: 10px !important;
    overflow: hidden;
}

.accordion-button.status-pending {
    background-color: #FFF8E1 !important;
}

.accordion-button.status-resolved {
    background-color: #E8F5E9 !important;
}

.accordion-button:not(.collapsed).status-pending {
    border-bottom: 1px solid #ffc107 !important;
    border-radius: 10px !important;
}

.accordion-button:not(.collapsed).status-resolved {
    border-bottom: 1px solid #28a745 !important;
    border-radius: 10px !important;
}

.accordion-button:focus {
    box-shadow: none !important;
}

code {
    background-color: inherit !important;
    color: red !important;
}

/* Profile Image */
.author-media img,
#profilePreview,
#updateClientPreview,
.profile-preview-img {
    width: 150px !important;
    height: auto !important;
    aspect-ratio: 1/1;
    object-fit: cover !important;
    border-radius: 50% !important;
}

.remark-cell {
    min-width: 200px;
    max-height: 60px;
    overflow-y: auto;
    word-wrap: break-word;
    white-space: pre-wrap;
    font-size: 0.85rem;
    padding: 4px 8px;
}

.chart-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 0.5rem;
}

/* ===== Premium Glass Cards ===== */
.card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05), 0 1px 4px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(8px);
}

.card.interactive:hover,
.dashboard-counter:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.02);
}

.card-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    padding: 1.25rem 1.5rem !important;
}

.card-title {
    font-weight: 700 !important;
    letter-spacing: -0.3px;
    color: #1f2937;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* ===== Typography ===== */
body {
    font-family: 'Inter', sans-serif !important;
    color: #374151;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #111827;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.table.dataTable td {
    color: #000;
}

/* ===== Glass Toasts ===== */
.toast-container {
    pointer-events: none;
    top: 5px !important;
    right: 5px !important;
}

.toast {
    pointer-events: auto;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top-color: rgba(255, 255, 255, 0.4);
    border-left-color: rgba(255, 255, 255, 0.3);
    border-right-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: rgba(0, 0, 0, 0.1);
    margin-bottom: 0.75rem;
    overflow: hidden;
    animation: toastSlideIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.95) skewX(-2deg);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1) skewX(0);
    }
}

.toast-success-glass {
    background: linear-gradient(135deg, rgba(6, 95, 70, 0.85) 0%, rgba(4, 120, 87, 0.95) 100%) !important;
}

.toast-error-glass {
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.9) 0%, rgba(153, 27, 27, 0.85) 100%) !important;
}

.toast-info-glass {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.85) 0%, rgba(30, 58, 138, 0.95) 100%) !important;
}

.toast-warning-glass {
    background: linear-gradient(135deg, rgba(146, 64, 14, 0.85) 0%, rgba(120, 53, 15, 0.95) 100%) !important;
}

.toast-header {
    background: rgba(255, 255, 255, 0.1) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

.toast-body {
    padding: 12px 16px;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
}

.btn-close-white:hover {
    opacity: 1;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
    border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ===== Auth Pages ===== */
.authincation {
    min-height: 100vh !important;
    width: 100% !important;
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.authincation-content {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(1px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    border-radius: 24px !important;
}

.login-logo {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.05) rotate(-2deg);
}

.login-page {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

/* Table Base */
.table.dataTable {
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
}



.table.dataTable tbody td {
    padding: 1rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    font-size: 0.9rem;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(249, 250, 251, 0.6) !important;
}

.table.dataTable thead th:first-child {
    border-top-left-radius: 12px;
}

.table.dataTable thead th:last-child {
    border-top-right-radius: 12px;
}

/* Dev Page */
.dev-code-block {
    background: #c5cae9;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.dev-header {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.4);
    margin-bottom: 2rem;
}

/* ===== Forms & Inputs ===== */
.form-control,
.form-select {
    background-color: #f9fafb !important;
    border: 1px solid #d1d5db !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    border-radius: 8px !important;
    padding: 0.6rem 1rem !important;
    font-size: 0.9rem !important;
    color: #374151 !important;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    background-color: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15) !important;
    color: #111827 !important;
    outline: none !important;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    transition: color 0.2s;
    color: var(--primary) !important;
}

.form-control:focus+.form-label,
.form-control:not(:placeholder-shown)+.form-label,
.form-group:focus-within .form-label {
    color: var(--primary);
}

.input-group-text {
    background-color: #f3f4f6 !important;
    border: 1px solid #d1d5db !important;
    color: #4b5563 !important;
    border-radius: 8px !important;
}

.input-group>.form-control:not(:first-child),
.input-group>.form-select:not(:first-child),
.input-group>.input-group-text:not(:first-child) {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.input-group>.form-control:not(:last-child),
.input-group>.form-select:not(:last-child),
.input-group>.input-group-text:not(:last-child) {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* ===== Analytics Tiles ===== */
.dashboard-counter {
    position: relative;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-bottom: 4px solid rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 8px 0 rgba(0, 0, 0, 0.15),
        0 15px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.dashboard-counter::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
    pointer-events: none;
}

.dashboard-counter:hover {
    transform: translateY(4px) !important;
    border-bottom-width: 0px !important;
    box-shadow:
        0 2px 0 rgba(0, 0, 0, 0.1),
        0 5px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    filter: brightness(1.05);
}

.dashboard-counter .counter-icon {
    font-size: 2.5rem;
    opacity: 0.9;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.dashboard-counter .counter-value {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dashboard-counter .counter-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-top: 5px;
}

.bg-counter-6 {
    background: linear-gradient(to bottom, #6366f1, #312e81) !important;
}

.bg-counter-7 {
    background: linear-gradient(to bottom, #475569, #1e293b) !important;
}

.bg-counter-8 {
    background: linear-gradient(to bottom, #06b6d4, #083344) !important;
}

.bg-counter-9 {
    background: linear-gradient(to bottom, #f43f5e, #881337) !important;
}

.bg-counter-10 {
    background: linear-gradient(to bottom, #f59e0b, #78350f) !important;
}

/* ===== Form Validation ===== */
.formerror:not(.select2-container, .no-validate),
.formerror.form-control,
.formerror.form-select {
    border: 1px solid rgba(239, 68, 68, 0.5) !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
    background-color: #fef2f2 !important;
    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='%23dc3545'%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='%23dc3545' stroke='none'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 20px 20px !important;
    padding-right: 40px !important;
}

.formvalid:not(.select2-container, .no-validate),
.formvalid.form-control,
.formvalid.form-select {
    border: 1px solid rgba(34, 197, 94, 0.5) !important;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1) !important;
    background-color: #f0fdf4 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2322c55e' 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") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 20px 20px !important;
    padding-right: 40px !important;
}

/* ===== Select2 ===== */
.select2-container--default .select2-selection--single {
    height: 40px !important;
    background-color: #f8f9fa !important;
    border: 1px solid #e4e6ef !important;
    border-radius: 0.375rem !important;
}

.select2-container--default .select2-selection--multiple {
    min-height: 40px !important;
    background-color: #f8f9fa !important;
    border: 1px solid #e4e6ef !important;
    border-radius: 0.375rem !important;
}

.formerror .select2-selection--single,
.formerror .select2-selection--multiple {
    border: 1px solid rgba(239, 68, 68, 0.5) !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
    background-color: #fef2f2 !important;
    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='%23dc3545'%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='%23dc3545' stroke='none'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 35px center !important;
    background-size: 18px 18px !important;
}

.formvalid .select2-selection--single,
.formvalid .select2-selection--multiple {
    border: 1px solid rgba(34, 197, 94, 0.5) !important;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1) !important;
    background-color: #f0fdf4 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2322c55e' 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") !important;
    background-repeat: no-repeat !important;
    background-position: right 35px center !important;
    background-size: 18px 18px !important;
}

/* Shake Animation */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-4px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(4px);
    }
}

.animate-shake {
    animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* ===== Sidebar Navigation ===== */
.deznav .metismenu>li {
    margin-bottom: 5px;
}

.deznav .metismenu>li>a {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 12px;
    margin: 0 15px;
    padding: 14px 20px;
    color: #64748b;
    font-weight: 500;
    border: 1px solid transparent;
}

.deznav .metismenu>li>a:hover {
    background-color: rgba(var(--primary-rgb), 0.04);
    color: #0096c7 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #0096c7 !important;
}

.deznav .metismenu>li.mm-active>a {
    background: #caf0f8 !important;
    color: #03045e !important;
    box-shadow: none !important;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    font-weight: 600;
}

.deznav .metismenu>li.mm-active>a i {
    color: #03045e !important;
    filter: none;
}

.deznav .metismenu>li>a>i {
    font-size: 1.2rem;
    margin-right: 0.8rem;
    transition: all 0.3s ease;
    vertical-align: middle;
}

.deznav .metismenu ul a {
    transition: all 0.2s;
    font-size: 0.9rem;
}

.deznav .metismenu ul a:hover {
    color: var(--primary);
    background-color: transparent !important;
    padding-left: 2.5rem;
    box-shadow: none;
    transform: none;
}

.collapsing {
    transition: height 0.6s ease !important;
}

.chart-filter.active {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 6px rgba(var(--primary-rgb), 0.3) !important;
    border-color: var(--primary) !important;
    font-weight: 600 !important;
}

/* ===== Sticky Footer ===== */
#main-wrapper {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh);
}

.content-body {
    flex: 1 0 auto;
}

.footer.out-footer {
    flex-shrink: 0;
}