@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&display=swap");
/* :root {
    --primary-color: #0b2248;
    --primary-opacity-color: #103165;
    --secondary-color: #6c757d;
    --tertiary-color: #e5e7eb;
    --accent-color: #2ec6e8;
    
    --info-color: #2563eb;
    --success-color: #16a34a;
    --warning-color: #f59e0b;
    --pending-color: #f97316;
    --error-color: #dc2626;
    --muted-color: #64748b;
    --bg-base: #f4f2ee;
    --bg-panel: #ffffff;
    --sidebar-bg: #1c1c1e;
    --sidebar-text: #e8e6e1;
    --sidebar-muted: #8a887f;
    --accent: #e07b54;
    --accent-hover: #c9673e;
    --border: rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.1);
    --radius-lg: 18px;
    --radius-pill: 999px;
    --font-dm-sans: "DM Sans", sans-serif;
} */

:root {
    /* ── BRAND ── */
    --primary-color: #0b2248;
    --primary-600: #103165;
    --primary-500: #1c57b5;
    --border: rgba(0, 0, 0, 0.06);
    --accent-opacity-color: #6cd7ef;

    --secondary-color: #ffffff;
    --tertiary-color: #e5e7eb;

    --accent-color: #2ec6e8;
    --accent-500: #1ac0e6;
    --accent-600: #159ebc;

    /* ── STATUS ── */
    --info-color: #2563eb;
    --info-100: #eef2ff;

    --success-color: #16a34a;
    --success-100: #ecfdf5;

    --warning-color: #f59e0b;
    --warning-100: #fffbeb;

    --pending-color: #f97316;
    --pending-100: #fff7ed;

    --accent: #e07b54;
    --accent-hover: #c9673e;

    --error-color: #dc2626;
    --error-100: #fef2f2;

    --muted-color: #64748b;
    --muted-100: #f1f5f9;

    /* ── TEXT ── */
    --text-color: #1e293b;
    --text-muted: #6b7280;

    /* ── BACKGROUND ── */
    --bg-base: #f8fafc;
    --bg-panel: #ffffff;
    --bg-hover: #fafbfd;

    /* ── BORDER ── */
    --border-color: #e5e7eb;

    /* ── SIDEBAR ── */
    --sidebar-bg: #0b2248;
    --sidebar-text: #e9f0fc;
    --sidebar-muted: #aab4c5;

    /* ── SHADOW ── */
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);

    /* ── RADIUS ── */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-pill: 999px;

    /* ── FONT ── */
    --font-dm-sans: "Kantumruy Pro", "DM Sans", sans-serif;
}
.animate-pulse {
    animation: pulse-border 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse-border {
    0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: .7; transform: translate(-50%, -50%) scale(1.15); }
}

.hover-lift {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0,0,0,0.15) !important;
}

/* ── FONT Global Enforcement (Exclude Icons) ── */
*:not(.material-symbols-rounded):not(.fa):not(.fab):not(.fas):not(.far):not(.material-icons) {
    font-family: var(--font-dm-sans) !important;
}

.material-symbols-rounded {
    font-family: 'Material Symbols Rounded' !important;
}
.fa, .fab, .fas, .far {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

.bg-primary {
    background-color: var(--primary-color);
}
.bg-opacity-primary {
    background-color: var(--primary-opacity-color);
}
.bg-accent {
    background-color: var(--accent-color);
}
.bg-tertiary {
    background-color: var(--tertiary-color);
}
.bg-secondary {
    background-color: var(--secondary-color);
}

/* ── Order Status Utilities ── */
.bg-primary-soft { background-color: rgba(11, 34, 72, 0.1) !important; }
.bg-info-soft    { background-color: rgba(37, 99, 235, 0.1) !important; }
.bg-success-soft { background-color: rgba(22, 163, 74, 0.1) !important; }
.bg-warning-soft { background-color: rgba(245, 158, 11, 0.1) !important; }
.bg-danger-soft  { background-color: rgba(220, 38, 38, 0.1) !important; }
.bg-secondary-soft { background-color: rgba(100, 116, 139, 0.1) !important; }

.border-primary-light { border-color: rgba(11, 34, 72, 0.2) !important; }
.border-info-light    { border-color: rgba(37, 99, 235, 0.2) !important; }
.border-success-light { border-color: rgba(22, 163, 74, 0.2) !important; }
.border-warning-light { border-color: rgba(245, 158, 11, 0.2) !important; }
.border-danger-light  { border-color: rgba(220, 38, 38, 0.2) !important; }
.border-secondary-light { border-color: rgba(100, 116, 139, 0.2) !important; }

.form-typeahead-wrap {
    position: relative;
}
.typeahead.dropdown-menu {
    right: 0px;
    max-height: 250px; /* scroll if too many options */
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    margin-top: 2px;
    z-index: 1000; /* make sure it appears above other elements */
}

/* Each option */
.typeahead.dropdown-menu li a {
    padding: 8px 12px;
    font-size: 14px;
    color: #333;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

/* Hovered / active option */
.typeahead.dropdown-menu li.active > a,
.typeahead.dropdown-menu li a:hover {
    background-color: #f1f1f1;
}

/* Optional: highlight matching text */
.typeahead.dropdown-menu li a strong {
    font-weight: bold;
}

.upload-wrapper {
    /* width: 200px; */
    width: 100%;
}

.upload-box {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    height: 145px;
    cursor: pointer;
    transition: 0.3s ease;
    background-color: #f9fafb;
    position: relative;
    overflow: hidden;
}

.upload-box:hover {
    border-color: #3b82f6;
    background-color: #eef4ff;
}

.upload-content {
    text-align: center;
    color: #6b7280;
}

.upload-icon > i {
    font-size: 40px;
    margin-bottom: 8px;
}

.upload-text {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-loader {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    transform: translateY(-50%);
    animation: spin 0.7s linear infinite;
    display: none;
}

@keyframes spin {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }
    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

.preview-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    display: none;
}

.preview-image-show {
    display: block !important;
}

/* Remove Icon */
.upload-image-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-size: 18px;
    cursor: pointer;
    display: none;
    transition: 0.2s;
}

.remove-btn:hover {
    background: var(--error-color);
}

.table-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
}

