/* ============================================================
   JAGRUTI XEROX — base.css  (UI/UX Enhanced Edition)
   Same theme, same colors — refined spacing, typography,
   tables, pagination, cards, forms, responsive layout.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

/* ─────────────────────────────────────────
   CSS CUSTOM PROPERTIES (Design Tokens)
   ───────────────────────────────────────── */
:root {
    /* Brand Colors — unchanged */
    --jx-primary:          #1e40af;
    --jx-primary-dark:     #1e3a8a;
    --jx-primary-light:    #eff6ff;
    --jx-primary-glow:     rgba(30, 64, 175, 0.15);
    --jx-accent:           #06b6d4;
    --jx-accent-glow:      rgba(6, 182, 212, 0.3);
    --jx-success:          #10b981;
    --jx-danger:           #ef4444;
    --jx-warning:          #f59e0b;

    /* Neutrals */
    --jx-bg:               #f8fafc;
    --jx-surface:          #ffffff;
    --jx-border:           #e2e8f0;
    --jx-border-light:     #f1f5f9;
    --jx-text-heading:     #0f172a;
    --jx-text-body:        #475569;
    --jx-text-muted:       #94a3b8;

    /* Navbar */
    --jx-navbar-height:    58px;
    --jx-navbar-bg:        rgba(255, 255, 255, 0.97);

    /* Shared Radii */
    --jx-radius-sm:        8px;
    --jx-radius-md:        12px;
    --jx-radius-lg:        18px;
    --jx-radius-xl:        24px;

    /* Shadows */
    --jx-shadow-sm:        0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
    --jx-shadow-md:        0 4px 16px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.03);
    --jx-shadow-lg:        0 10px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --jx-shadow-primary:   0 8px 20px rgba(30, 64, 175, 0.22);

    /* Transitions */
    --jx-transition:       all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --jx-transition-fast:  all 0.14s ease;
    --jx-transition-slow:  all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─────────────────────────────────────────
   BASE RESET & TYPOGRAPHY
   ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--jx-bg);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--jx-text-body);
    font-size: 0.875rem;
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
}

/* Local Bootstrap utility fallbacks for offline/dev-server reliability. */
.d-flex { display: flex !important; }
.d-none { display: none !important; }
.align-items-center { align-items: center !important; }
.gap-2 { gap: 0.5rem !important; }
.m-0 { margin: 0 !important; }
.w-100 { width: 100% !important; }
.text-start { text-align: left !important; }
@media (min-width: 768px) {
    .d-md-inline { display: inline !important; }
}
@media (min-width: 992px) {
    .d-lg-flex { display: flex !important; }
}

h1, h2, h3, h4, h5, h6 {
    color: var(--jx-text-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0;
}

/* ─────────────────────────────────────────
   LOADER
   ───────────────────────────────────────── */
#loader-wrapper {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content { text-align: center; }

.loader-brand-container {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-ring {
    position: absolute;
    inset: 0;
    border: 3px solid var(--jx-border-light);
    border-top: 3px solid var(--jx-primary);
    border-radius: 50%;
    animation: jxSpin 0.72s linear infinite;
}

.loader-brand-container::after {
    content: '';
    position: absolute;
    inset: 8px;
    border: 2px solid transparent;
    border-bottom: 2px solid var(--jx-accent);
    border-radius: 50%;
    animation: jxSpin 1.1s linear infinite reverse;
}

.loader-icon-inner {
    position: relative;
    font-size: 2rem;
    color: var(--jx-primary);
    overflow: hidden;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.scanner-laser {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--jx-accent), transparent);
    box-shadow: 0 0 10px 2px var(--jx-accent-glow);
    animation: jxScanMove 1.3s ease-in-out infinite;
    z-index: 10;
}

.storefront-sign {
    font-weight: 900;
    font-size: 1.7rem;
    color: var(--jx-primary);
    letter-spacing: -0.5px;
    text-transform: uppercase;
    margin: 0;
}

.loader-subtext {
    font-size: 0.65rem;
    color: var(--jx-text-muted);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 8px;
    margin-bottom: 0;
}

/* ─────────────────────────────────────────
   BLUR CONTAINER
   ───────────────────────────────────────── */
.blur-container {
    transition: filter 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: filter;
    min-height: 100vh;
}

.content-blurred {
    filter: blur(14px) grayscale(25%);
    pointer-events: none;
    user-select: none;
}

/* ═════════════════════════════════════════
   TOP NAVIGATION BAR
   ═════════════════════════════════════════ */
.jx-navbar {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: var(--jx-navbar-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--jx-border);
    box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.jx-navbar-container {
    display: flex;
    align-items: center;
    height: var(--jx-navbar-height);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 12px;
}

/* ─── Brand ─── */
.jx-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 6px;
}

.jx-brand-icon {
    width: 33px;
    height: 33px;
    background: var(--jx-primary);
    color: white;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    box-shadow: 0 3px 8px var(--jx-primary-glow);
    transition: var(--jx-transition-fast);
}

.jx-brand:hover .jx-brand-icon {
    transform: scale(1.07);
    box-shadow: var(--jx-shadow-primary);
}

.jx-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.jx-brand-name {
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: -0.2px;
    color: var(--jx-text-heading);
    white-space: nowrap;
}

.jx-brand-badge {
    font-size: 0.54rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--jx-primary);
    background: var(--jx-primary-light);
    padding: 2px 5px;
    border-radius: 100px;
    margin-top: 4px;
    width: fit-content;
}