.btn-icon {
    padding: 6px;
}
.btn-icon i {
    font-size: 12px;
}
.pagination-custom .page-link {
    border-radius: 0px !important;
    margin: 0 2px;
    min-width: 38px;
    text-align: center;
    padding: 6px 12px;
    transition: all 0.2s;
}
.pagination-custom .page-item .page-link {
    border-radius: 30px;
}

.pagination-custom .page-item:first-child .page-link {
    border-top-left-radius: 0.375rem !important;
    border-bottom-left-radius: 0.375rem !important;
}
.pagination-custom .page-item:last-child .page-link {
    border-top-right-radius: 0.375rem !important;
    border-bottom-right-radius: 0.375rem !important;
}

.pagination-custom .page-link:hover,
.navbar-vertical .navbar-nav .nav-link:hover,
.navbar-vertical .navbar-nav .nav-link.active {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.pagination-custom .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 600;
}
.custom-table thead {
    background-color: #f3f3f3;
    padding: 10px !important;
}
.custom-table thead tr th {
    
    padding: 0.8rem 0.5rem !important;
    color: #161616;
}
.select2-selection__rendered,
.custom-table thead tr th {
    padding-top: 10px;
    font-size: 0.9rem !important;
}

/* ── Select2 Bootstrap 5 Fix for Single Selects ── */
.select2-container .select2-selection--single {
    height: 40px !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.375rem !important;
    display: flex;
    align-items: center;
    background-color: #fff;
    outline: none !important;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    position: relative; /* for absolute clear/arrow buttons */
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #212529 !important;
    line-height: normal !important;
    padding-left: 0.75rem !important;
    padding-right: 2.5rem !important; /* space for clear + arrow */
    flex: 1;
}

/* Clear (×) Button */
.select2-container--default .select2-selection--single .select2-selection__clear {
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    height: 20px;
    width: 20px;
    line-height: 20px;
    text-align: center;
    position: absolute;
    right: 28px !important; /* right before the arrow */
    top: 50%;
    transform: translateY(-50%);
    margin: 0 !important;
    padding: 0 !important;
    color: #999;
}
.select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: #dc3545; /* Bootstrap danger */
}

/* Arrow (▼) */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 8px !important;
    position: absolute;
    top: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
}

.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #6c757d !important;
}
.custom-table tbody tr:hover {
    background: var(--bg-hover);
}
.btn-primary-custom {
    background-color: var(--primary-color);
} */
.btn {
    border: none;
    border-radius: 8px !important;
    padding-right: 1rem !important;
    padding-left: 1rem !important;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    margin: 0 !important;
}
.snol-btn {

    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    font-family: "DM Sans", sans-serif;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.15s;
}
.btn-primary,.btn-primary-custom {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-primary:hover,
.btn-primary-custom:hover,
.btn-primary:active:focus,
.btn-primary-custom:active:focus,
.btn-primary:focus,
.btn-primary-custom:focus{
    background-color: var(--primary-opacity-color) !important;
    color: #fff !important;
}
.btn-primary,.btn-primary-custom {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-accent {
    background-color: var(--accent-color);
    color: #fff;
}


.btn-accent:hover,
.btn-accent:active:focus,
.btn-accent:focus {
    background-color: var(--accent-opacity-color) !important;
    color: #fff !important;
}
.btn-secondary:hover,
.btn-secondary:active:focus,
.btn-secondary:focus {
    background-color: var(--secondary-color) !important;
    color: #000000 !important;
}
.btn-suffix {
    border-bottom-left-radius: 0px !important;
    border-top-right-radius: 6px !important;
    border-bottom-right-radius: 6px !important;
    border-top-left-radius: 0px !important;
}
.wrap-input-suffix > input,
.wrap-input-suffix .select2-selection {
    border-top-right-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
}

.card-header > h5 {
    color: #2d2b2b;
    font-weight: 700;
}
.form-control-color {
    height: 40px;
}
.select2-ajax {
    min-width: 180px;
}
.dropdown .dropdown-toggle:after,
.dropup .dropdown-toggle:after,
.dropstart .dropdown-toggle:after,
.dropend .dropdown-toggle:after {
    display: none;
}
.img-thumbnail {
    height: 80px;
    line-height: 80px;
}
.btn-open-filter {
    padding: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

/* Icon inside */
.btn-open-filter i {
    font-size: 14px;
}

/* Hover effect */
.btn-open-filter:hover {
    background-color: #f3f4f6;
    transform: translateY(-1px);
}

/* Optional: active click */
.btn-open-filter:active {
    transform: translateY(0);
}

.img-small-thumbnail {
    border: 1px solid #d4d4d4;
    border-radius: 0.375rem;
    width: 50px;
    height: 50px;
    justify-content: center;
    align-items: center;
    display: flex;
    cursor: pointer;
}

.custom-logo {
    width: 150px;
}

@media screen and (max-width: 768px) {
    .custom-logo {
        width: 100px;
    }
}

.eot-back {
    /* background: linear-gradient(#daecf7, #ffffff); */
    min-height: 100vh;
    background: linear-gradient(160deg, #dce9f5 0%, #eaf3fc 40%, #d6e8f4 70%, #c9dff0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}
.btn-login {
   display: block;
    width: 100%;
    padding: 0.7rem 1rem;
    background: #3a6f9f;
    color: #ffffff !important;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s, transform 0.1s;
    text-align: center;
}

.btn-login:hover {
    background: #2f5f8a;
    box-shadow: 0 4px 14px rgba(58, 111, 159, 0.28);
  }

  .btn-login:active {
    transform: scale(0.99);
    background: #264d73;
  }
.rounded-lg {
    border-radius: 0.3rem !important;
}

.form-login label {
    color: #808080 !important;
    font-weight: normal !important;
}
.form-login .text-primary:hover,
a.text-primary:focus {
    color: #0056b3 !important;
}
.btn-icon-toggle-password {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #93a3b4;
    transition: color 0.15s;
    line-height: 1;
  }

  .btn-icon-toggle-password:hover {
    color: #4a90c4;
  }

  .btn-icon-toggle-password .material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-size: 20px;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 20;
  }
.navbar-vertical.navbar-expand-xs .navbar-collapse {
    height: auto !important;
}

.g-sidenav-hidden .navbar-vertical .nav-item .nav-link {
    position: relative;
}

.g-sidenav-hidden .navbar-vertical .nav-item .nav-link .badge.badge-sm {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    margin-left: 0 !important;
    opacity: 1 !important;
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.g-sidenav-hidden .navbar-vertical:hover .nav-item .nav-link .badge.badge-sm {
    margin-left: auto !important;
    position: static;
    transform: none;
}

button.sidenav-toggler {
    background: transparent;
    border: none;
    text-align: center;
    display: flex;
    align-items: center;
    width: auto;
}
.no-print {
    display: block;
}

/* ── Print scope ── */
@media print {
    /* Hide everything by default */
    body * {
        visibility: hidden;
    }

    /* Show only the invoice area */
    #print-area,
    #print-area * {
        visibility: visible;
    }

    /* Position it top-left */
    /* #print-area {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    } */

    /* Hide buttons, sidebar, navbar */
    .no-print {
        display: none !important;
    }
}

/* == Message Style == */
.chat-wrapper {
    height: calc(100vh - 120px);
    min-height: 500px;
    overflow: hidden;
}

.active-chat {
    background-color: #f0f7ff !important;
    border-left: 4px solid #09488b !important;
}

.bg-light-chat {
    background-color: #f8f9fa;
}

/* .pointer {
        cursor: pointer;
    } */

/* Custom scrollbar for a cleaner look */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-thumb {
    background: #ced4da;
    border-radius: 10px;
}

.custom-scrollbar {
    overflow: auto !important;
    position: relative;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-height: calc(100vh - 260px); 
    min-height: 300px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background-color: #f1f5f9;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
    border: 2px solid #f1f5f9;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

/* Ensure table inside doesn't have conflicting overflow */
.custom-scrollbar table {
    width: 100%;
    min-width: 1000px; /* Minimum width to prevent squeezing across all admin tables */
    margin-bottom: 0;
    border-collapse: separate !important;
    border-spacing: 0;
    table-layout: auto;
}

.custom-scrollbar thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    white-space: nowrap;
}
.custom-scrollbar .snol-table thead th {
    background-color: #e7e7e7 !important;
}

/* ── Wrapper ── */
.chat-wrapper {
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    box-shadow: var(--shadow-md) !important;
    height: calc(100dvh - 100px);
    min-height: 520px;
    display: flex;
}

/* ══════════════════════════════════════
   SIDEBAR
══════════════════════════════════════ */
.chat-sidebar {
    height: 100%;
    display: flex;
    flex-direction: column;
    /* background: var(--sidebar-bg); */
    border-right: none;
}

.chat-sidebar-header {
    flex-shrink: 0;
    padding: 28px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Heading inside sidebar header */
.chat-sidebar-header h5 {
    font-family: "Sora", sans-serif;
    /* font-size: 1.05rem; */
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 14px !important;
}

/* Search input wrapper */
.chat-sidebar-header .position-relative {
    /* the form already wraps with position-relative */
}

.chat-sidebar-header .form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-pill) !important;
    padding: 8px 72px 8px 16px;
    font-family: "DM Sans", sans-serif;
    font-size: 0.82rem;
    color: var(--sidebar-text);
    outline: none;
    transition: border-color 0.2s;
    box-shadow: none !important;
}

.chat-sidebar-header .form-control::placeholder {
    color: var(--sidebar-muted);
}

.chat-sidebar-header .form-control:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
    color: var(--sidebar-text);
}

/* Search & clear buttons inside sidebar */
.chat-sidebar-header .btn {
    color: var(--sidebar-muted) !important;
    background: transparent !important;
    border: none !important;
}

.chat-sidebar-header .btn:hover {
    color: var(--accent) !important;
}

/* ── User List ── */
.chat-user-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}

.chat-user-list::-webkit-scrollbar {
    width: 4px;
}
.chat-user-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
}