/* ─── Desktop Nav Links ─── */
.jx-nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.jx-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--jx-radius-md);
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--jx-text-body);
    text-decoration: none;
    transition: var(--jx-transition-fast);
    white-space: nowrap;
    position: relative;
}

.jx-nav-link i { font-size: 0.95rem; flex-shrink: 0; }

.jx-nav-link:hover {
    background: var(--jx-primary-light);
    color: var(--jx-primary);
}

.jx-nav-link.jx-active,
.jx-nav-link.active {
    background: var(--jx-primary-light);
    color: var(--jx-primary);
    font-weight: 700;
}

.jx-nav-link.jx-active::after,
.jx-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 8px;
    right: 8px;
    height: 2px;
    background: var(--jx-primary);
    border-radius: 2px 2px 0 0;
}

.jx-nav-sep {
    width: 1px;
    height: 18px;
    background: var(--jx-border);
    margin: 0 4px;
    flex-shrink: 0;
}

/* ─── Right Actions ─── */
.jx-navbar-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    flex-shrink: 0;
}

.jx-status-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 100px;
    font-size: 0.67rem;
    color: #047857;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.jx-status-dot {
    width: 6px;
    height: 6px;
    background: var(--jx-success);
    border-radius: 50%;
    animation: jxPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

.jx-user-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px 4px 4px;
    background: var(--jx-border-light);
    border: 1px solid var(--jx-border);
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--jx-text-heading);
    white-space: nowrap;
}

.jx-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    flex-shrink: 0;
}

/* Exit/Logout button */
.jx-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fee2e2;
    border-radius: var(--jx-radius-sm);
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    transition: var(--jx-transition-fast);
    white-space: nowrap;
    font-family: inherit;
}

.jx-logout-btn:hover {
    background: #e11d48;
    color: white;
    border-color: #e11d48;
    transform: translateY(-1px);
}

/* Action pill */
.jx-action-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 13px;
    background: var(--jx-surface);
    border: 1px solid var(--jx-border);
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.76rem;
    color: var(--jx-text-heading);
    cursor: pointer;
    transition: var(--jx-transition-fast);
    white-space: nowrap;
    font-family: inherit;
    text-decoration: none;
}

.jx-action-pill:hover {
    background: var(--jx-primary-light);
    color: var(--jx-primary);
    border-color: rgba(30,64,175,0.2);
}

.jx-action-pill--outline {
    background: transparent;
    color: var(--jx-primary);
    border-color: rgba(30,64,175,0.25);
}

.jx-action-pill--outline:hover {
    background: var(--jx-primary);
    color: white;
    border-color: var(--jx-primary);
}

.jx-admin-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--jx-primary);
    color: white;
    border-radius: var(--jx-radius-sm);
    font-weight: 700;
    font-size: 0.78rem;
    text-decoration: none;
    transition: var(--jx-transition-fast);
    box-shadow: 0 3px 10px var(--jx-primary-glow);
    white-space: nowrap;
}

.jx-admin-login-btn:hover {
    background: var(--jx-primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--jx-shadow-primary);
}