/* Override list-group-item inside dark sidebar */
.chat-user-list .list-group-item {
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    border-radius: 0;
    padding: 11px 20px !important;
    transition: background 0.15s;
    cursor: pointer;
}

.chat-user-list .list-group-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

.chat-user-list .list-group-item.active-chat {
    background: rgba(224, 123, 84, 0.14) !important;
    border-left-color: var(--accent) !important;
}

/* User name & email text inside sidebar */
.chat-user-list .list-group-item h6 {
    font-weight: 600;
    font-size: 0.875rem;
}

.chat-user-list .list-group-item .text-muted {
    color: var(--sidebar-muted) !important;
    font-size: 0.78rem;
}

.chat-user-list .list-group-item small.text-muted {
    font-size: 0.7rem;
    color: var(--sidebar-muted) !important;
}

/* Avatar */
.chat-user-list .list-group-item img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 50%;
}

/* Online dot */
.online-dot {
    width: 10px;
    height: 10px;
    background: #4cd964;
    border: 2px solid var(--sidebar-bg);
    border-radius: 50%;
    position: absolute;
    bottom: 2px;
    right: 2px;
    left: auto;
}

/* ══════════════════════════════════════
   MAIN CHAT AREA
══════════════════════════════════════ */
.chat-main {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg-base);
}

/* ── Chat Header ── */
.chat-header {
    flex-shrink: 0;
    padding: 14px 22px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-panel);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Avatar in header */
#chatUserAvatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

/* User name in header */
.chat-header-meta h6 {
    font-family: "Sora", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1c1c1e;
    margin: 0;
}

.chat-header-meta .status {
    font-size: 0.75rem;
    color: #4cd964;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-header-meta .status::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #4cd964;
    border-radius: 50%;
    display: inline-block;
}

/* Back button (mobile) */
.back-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--bg-base);
    color: #1c1c1e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s;
}

.back-btn:hover {
    background: #e8e5e0;
}

/* ── Messages ── */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    /* padding: 24px 28px; */
    padding: 24px 28px;
    padding-bottom: 120px; /* <-- ensure space for the input area */
    display: flex;
    flex-direction: column;
    gap: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.08) transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}
.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 2px;
}

/* Date divider */
.date-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0 10px;
}

.date-divider::before,
.date-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
}