/* ─── Hamburger ─── */
.jx-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--jx-border-light);
    border: 1px solid var(--jx-border);
    border-radius: var(--jx-radius-sm);
    font-size: 1.1rem;
    color: var(--jx-text-body);
    cursor: pointer;
    transition: var(--jx-transition-fast);
    flex-shrink: 0;
}

.jx-hamburger:hover {
    background: var(--jx-primary-light);
    color: var(--jx-primary);
    border-color: rgba(30, 64, 175, 0.2);
}

.jx-ham-close { display: none; }
.jx-hamburger.open .jx-ham-open  { display: none; }
.jx-hamburger.open .jx-ham-close { display: block; }

/* ─── Mobile Dropdown ─── */
.jx-mobile-menu {
    display: none;
    border-top: 1px solid var(--jx-border);
    background: var(--jx-surface);
    overflow: hidden;
}

.jx-mobile-menu.open {
    display: block;
    animation: jxSlideDown 0.2s ease both;
}

.jx-mobile-menu-body {
    padding: 8px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.jx-mobile-section {
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--jx-text-muted);
    margin: 10px 0 3px 8px;
}

.jx-mobile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: var(--jx-radius-md);
    font-weight: 600;
    font-size: 0.86rem;
    color: var(--jx-text-body);
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: var(--jx-transition-fast);
    font-family: inherit;
}

.jx-mobile-link i { font-size: 1rem; flex-shrink: 0; }

.jx-mobile-link:hover {
    background: var(--jx-primary-light);
    color: var(--jx-primary);
}

.jx-mobile-link.jx-active,
.jx-mobile-link.active {
    background: var(--jx-primary-light);
    color: var(--jx-primary);
    font-weight: 700;
}

.jx-mobile-link--danger { color: #e11d48; }
.jx-mobile-link--danger:hover { background: #fff1f2; color: #e11d48; }

.jx-mobile-hr { height: 1px; background: var(--jx-border-light); margin: 6px 4px; }

/* ─────────────────────────────────────────
   PAGE LAYOUT
   ───────────────────────────────────────── */
.jx-main {
    flex: 1;
    min-width: 0;
    min-height: calc(100vh - var(--jx-navbar-height));
}

/* ─────────────────────────────────────────
   FLASH MESSAGES
   ───────────────────────────────────────── */
.jx-messages-container { padding: 14px 20px 0; }

.jx-alert {
    border: none;
    border-radius: var(--jx-radius-md);
    box-shadow: var(--jx-shadow-sm);
    font-weight: 600;
    font-size: 0.83rem;
    padding: 11px 15px;
}

/* ─────────────────────────────────────────
   PAGE HEADER
   ───────────────────────────────────────── */
.jx-page-title {
    font-weight: 800;
    font-size: 1.55rem;
    letter-spacing: -0.5px;
    color: var(--jx-text-heading);
    margin: 0;
}

.jx-page-subtitle {
    color: var(--jx-text-muted);
    font-size: 0.84rem;
    margin: 4px 0 0;
    font-weight: 500;
}

.jx-page-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 24px;
}

/* ─────────────────────────────────────────
   CARDS
   ───────────────────────────────────────── */
.jx-card {
    background: var(--jx-surface);
    border: 1px solid var(--jx-border);
    border-radius: var(--jx-radius-lg);
    box-shadow: var(--jx-shadow-sm);
    overflow: hidden;
}

.jx-card--elevated { box-shadow: var(--jx-shadow-md); }

/* Stat Cards */
.jx-stat-card {
    background: var(--jx-surface);
    border: 1px solid var(--jx-border-light);
    border-radius: var(--jx-radius-lg);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--jx-transition);
    box-shadow: var(--jx-shadow-sm);
}

.jx-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--jx-shadow-md);
    border-color: var(--jx-border);
}

.jx-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.jx-stat-icon--blue   { background: #eff6ff; color: #3b82f6; }
.jx-stat-icon--green  { background: #f0fdf4; color: #22c55e; }
.jx-stat-icon--purple { background: #faf5ff; color: #a855f7; }
.jx-stat-icon--orange { background: #fff7ed; color: #f97316; }
.jx-stat-icon--violet { background: #f5f3ff; color: #7c3aed; }

.jx-stat-value {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--jx-text-heading);
    line-height: 1;
}

.jx-stat-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--jx-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 3px;
}

/* ─────────────────────────────────────────
   INPUTS & FORMS
   ───────────────────────────────────────── */
.jx-input {
    border-radius: var(--jx-radius-md) !important;
    border: 1px solid var(--jx-border) !important;
    padding: 9px 14px !important;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--jx-text-heading);
    font-family: inherit;
    transition: var(--jx-transition-fast);
    background: var(--jx-surface);
}

.jx-input:focus {
    border-color: var(--jx-primary) !important;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.08) !important;
    outline: none;
}

.jx-label {
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--jx-text-muted);
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    display: block;
}

/* Bootstrap override: form-label */
.form-label {
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--jx-text-muted);
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

/* ─────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────── */
.jx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 20px;
    border-radius: var(--jx-radius-md);
    font-weight: 700;
    font-size: 0.83rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--jx-transition-fast);
    font-family: inherit;
    white-space: nowrap;
}

.jx-btn--primary {
    background: var(--jx-primary);
    color: white;
    box-shadow: 0 3px 10px var(--jx-primary-glow);
}

.jx-btn--primary:hover {
    background: var(--jx-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--jx-shadow-primary);
    color: white;
}

.jx-btn--secondary {
    background: var(--jx-border-light);
    color: var(--jx-text-heading);
    border: 1px solid var(--jx-border);
}

.jx-btn--secondary:hover {
    background: var(--jx-border);
    color: var(--jx-text-heading);
}

.jx-btn--danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fee2e2;
}

.jx-btn--danger:hover { background: #dc2626; color: white; }

.jx-btn--sm { padding: 5px 12px; font-size: 0.76rem; }

/* ─────────────────────────────────────────
   TABLES — Modern sticky-header design
   ───────────────────────────────────────── */
.jx-table-card {
    background: var(--jx-surface);
    border-radius: var(--jx-radius-lg);
    overflow: hidden;
    box-shadow: var(--jx-shadow-md);
    border: 1px solid var(--jx-border-light);
}

.jx-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.jx-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.jx-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

.jx-table thead th {
    background: var(--jx-bg);
    font-size: 0.63rem;
    font-weight: 800;
    color: var(--jx-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--jx-border);
    white-space: nowrap;
}

.jx-table tbody tr {
    border-bottom: 1px solid var(--jx-border-light);
    transition: background 0.12s ease;
}

.jx-table tbody tr:last-child { border-bottom: none; }

.jx-table tbody tr:hover {
    background: var(--jx-primary-light);
}

.jx-table tbody td {
    padding: 11px 16px;
    vertical-align: middle;
}

/* Zebra striping */
.jx-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.jx-table tbody tr:nth-child(even):hover {
    background: var(--jx-primary-light);
}

/* ─────────────────────────────────────────
   PAGINATION — Modern compact design
   ───────────────────────────────────────── */
.jx-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px;
    flex-wrap: wrap;
}

.jx-pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: var(--jx-radius-sm) !important;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--jx-text-body);
    background: var(--jx-surface);
    border: 1px solid var(--jx-border);
    transition: var(--jx-transition-fast);
    text-decoration: none;
    line-height: 1;
}

.jx-pagination .page-item .page-link:hover {
    background: var(--jx-primary-light);
    color: var(--jx-primary);
    border-color: rgba(30,64,175,0.2);
    transform: translateY(-1px);
}

.jx-pagination .page-item.active .page-link {
    background: var(--jx-primary);
    color: white;
    border-color: var(--jx-primary);
    box-shadow: 0 3px 8px var(--jx-primary-glow);
}

.jx-pagination .page-item.disabled .page-link {
    color: var(--jx-text-muted);
    background: var(--jx-border-light);
    border-color: var(--jx-border-light);
    cursor: not-allowed;
    transform: none;
}

/* ─────────────────────────────────────────
   BADGES & STATUS CHIPS
   ───────────────────────────────────────── */