.date-divider span {
    font-size: 0.72rem;
    font-weight: 600;
    color: #aeacaa;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Outgoing bubble row */
.chat-messages .d-flex.flex-row-reverse {
    align-self: flex-end;
    max-width: 72%;
    width: 100%;
    justify-content: flex-start;
}

/* Outgoing bubble */
.chat-bubble-outgoing {
    background: var(--accent);
    color: #fff;
    padding: 11px 15px;
    border-radius: 18px;
    border-bottom-right-radius: 5px;
    font-size: 0.875rem;
    line-height: 1.55;
    word-break: break-word;
}

.chat-image-message {
    max-width: 220px;
    max-height: 220px;
    border-radius: 14px;
    margin-bottom: 4px;
    display: block;
}

/* File bubble */
.chat-file-bubble {
    background: var(--accent);
    color: #fff;
    padding: 10px 14px;
    border-radius: 18px;
    margin-bottom: 5px;
}
.chat-messages .d-flex.flex-row-reverse.message-row-outgoing > div {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Keep everything right-aligned */
}

/* Gray Background ONLY for Text */
.chat-bubble-outgoing {
    background: #f0f2f5 !important; /* Soft Gray */
    color: #1c1c1e !important;
    padding: 10px 16px !important;
    border-radius: 18px 18px 4px 18px !important;
    display: inline-block;
    max-width: 100%;
}

/* Gray Background ONLY for File Chips */
.chat-file-bubble-outgoing {
    background: #f0f2f5 !important;
    padding: 8px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

/* Naked Image Styling */
/* 2. FIX: Reset the background for the new structure */
.chat-messages .message-row-outgoing > .message-content-wrapper {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Keeps text/images pinned to the right */
    width: auto;
}

/* 3. UNIFIED IMAGE SIZING (Applies to both) */
.image-message-naked,
.image-message-naked img {
    width: 250px !important; /* Force exact width */
    min-width: 250px;
    height: 180px !important; /* Fixed height for that 'card' look */
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* 4. Ensure the download overlay stays on top of the fixed-size image */
.image-message-naked .position-relative {
    width: 250px;
    height: 180px;
}
.image-download-overlay {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}
.image-message-naked:hover .image-download-overlay {
    opacity: 1;
}

/* Meta info (Time/Checkmarks) */
.bubble-meta {
    padding: 0 4px;
}

/* Incoming bubble row */
.chat-messages .d-flex.mb-3:not(.flex-row-reverse) {
    align-self: flex-start;
    max-width: 72%;
    width: 100%;
    align-items: flex-end;
}

/* Incoming avatar */
.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin-bottom: 2px;
}

/* Timestamp */
.bubble-time {
    font-size: 0.67rem;
    margin-top: 4px;
    color: var(--sidebar-muted);
    padding: 0 4px;
    white-space: nowrap;
    align-self: flex-end;
}

/* ── Input Area ── */
.chat-input-area {
    flex-shrink: 0;
    padding: 12px 16px;
    background: var(--bg-panel);
    border-top: 1px solid var(--border);
    position: sticky;
    bottom: 0;
    z-index: 5;
}

/* Pill-shaped form */
.chat-input-area form.rounded-pill {
    background: var(--bg-base) !important;
    border-radius: var(--radius-pill) !important;
    padding: 6px 6px 6px 20px !important;
    border: 1.5px solid transparent;
    transition: border-color 0.2s;
    gap: 8px;
}

.chat-input-area form.rounded-pill:focus-within {
    border-color: var(--accent);
    background: #ffffff !important;
}

/* Text input inside pill */
.chat-input-area .form-control {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-family: "DM Sans", sans-serif;
    font-size: 0.875rem;
    color: #1c1c1e;
    padding: 6px 0;
}

.chat-input-area .form-control::placeholder {
    color: #aeacaa;
}

/* Send button */
.chat-input-area .btn.btn-primary {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    padding: 0 !important;
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(224, 123, 84, 0.35);
    transition:
        background 0.2s,
        transform 0.15s;
}

.chat-input-area .btn.btn-primary:hover {
    background: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
    transform: scale(1.07);
}

.chat-input-area .btn.btn-primary:active {
    transform: scale(0.95);
}

/* ══════════════════════════════════════
    RESPONSIVE FIXES (Mobile)
══════════════════════════════════════ */
@media (max-width: 767.98px) {
    .chat-wrapper {
        position: relative;
        height: calc(100dvh - 100px);
        border-radius: 0 !important;
        margin: 0 !important;
        width: 100%;
        z-index: 10;
        overflow: hidden;
    }

    .chat-sidebar-col {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 30;
        transition: transform 0.3s ease-in-out;
        background: white; /* Ensure it has a solid background */
        transform: translateX(0); /* Default: Shown */
    }

    /* When this class is present, hide it */
    .chat-sidebar-col.hide-mobile {
        transform: translateX(-100%) !important;
    }

    .chat-main-col {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .chat-main {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .chat-messages {
        flex: 1;
        /* padding: 15px; */
        overflow-y: auto;
        padding-bottom: 150px;
    }

    .chat-input-area {
        padding: 10px;
        background: var(--bg-panel);
        border-top: 1px solid var(--border);
    }

    .chat-input-area form.rounded-pill {
        padding: 4px 4px 4px 15px !important;
    }

    .back-btn {
        display: flex !important;
    }
}

@media (min-width: 768px) {
    .back-btn {
        display: none !important;
    }

    .chat-sidebar-col {
        position: relative;
        transform: none !important;
    }
}

/* ── File Previews ── */
.file-preview-bar {
    margin-bottom: 10px;

    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.file-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--pill-bg);
    border: 1.5px solid var(--preview-border);
    border-radius: 10px;
    padding: 5px 9px 5px 7px;
    font-size: 12.5px;
    font-weight: 500;
    color: #4a5568;
    max-width: 180px;
    position: relative;
    transition:
        border-color 0.15s,
        background 0.15s;
}

.file-chip:hover {
    border-color: #c3ccf8;
    background: #eef1fd;
}

.file-chip-thumb {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.file-chip-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-chip-icon .material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-size: 16px;
    color: #718096;
    font-variation-settings:
        "FILL" 1,
        "wght" 400,
        "GRAD" 0,
        "opsz" 20;
}

.file-chip-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100px;
}
.file-chip-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.file-chip-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 50%;
    background: #cbd5e0;
    color: #4a5568;
    cursor: pointer;
    padding: 0;
    margin-left: 2px;
    flex-shrink: 0;
    transition: background 0.15s;
}

.file-chip-remove:hover {
    background: #fc8181;
    color: white;
}

.file-chip-remove svg {
    display: block;
}

/* ── Image Preview (large) ── */
.image-chip {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1.5px solid var(--preview-border);
    flex-shrink: 0;
    transition: border-color 0.15s;
}

.image-chip:hover {
    border-color: #c3ccf8;
}

.image-chip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-chip-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s;
}

.image-chip-remove:hover {
    background: rgba(220, 53, 69, 0.9);
}
/* Receiver text bubble */
/* --- Incoming Container Fixes --- */
.message-row-incoming .message-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align content to the left */
}

/* --- Incoming Text Bubble --- */
.chat-bubble-incoming {
    background: #ffffff !important; /* Keep incoming white or very light gray */
    color: #1c1c1e !important;
    padding: 10px 16px !important;
    border-radius: 18px 18px 18px 4px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
    display: inline-block;
}

/* --- Incoming File Chip --- */
.chat-file-bubble-incoming {
    background: #ffffff !important;
    padding: 8px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* --- Image Sizing (Unified for both sides) --- */
.image-message-naked img {
    width: 250px; /* Exact width from your sender image */
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 12px;
}

/* --- Download Overlay for Incoming --- */
.message-row-incoming .image-download-overlay {
    left: auto;
    right: 5px; /* Put download on the right for incoming */
}

/* --- Avatar Size --- */
.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}
#chat-messages {
    transition: opacity 0.2s ease-in-out;
}

/* ── Upload Loading Spinner ── */
.upload-spinner {
    background: var(--bg-base);
    border: 1px solid var(--border);
    animation: pulse 1.5s ease-in-out infinite;
}

.upload-spinner .spinner-border {
    width: 18px;
    height: 18px;
    border-width: 2px;
}

@keyframes pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(224, 123, 84, 0.1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(224, 123, 84, 0.05);
    }
}

.spinner-border-sm {
    width: 1.2rem;
    height: 1.2rem;
    border-width: 0.15em;
}
/* ================================================
   1. BASE INPUT / TEXTAREA / SELECT STYLES
   ================================================ */
.snol-input,
.snol-select,
.snol-textarea {
    width: 100%;
    height: 37px;
    padding: 7px 14px;
    border-radius: 6px;
    border: 1px solid #dcdcdc;
    font-size: 0.875rem;
    color: #333;
    background-color: #fff;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    box-sizing: border-box;
}

.snol-textarea {
    height: auto;
    resize: vertical;
}

.snol-input:focus,
.snol-select:focus,
.snol-textarea:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 2px rgba(78, 115, 223, 0.15);
    outline: none;
}

.snol-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: #555;
}

.snol-group {
    margin-bottom: 1rem;
}



.snol-btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.snol-btn-primary:hover {
    background: var(--primary-600);
}
/* */
.btn-primary,
.snol-btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}
.snol-btn-ghost {
    background: #fff;
    border-color: var(--muted-color);
    color: var(--text-color);
}

.snol-btn-ghost:hover {
    background: var(--muted-light);
}
/* ── Pagination ── */
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0px;
    flex-wrap: wrap;
    gap: 10px;
}

.pagination-info {
    font-size: 14px;
    color: #6b7280;
}

.snol-pagination {
    display: flex;
    gap: 3px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.snol-pagination .page-item .page-link {
    width: 29px;
    height: 29px;
    border-radius: 30px;
    border: 1px solid #e8eaf0;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    font-family: "DM Sans", sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.12s;
    padding: 0;
}

.snol-pagination .page-item .page-link:hover {
    border-color: #d0d4e0;
    color: #1a1d2e;
}

.snol-pagination .page-item.disabled .page-link {
    opacity: 0.4;
    pointer-events: none;
}

.snol-pagination .page-item .page-link .material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-size: 14px;
}

/* ── Main Card ── */
.main-card {
    background: #fff;
    border: 1px solid #e8eaf0;
    border-radius: 14px;
    overflow: hidden;
}

/* ── Toolbar ── */
.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    padding-top: 16px;
    
    
    border-bottom: 1px solid #e8eaf0;
    gap: 10px;
    flex-wrap: wrap;
}

.snol-search-wrap {
    width: 320px;
}

/* The unified group — single rounded box */
.snol-search-group {
    display: flex;
    align-items: center;
    height: 37px;
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    overflow: hidden; /* clips button corners */
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

/* Focus ring on the whole group when input is focused */
.snol-search-group:focus-within {
    border-color: #4e73df;
    box-shadow: 0 0 0 2px rgba(78, 115, 223, 0.15);
}
/* Text input — fills all remaining space */
.snol-search-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: none;
    background: transparent;
    font-size: 13px;
    font-family: "DM Sans", sans-serif;
    color: #1a1d2e;
    outline: none;
    padding: 10px;
}

.snol-search-input::placeholder {
    color: #adb5bd;
}

/* Clear (×) button — inside the group, before submit */
.snol-search-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    margin-right: 6px;
    flex-shrink: 0;
    transition:
        background 0.15s,
        color 0.15s;
}

.snol-search-clear:hover {
    background: #fee2e2;
    color: #e11d48;
}

.snol-search-clear .material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-size: 14px;
}

/* Submit button — flush right, fills full height */
.snol-search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 100%; /* KEY: fills the group height exactly */
    flex-shrink: 0;
    border: none;
    border-left: 1px solid #dcdcdc;
    background: var(--primary-color);
    color: #fff;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s;
}

.snol-search-submit:hover {
    background: var(--primary-500);
}

.snol-search-submit .material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-size: 17px;
}
.filter-chips {
    display: flex;
    gap: 6px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border: 1px solid #e8eaf0;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.12s;
    background: #fff;
    text-decoration: none;
}

.filter-chip:hover,
.filter-chip.active {
    border-color: #4f46e5;
    color: #4f46e5;
    background: #eef2ff;
}

/* ── Table ── */
.snol-table {
    width: 100%;
    border-collapse: collapse;
    
}

/* ── Table ── */
.snol-table {
    width: 100%;
    border-collapse: collapse;
}

/* ── Action Buttons ── */
.action-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.icon-btn {
    width: 29px;
    height: 29px;
    border-radius: 6px;
    border: 1px solid #e8eaf0;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.12s;
    color: #6b7280;
    padding: 0;
}