.jx-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.jx-badge--success  { background: #d1fae5; color: #047857; }
.jx-badge--warning  { background: #fef3c7; color: #b45309; }
.jx-badge--danger   { background: #fee2e2; color: #be123c; }
.jx-badge--info     { background: #dbeafe; color: #1d4ed8; }
.jx-badge--neutral  { background: #f1f5f9; color: #475569; }
.jx-badge--primary  { background: var(--jx-primary-light); color: var(--jx-primary); }

/* ─────────────────────────────────────────
   GLASS CHIP
   ───────────────────────────────────────── */
.jx-glass-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 13px;
    background: var(--jx-surface);
    border: 1px solid var(--jx-border);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--jx-text-heading);
    box-shadow: var(--jx-shadow-sm);
}

/* ─────────────────────────────────────────
   PROGRESS
   ───────────────────────────────────────── */
.jx-progress {
    height: 6px;
    border-radius: 100px;
    background: var(--jx-border-light);
    overflow: hidden;
}

.jx-progress-bar {
    height: 100%;
    background: var(--jx-primary);
    border-radius: 100px;
    transition: width 0.5s ease;
}

/* ─────────────────────────────────────────
   EMPTY STATE
   ───────────────────────────────────────── */
.jx-empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--jx-text-muted);
}

.jx-empty-state i {
    font-size: 2.8rem;
    margin-bottom: 12px;
    display: block;
    opacity: 0.4;
}

.jx-empty-state p {
    font-size: 0.88rem;
    font-weight: 600;
    margin: 0;
}

/* ─────────────────────────────────────────
   ANIMATIONS
   ───────────────────────────────────────── */
@keyframes jxSpin    { 100% { transform: rotate(360deg); } }
@keyframes jxScanMove {
    0%   { top: -5%; opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { top: 105%; opacity: 0; }
}
@keyframes jxPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.4); opacity: 0.7; }
}
@keyframes jxSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes jxFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes jxSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.jx-animate-up   { animation: jxSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
.jx-animate-fade { animation: jxFadeIn 0.45s ease both; }

.jx-stagger > *:nth-child(1) { animation-delay: 0.04s; }
.jx-stagger > *:nth-child(2) { animation-delay: 0.08s; }
.jx-stagger > *:nth-child(3) { animation-delay: 0.12s; }
.jx-stagger > *:nth-child(4) { animation-delay: 0.16s; }
.jx-stagger > *:nth-child(5) { animation-delay: 0.20s; }

/* ─────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────── */
@media (max-width: 768px) {
    .jx-nav-links  { display: none; }
    .jx-hamburger  { display: flex; }
    .jx-navbar-container { padding: 0 14px; }
    .jx-messages-container { padding: 10px 14px 0; }
    .jx-page-title { font-size: 1.3rem; }
    .jx-pagination .page-item .page-link { min-width: 32px; height: 32px; font-size: 0.76rem; }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .jx-nav-link span { display: none; }
    .jx-nav-link { padding: 6px 8px; }
    .jx-nav-sep { margin: 0 2px; }
}

@media (min-width: 1440px) {
    .jx-navbar-container { padding: 0 36px; }
}

/* ─────────────────────────────────────────
   UTILITY CLASSES
   ───────────────────────────────────────── */
.text-xs   { font-size: 0.65rem !important; }
.text-sm   { font-size: 0.78rem !important; }
.fw-700    { font-weight: 700 !important; }
.fw-800    { font-weight: 800 !important; }
.fw-900    { font-weight: 900 !important; }
.ls-tight  { letter-spacing: -0.5px; }
.ls-wide   { letter-spacing: 1px; }
.rounded-jx { border-radius: var(--jx-radius-lg) !important; }

/* ─────────────────────────────────────────
   BACKWARD COMPAT — sidebar no-ops preserved
   ───────────────────────────────────────── */
.jx-sidebar, .jx-sidebar-inner, .jx-sidebar-brand, .jx-sidebar-brand-link,
.jx-sidebar-brand-icon, .jx-sidebar-brand-text, .jx-sidebar-brand-name,
.jx-sidebar-brand-badge, .jx-sidebar-nav, .jx-sidebar-link,
.jx-sidebar-link-icon, .jx-sidebar-link-label, .jx-sidebar-link-indicator,
.jx-sidebar-section-label, .jx-sidebar-divider, .jx-sidebar-bottom,
.jx-sidebar-user, .jx-sidebar-user-avatar, .jx-sidebar-user-info,
.jx-sidebar-user-name, .jx-sidebar-user-role, .jx-sidebar-logout,
.jx-sidebar-overlay, .jx-content-shell, .jx-topbar, .jx-topbar-inner,
.jx-topbar-toggle, .jx-topbar-title, .jx-topbar-actions,
.jx-topbar-avatar, .jx-topbar-user-name, .jx-topbar-logout-btn,
.jx-topbar-action-pill, .jx-app-shell { /* no-op */ }