.icon-btn:hover {
    border-color: #d0d4e0;
    color: #1a1d2e;
    background: #f4f5f8;
}

.icon-btn.edit-btn:hover {
    border-color: #93c5fd;
    color: #2563eb;
    background: #eff6ff;
}

.icon-btn.delete-btn:hover {
    border-color: #fca5a5;
    color: #dc2626;
    background: #fff1f2;
}

.icon-btn i {
    font-size: 14px;
}

.snol-table thead th {
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background: #e7e7e7;

    border-bottom: 1px solid #e8eaf0;
    white-space: nowrap;
    text-align: left;
}

.snol-table thead th.text-center {
    text-align: center;
}
.snol-table thead th.text-end {
    text-align: right;
}

.snol-table tbody tr {
    border-bottom: 1px solid #e8eaf0;
    transition: background 0.1s;
}

.snol-table tbody tr:last-child {
    border-bottom: none;
}
.snol-table tbody tr:hover {
    background: #fafbfd;
}

.snol-table td {
    padding: 11px 14px;
    font-size: 13px;
    vertical-align: middle;
}

.snol-table td.text-center {
    text-align: center;
}
.snol-table td.text-end {
    text-align: right;
}

.row-index {
    font-size: 12px;
    color: #6b7280;
}

/* ── Page Layout ── */
.products-page {
    font-family: "DM Sans", sans-serif;
    padding: 10px 24px;
}

/* .page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    gap: 12px;
    flex-wrap: wrap;
} */
/* ── Product Cell ── */
/* .product-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
} */

/* .product-thumb {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid #e8eaf0;
    object-fit: cover;
    background: #f4f5f8;
    flex-shrink: 0;
}

.product-name {
    font-weight: 500;
    font-size: 13px;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #1a1d2e;
} */

/* .product-sku {
    font-size: 11px;
    color: #6b7280;
    font-family: "JetBrains Mono", monospace;
    margin-top: 1px;
} */

.snol-pagination .page-item .page-link {
    width: 29px;
    height: 29px;
    border-radius: 6px;
    border: 1px solid #e8eaf0;
    background: #fff;
    font-size: 12px;
    font-weight: 500;
    font-family: "DM Sans", sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.12s;
    padding: 0;
}

.snol-pagination .page-item .page-link:hover {
    border-color: #d0d4e0;
    color: #1a1d2e;
}

.snol-pagination .page-item.disabled .page-link {
    opacity: 0.4;
    pointer-events: none;
}

.snol-pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.snol-pagination .page-item .page-link .material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-size: 14px;
}

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #6b7280;
    font-size: 13px;
}

/* ── Offcanvas Overrides ── */
.offcanvas-title {
    font-size: 15px;
    font-weight: 600;
    font-family: "DM Sans", sans-serif;
}

/* SweetAlert2 Custom Styles */
.snol-swal-popup.swal2-popup {
    font-family: "DM Sans", sans-serif;
    border-radius: 16px;
    padding: 32px 28px 24px;
    width: 380px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}
.snol-swal-popup .swal2-icon.swal2-warning {
    border-color: #fecdd3;
    color: #e11d48;
    background: #fff1f2;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
}
.snol-swal-popup .swal2-icon.swal2-warning .swal2-icon-content {
    font-size: 2rem;
    color: #e11d48;
}
.snol-swal-popup .swal2-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1d2e;
    letter-spacing: -0.3px;
    margin-bottom: 8px;
}
.snol-swal-popup .swal2-html-container {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
}
.snol-swal-popup .swal-item-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 10px;
}
.snol-swal-popup .swal2-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
    width: 100%;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}
.snol-swal-popup .swal2-cancel {
    font-size: 13px !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    padding: 10px 16px !important;
    background: #f9fafb !important;
    color: #374151 !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: none !important;
    transition: all 0.15s !important;
}
.snol-swal-popup .swal2-cancel:hover {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
}
.snol-swal-popup .swal2-confirm {
    font-size: 13px !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    padding: 10px 16px !important;
    background: #e11d48 !important;
    color: #fff !important;
    border: 1px solid #e11d48 !important;
    box-shadow: none !important;
    transition: all 0.15s !important;
}
.snol-swal-popup .swal2-confirm:hover {
    background: #be123c !important;
    border-color: #be123c !important;
}
.swal2-backdrop-show {
    background: rgba(15, 15, 25, 0.45) !important;
    backdrop-filter: blur(2px);
}

.notification-item {
    transition: background-color 0.15s ease;
}
.notification-item:hover {
    background-color: rgba(0, 123, 255, 0.08) !important;
}
.notification-item.unread:hover {
    background-color: rgba(0, 123, 255, 0.12) !important;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hover-underline:hover {
    text-decoration: underline !important;
}
.hover-bg-light:hover {
    background-color: rgba(0, 0, 0, 0.04);
}
.bg-gradient-light {
    background: linear-gradient(180deg, #f8f9fa, #ffffff);
}
.shadow-xl {
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.img-container {
    max-height: 500px;
    min-height: 400px;
}
#cropperImage {
    max-width: 100%;
    display: block;
}
.img-preview {
    display: block;
    max-width: 100%;
}


/* Style css product Detials */

    :root {
        --pro-radius: 10px;
     
        --pro-primary: #0b2248;
        --pro-accent: #2563eb;
        --pro-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    }

    /* Professional Gallery Card */
    .pro-gallery-card {
        background: #ffffff;
        border: 1px solid rgba(0, 0, 0, 0.04);
        padding: 1.5rem;
        box-shadow: var(--pro-shadow);
        transition: transform 0.3s ease;
        margin-bottom: 1.5rem;
    }

    .main-stage {
        position: relative;
        width: 100%;
        aspect-ratio: 1;
        background: #f8fafc;
        overflow: hidden;
        border: 1px solid rgba(0, 0, 0, 0.03);
    }

    .main-stage img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 2.5rem;
        transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .main-stage:hover img {
        transform: scale(1.06);
    }

    .stage-overlay {
        position: absolute;
        bottom: 1rem;
        left: 1rem;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(10px);
        padding: 0.5rem 1rem;
        border-radius: 99px;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--pro-primary);
        border: 1px solid rgba(255, 255, 255, 0.4);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        z-index: 2;
    }

    .pro-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    .pro-thumb {
        position: relative;
        aspect-ratio: 1;
        border-radius: var(--pro-thumb-radius);
        overflow: hidden;
        cursor: pointer;
        background: #fff;
        border: 2px solid transparent;
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    }

    .pro-thumb:hover {
        transform: translateY(-4px);
        border-color: var(--pro-accent);
        box-shadow: 0 15px 30px -10px rgba(37, 99, 235, 0.25);
    }

    .pro-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .pro-thumb-overlay {
        position: absolute;
        inset: 0;
        background: rgba(11, 34, 72, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .pro-thumb:hover .pro-thumb-overlay {
        opacity: 1;
    }

    .status-pill {
        position: absolute;
        top: 0.5rem;
        left: 0.5rem;
        background: #0b2248;
        color: #fff;
        font-size: 0.6rem;
        font-weight: 800;
        padding: 0.2rem 0.5rem;
        border-radius: 4px;
        z-index: 1;
    }

    .primary-pill {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        background: var(--pro-accent);
        color: #fff;
        font-size: 0.6rem;
        font-weight: 800;
        padding: 0.2rem 0.5rem;
        border-radius: 4px;
        text-transform: uppercase;
        z-index: 1;
    }

    .pro-add-btn {
        aspect-ratio: 1;
        border-radius: var(--pro-thumb-radius);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: #f8fafc;
        border: 2px dashed #cbd5e1;
        color: #64748b;
        transition: all 0.3s ease;
        cursor: pointer;
        outline: none;
    }

    .pro-add-btn:hover {
        background: #fff;
        border-color: var(--pro-accent);
        color: var(--pro-accent);
        transform: translateY(-4px);
    }

    .pro-label {
        /* font-size: 0.65rem; */
        font-weight: 700;
        /* text-transform: uppercase; */
        /* letter-spacing: 1.2px; */
        color: #000000ff;
        margin-bottom: 0.75rem;
        display: block;
    }

    .pro-table-head {
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #64748b;
        padding: 1rem !important;
        vertical-align: middle;
        white-space: nowrap;
    }

    .pro-nav-tabs {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .pro-tab-item {
        margin-right: 2rem;
    }

    .pro-tab-link {
        padding: 1rem 0;
        font-size: 0.9rem;
        font-weight: 600;
        color: #94a3b8;
        border: none;
        background: none;
        display: flex;
        align-items: center;
        gap: 8px;
        position: relative;
        transition: all 0.2s ease;
        text-decoration: none;
    }

    .pro-tab-link:hover {
        color: var(--pro-primary);
    }

    .pro-tab-link.active {
        color: var(--pro-accent);
    }

    .pro-tab-link.active::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--pro-accent);
        border-radius: 99px;
    }

    .pro-info-block {
        background: #fbfbfd;
        border-radius: 12px;
        padding: 1.5rem;
        border: 1px solid rgba(0, 0, 0, 0.03);
        height: 100%;
    }

    .pro-info-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    }

    .pro-info-row:last-child {
        border-bottom: none;
    }

    .pro-info-label {
        font-size: 0.85rem;
        color: #64748b;
        font-weight: 500;
    }

    .pro-info-value {
        font-size: 0.85rem;
        color: var(--pro-primary);
        font-weight: 700;
    }

    .stat-card {
        background: #ffffff;
        border-radius: var(--pro-radius);
        border: 1px solid rgba(0, 0, 0, 0.04);
        padding: 1.5rem;
        display: flex;
        align-items: center;
        gap: 1.25rem;
        transition: transform 0.2s ease;
        box-shadow: var(--pro-shadow);
    }

    .stat-card:hover {
        transform: translateY(-2px);
    }

    .stat-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-pro .modal-content {
        border-radius: 20px;
        border: none;
        overflow: hidden;
    }

    .modal-pro .modal-header {
        padding: 1.5rem 2rem;
        background: #fff;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    }

/* ── Responsive Header Fix ── */
@media (max-width: 767.98px) {
    .snol-d-flex.snol-justify-content-between {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }
    
    .snol-d-flex.snol-align-items-center {
        width: 100%;
    }

    .search-container {
        max-width: 100% !important;
    }
}
