/* ==========================================================================
   NEPAL RECHARGE - UNIVERSAL DARK & LIGHT THEME ENGINE
   ========================================================================== */

/* Smooth color transitions when toggling themes */
html, body, aside, nav, header, main, div, table, tr, td, th, input, select, textarea, button {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* --------------------------------------------------------------------------
   LIGHT THEME OVERRIDES (Triggered by html[data-theme="light"])
   -------------------------------------------------------------------------- */
html[data-theme="light"] {
    color-scheme: light;
}

/* Backgrounds */
html[data-theme="light"] body {
    background-color: #f8fafc !important; /* slate-50 */
    color: #0f172a !important;            /* slate-900 */
}

html[data-theme="light"] .bg-slate-950 {
    background-color: #f8fafc !important;
}

html[data-theme="light"] aside,
html[data-theme="light"] .bg-slate-900,
html[data-theme="light"] .bg-slate-900\/40,
html[data-theme="light"] .bg-slate-900\/50,
html[data-theme="light"] .bg-slate-900\/60,
html[data-theme="light"] .bg-slate-900\/70,
html[data-theme="light"] .bg-slate-900\/80,
html[data-theme="light"] .bg-slate-900\/90,
html[data-theme="light"] .bg-slate-900\/95 {
    background-color: #ffffff !important;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.05);
}

/* Preserve intentional brand gradients (brand, cyan, indigo, etc.) and buttons in Light Mode */
/* Neutralize dark slate container backgrounds (cards, hero sections) to clean white cards so dark text remains 100% readable */
html[data-theme="light"] div[class*="from-slate-"]:not(button):not(.btn):not(.preserve-dark-gradient):not(.banner-radiant-gradient),
html[data-theme="light"] section[class*="from-slate-"]:not(button):not(.btn):not(.preserve-dark-gradient):not(.banner-radiant-gradient),
html[data-theme="light"] div[class*="from-emerald-950"]:not(button):not(.btn):not(.preserve-dark-gradient),
html[data-theme="light"] div[class*="from-purple-950"]:not(button):not(.btn):not(.preserve-dark-gradient),
html[data-theme="light"] div[class*="from-cyan-950"]:not(button):not(.btn):not(.preserve-dark-gradient),
html[data-theme="light"] div[class*="from-amber-950"]:not(button):not(.btn):not(.preserve-dark-gradient),
html[data-theme="light"] div[class*="from-indigo-950"]:not(button):not(.btn):not(.preserve-dark-gradient),
html[data-theme="light"] div[class*="from-blue-950"]:not(button):not(.btn):not(.preserve-dark-gradient),
html[data-theme="light"] div[class*="from-violet-950"]:not(button):not(.btn):not(.preserve-dark-gradient),
html[data-theme="light"] div[class*="from-rose-950"]:not(button):not(.btn):not(.preserve-dark-gradient),
html[data-theme="light"] div[class*="from-teal-950"]:not(button):not(.btn):not(.preserve-dark-gradient),
html[data-theme="light"] div[class*="from-sky-950"]:not(button):not(.btn):not(.preserve-dark-gradient),
html[data-theme="light"] div[class*="from-fuchsia-950"]:not(button):not(.btn):not(.preserve-dark-gradient) {
    background-image: none !important;
    background-color: #ffffff !important;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.05);
}

/* Radiant Violet-Magenta-Pink Gradient Banner */
.banner-radiant-gradient {
    background: linear-gradient(135deg, #7028e4 0%, #9333ea 30%, #d946ef 65%, #db2777 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 12px 30px -5px rgba(217, 70, 239, 0.35) !important;
}
html[data-theme="light"] .banner-radiant-gradient {
    background: linear-gradient(135deg, #7028e4 0%, #9333ea 30%, #d946ef 65%, #db2777 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 12px 32px -5px rgba(217, 70, 239, 0.4) !important;
}
html[data-theme="light"] .banner-radiant-gradient h2,
html[data-theme="light"] .banner-radiant-gradient h2 *,
html[data-theme="light"] .banner-radiant-gradient .text-white-force,
html[data-theme="light"] .banner-radiant-gradient .text-white-force * {
    color: #ffffff !important;
}
html[data-theme="light"] .banner-radiant-gradient .text-subtle {
    color: rgba(255, 255, 255, 0.88) !important;
}
html[data-theme="light"] .banner-radiant-gradient .text-emerald-float {
    color: #a7f3d0 !important;
}
html[data-theme="light"] .banner-radiant-gradient .btn-profile-white {
    background-color: #ffffff !important;
    color: #7028e4 !important;
}
html[data-theme="light"] .banner-radiant-gradient .btn-profile-white * {
    color: #7028e4 !important;
}

/* ==========================================================================
   PENDING RECHARGE TRANSACTIONS QUICK ACTION BANNER
   ========================================================================== */
.pending-transactions-banner {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(15, 23, 42, 0.95) 45%, #0f172a 100%) !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.6), 0 0 25px -4px rgba(245, 158, 11, 0.15) !important;
}

.pending-transactions-banner h4,
.pending-transactions-banner h4 span {
    color: #ffffff !important;
}

.pending-transactions-banner p {
    color: #94a3b8 !important; /* slate-400 */
}

.pending-transactions-banner .pending-badge {
    background-color: rgba(245, 158, 11, 0.2) !important;
    border: 1px solid rgba(245, 158, 11, 0.45) !important;
    color: #fcd34d !important; /* amber-300 */
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.12) !important;
}

.pending-transactions-banner .pending-icon-box {
    background-color: rgba(245, 158, 11, 0.16) !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
    color: #fbbf24 !important; /* amber-400 */
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.18) !important;
}

.pending-transactions-banner .btn-pending-sync {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35) !important;
    border: 1px solid rgba(251, 191, 36, 0.4) !important;
    outline: none !important;
}

.pending-transactions-banner .btn-pending-sync:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    box-shadow: 0 6px 22px rgba(245, 158, 11, 0.5) !important;
    transform: translateY(-1px);
}

.pending-transactions-banner .btn-pending-sync * {
    color: #ffffff !important;
}

/* Light Theme Styling for Pending Banner (No murky brown, no pitch black split) */
html[data-theme="light"] .pending-transactions-banner {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 45%, #fffdf5 100%) !important;
    border: 1px solid #fcd34d !important;
    box-shadow: 0 6px 20px -3px rgba(245, 158, 11, 0.18), 0 2px 8px 0 rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .pending-transactions-banner h4,
html[data-theme="light"] .pending-transactions-banner h4 span {
    color: #78350f !important; /* amber-900 */
}

html[data-theme="light"] .pending-transactions-banner p {
    color: #92400e !important; /* amber-800 */
}

html[data-theme="light"] .pending-transactions-banner .pending-badge {
    background-color: #fef08a !important; /* amber-200 */
    border: 1px solid #f59e0b !important;
    color: #78350f !important; /* amber-900 */
    box-shadow: 0 1px 3px rgba(180, 83, 9, 0.15) !important;
}

html[data-theme="light"] .pending-transactions-banner .pending-icon-box {
    background-color: #fef3c7 !important; /* amber-100 */
    border: 1px solid #fcd34d !important; /* amber-300 */
    color: #d97706 !important;            /* amber-600 */
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.16) !important;
}

html[data-theme="light"] .pending-transactions-banner .btn-pending-sync {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35) !important;
    border: 1px solid #d97706 !important;
    outline: none !important;
}

html[data-theme="light"] .pending-transactions-banner .btn-pending-sync:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45) !important;
    transform: translateY(-1px);
}

html[data-theme="light"] .pending-transactions-banner .btn-pending-sync * {
    color: #ffffff !important;
}

html[data-theme="light"] .bg-slate-950,
html[data-theme="light"] .bg-slate-950\/30,
html[data-theme="light"] .bg-slate-950\/40,
html[data-theme="light"] .bg-slate-950\/50,
html[data-theme="light"] .bg-slate-950\/60,
html[data-theme="light"] .bg-slate-950\/70,
html[data-theme="light"] .bg-slate-950\/80,
html[data-theme="light"] .bg-slate-950\/90,
html[data-theme="light"] .bg-slate-950\/95 {
    background-color: #f8fafc !important; /* slate-50 */
}

html[data-theme="light"] .bg-slate-800,
html[data-theme="light"] .bg-slate-800\/30,
html[data-theme="light"] .bg-slate-800\/40,
html[data-theme="light"] .bg-slate-800\/50,
html[data-theme="light"] .bg-slate-800\/60,
html[data-theme="light"] .bg-slate-800\/70,
html[data-theme="light"] .bg-slate-800\/80,
html[data-theme="light"] .bg-slate-800\/90 {
    background-color: #f1f5f9 !important; /* slate-100 */
}

html[data-theme="light"] .hover\:bg-slate-800:hover,
html[data-theme="light"] .hover\:bg-slate-800\/40:hover,
html[data-theme="light"] .hover\:bg-slate-800\/60:hover,
html[data-theme="light"] .hover\:bg-slate-700:hover {
    background-color: #e2e8f0 !important; /* slate-200 */
}

/* Borders */
html[data-theme="light"] .border-slate-800,
html[data-theme="light"] .border-slate-800\/60,
html[data-theme="light"] .border-slate-800\/80,
html[data-theme="light"] .border-slate-800\/90,
html[data-theme="light"] .border-slate-700,
html[data-theme="light"] .border-slate-700\/60,
html[data-theme="light"] .border-slate-700\/80,
html[data-theme="light"] .divide-slate-800,
html[data-theme="light"] .divide-slate-800\/60 {
    border-color: #e2e8f0 !important; /* slate-200 */
}

/* Text Typography */
html[data-theme="light"] .text-white:not(.keep-white):not([class*="bg-brand"]):not([class*="bg-cyan"]):not([class*="bg-indigo"]):not([class*="bg-emerald"]):not([class*="bg-rose"]):not([class*="bg-amber"]):not([class*="from-"]):not([class*="via-"]):not([class*="to-"]):not(button):not(.btn) {
    color: #0f172a !important; /* slate-900 */
}

/* Explicitly protect white text on buttons, badges, gradients, and dark accent cards in Light Mode */
html[data-theme="light"] .keep-white,
html[data-theme="light"] .text-white-force,
html[data-theme="light"] #vendor-sidebar-nav a[data-active="true"][class*="bg-brand"],
html[data-theme="light"] #vendor-sidebar-nav a[data-active="true"][class*="bg-brand"] *,
html[data-theme="light"] #admin-sidebar-nav a[data-active="true"][class*="bg-brand"],
html[data-theme="light"] #admin-sidebar-nav a[data-active="true"][class*="bg-brand"] *,
html[data-theme="light"] #admin-sidebar-nav a[data-active="true"][class*="bg-purple"],
html[data-theme="light"] #admin-sidebar-nav a[data-active="true"][class*="bg-purple"] *,
html[data-theme="light"] .btn-quick-topup,
html[data-theme="light"] .btn-quick-topup *,
html[data-theme="light"] button[class*="bg-brand"]:not([class*="/"]),
html[data-theme="light"] button[class*="bg-cyan-600"],
html[data-theme="light"] button[class*="bg-cyan-700"],
html[data-theme="light"] button[class*="bg-rose-600"],
html[data-theme="light"] button[class*="bg-indigo-600"],
html[data-theme="light"] button[class*="from-"],
html[data-theme="light"] a[class*="bg-brand"]:not([class*="/"]),
html[data-theme="light"] a[class*="bg-cyan-600"],
html[data-theme="light"] a[class*="bg-cyan-700"],
html[data-theme="light"] a[class*="from-"],
html[data-theme="light"] [class*="bg-brand-600"] *,
html[data-theme="light"] [class*="bg-brand-600"],
html[data-theme="light"] [class*="bg-cyan-600"] *,
html[data-theme="light"] [class*="bg-cyan-600"],
html[data-theme="light"] [class*="from-brand-"] *,
html[data-theme="light"] [class*="from-cyan-"] *,
html[data-theme="light"] [class*="from-indigo-"] *,
html[data-theme="light"] [class*="bg-gradient-to-"] .text-white,
html[data-theme="light"] [class*="bg-gradient-to-"] h1.text-white,
html[data-theme="light"] [class*="bg-gradient-to-"] h2.text-white,
html[data-theme="light"] .hero-banner-dark *,
html[data-theme="light"] .hero-banner-dark {
    color: #ffffff !important;
}

/* Tinted / pastel buttons with opacity in Light Mode must have deep crisp text, NEVER washed-out white */
html[data-theme="light"] button[class*="bg-cyan-500/"],
html[data-theme="light"] a[class*="bg-cyan-500/"],
html[data-theme="light"] button[class*="bg-cyan-500/"] *,
html[data-theme="light"] a[class*="bg-cyan-500/"] * {
    color: #0369a1 !important; /* sky-700 */
}
html[data-theme="light"] button[class*="bg-amber-500/"],
html[data-theme="light"] button[class*="bg-amber-500/"] * {
    color: #b45309 !important; /* amber-700 */
}
html[data-theme="light"] button[class*="bg-emerald-500/"],
html[data-theme="light"] button[class*="bg-emerald-500/"] * {
    color: #047857 !important; /* emerald-700 */
}
html[data-theme="light"] button[class*="bg-rose-500/"],
html[data-theme="light"] button[class*="bg-rose-500/"] * {
    color: #be123c !important; /* rose-700 */
}

/* Active Sidebar Sub-items with tinted backgrounds (Ensure dark crisp text, NOT white-on-pastel) */
html[data-theme="light"] #admin-sidebar-nav a[data-active="true"][class*="bg-rose-"],
html[data-theme="light"] #admin-sidebar-nav a[data-active="true"][class*="bg-rose-"] * {
    background-color: #ffe4e6 !important;
    border-color: #fda4af !important;
    color: #9f1239 !important;
    font-weight: 700 !important;
}
html[data-theme="light"] #admin-sidebar-nav a[data-active="true"][class*="bg-amber-"],
html[data-theme="light"] #admin-sidebar-nav a[data-active="true"][class*="bg-amber-"] * {
    background-color: #fef3c7 !important;
    border-color: #fde68a !important;
    color: #92400e !important;
    font-weight: 700 !important;
}
html[data-theme="light"] #admin-sidebar-nav a[data-active="true"][class*="bg-emerald-"],
html[data-theme="light"] #admin-sidebar-nav a[data-active="true"][class*="bg-emerald-"] * {
    background-color: #d1fae5 !important;
    border-color: #a7f3d0 !important;
    color: #065f46 !important;
    font-weight: 700 !important;
}
html[data-theme="light"] #admin-sidebar-nav a[data-active="true"][class*="bg-cyan-"],
html[data-theme="light"] #admin-sidebar-nav a[data-active="true"][class*="bg-cyan-"] * {
    background-color: #cffafe !important;
    border-color: #a5f3fc !important;
    color: #155e75 !important;
    font-weight: 700 !important;
}
html[data-theme="light"] #admin-sidebar-nav a[data-active="true"][class*="bg-purple-"],
html[data-theme="light"] #admin-sidebar-nav a[data-active="true"][class*="bg-purple-"] * {
    background-color: #f3e8ff !important;
    border-color: #e9d5ff !important;
    color: #6b21a8 !important;
    font-weight: 700 !important;
}
html[data-theme="light"] #admin-sidebar-nav a[data-active="true"][class*="bg-orange-"],
html[data-theme="light"] #admin-sidebar-nav a[data-active="true"][class*="bg-orange-"] * {
    background-color: #ffedd5 !important;
    border-color: #fed7aa !important;
    color: #9a3412 !important;
    font-weight: 700 !important;
}

html[data-theme="light"] [class*="text-slate-100"],
html[data-theme="light"] [class*="text-slate-200"],
html[data-theme="light"] [class*="text-gray-100"],
html[data-theme="light"] [class*="text-gray-200"] {
    color: #1e293b !important; /* slate-800 */
}

html[data-theme="light"] [class*="text-slate-300"]:not(.keep-white):not(.hero-banner-dark *):not(pre):not(pre *):not(.code-box):not(.code-box *):not(.force-dark-terminal):not(.force-dark-terminal *),
html[data-theme="light"] [class*="text-slate-400"]:not(.keep-white):not(.hero-banner-dark *):not(pre):not(pre *):not(.code-box):not(.code-box *):not(.force-dark-terminal):not(.force-dark-terminal *),
html[data-theme="light"] [class*="text-gray-300"]:not(.keep-white):not(.hero-banner-dark *):not(pre):not(pre *):not(.code-box):not(.code-box *):not(.force-dark-terminal):not(.force-dark-terminal *),
html[data-theme="light"] [class*="text-gray-400"]:not(.keep-white):not(.hero-banner-dark *):not(pre):not(pre *):not(.code-box):not(.code-box *):not(.force-dark-terminal):not(.force-dark-terminal *) {
    color: #334155 !important; /* slate-700 — deep readable slate */
}

html[data-theme="light"] [class*="text-slate-500"]:not(.keep-white):not(.hero-banner-dark *):not(pre):not(pre *):not(.code-box):not(.code-box *):not(.force-dark-terminal):not(.force-dark-terminal *),
html[data-theme="light"] [class*="text-gray-500"]:not(.keep-white):not(.hero-banner-dark *):not(pre):not(pre *):not(.code-box):not(.code-box *):not(.force-dark-terminal):not(.force-dark-terminal *) {
    color: #475569 !important; /* slate-600 — clear readable secondary text */
}

/* Tables */
html[data-theme="light"] table thead,
html[data-theme="light"] table thead tr {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border-bottom: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] table tbody tr {
    background-color: #ffffff;
}

html[data-theme="light"] table tbody tr:hover {
    background-color: #f8fafc !important;
}

/* Form Controls */
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
    color: #94a3b8 !important;
}

html[data-theme="light"] input:focus,
html[data-theme="light"] select:focus,
html[data-theme="light"] textarea:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2) !important;
}

/* Cards & Modals */
html[data-theme="light"] .modal-card,
html[data-theme="light"] [role="dialog"] > div > div,
html[data-theme="light"] #operator-modal > div,
html[data-theme="light"] #edit-operator-modal > div {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1) !important;
}

html[data-theme="light"] #operator-modal .bg-slate-900,
html[data-theme="light"] #edit-operator-modal .bg-slate-900 {
    background-color: #ffffff !important;
}

html[data-theme="light"] #operator-modal .bg-slate-950\/80,
html[data-theme="light"] #edit-operator-modal .bg-slate-950\/80 {
    background-color: #f8fafc !important;
}

/* Navigation items and collapsible accordion triggers in light mode */
html[data-theme="light"] aside button,
html[data-theme="light"] #admin-sidebar-nav button,
html[data-theme="light"] #vendor-sidebar-nav button,
html[data-theme="light"] button[class*="bg-slate-"],
html[data-theme="light"] button[class*="bg-slate-"] span {
    color: #0f172a !important;
}

html[data-theme="light"] aside button:hover,
html[data-theme="light"] #admin-sidebar-nav button:hover,
html[data-theme="light"] #vendor-sidebar-nav button:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

html[data-theme="light"] aside button i.fa-chevron-down,
html[data-theme="light"] #admin-sidebar-nav button i.fa-chevron-down,
html[data-theme="light"] #vendor-sidebar-nav button i.fa-chevron-down {
    color: #64748b !important;
}

html[data-theme="light"] #admin-sidebar-nav a:not([data-active="true"]),
html[data-theme="light"] #vendor-sidebar-nav a:not([data-active="true"]) {
    color: #1e293b !important; /* slate-800 — high contrast readable */
}

html[data-theme="light"] #admin-sidebar-nav a:not([data-active="true"]):hover,
html[data-theme="light"] #vendor-sidebar-nav a:not([data-active="true"]):hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}

/* Section heading labels (e.g. "VENDOR MANAGEMENT", "REPORTS & RISK AUDIT") */
html[data-theme="light"] #admin-sidebar-nav span[class*="text-slate-5"],
html[data-theme="light"] #vendor-sidebar-nav span[class*="text-slate-5"] {
    color: #64748b !important;
    font-weight: 700;
}

/* Clean & High-Contrast Code Syntax Blocks in Light Mode */
html[data-theme="light"] pre:not(.force-dark),
html[data-theme="light"] pre:not(.force-dark) *,
html[data-theme="light"] code.code-box,
html[data-theme="light"] .code-box {
    background-color: #f8fafc !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

/* Dedicated Developer Code Studio & Terminal Windows (Preserve dark terminal theme in Light Mode) */
html[data-theme="light"] .force-dark-terminal {
    background-color: #0b1120 !important;
    border-color: #1e293b !important;
}
html[data-theme="light"] .force-dark-terminal .terminal-header {
    background-color: #070a13 !important;
    border-color: #1e293b !important;
    color: #ffffff !important;
}
html[data-theme="light"] .force-dark-terminal .terminal-header span {
    color: #f1f5f9 !important;
}
html[data-theme="light"] .force-dark-terminal .terminal-secret-pill {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}
html[data-theme="light"] .force-dark-terminal .terminal-secret-pill span:first-of-type {
    color: #94a3b8 !important;
}
html[data-theme="light"] .force-dark-terminal .terminal-secret-pill span:last-of-type {
    color: #fcd34d !important;
}
html[data-theme="light"] .force-dark-terminal .terminal-copy-btn {
    background-color: #4f46e5 !important;
    color: #ffffff !important;
}
html[data-theme="light"] .force-dark-terminal pre.force-dark {
    background-color: #050811 !important;
    border-color: #1e293b !important;
    color: #f1f5f9 !important;
}
html[data-theme="light"] .force-dark-terminal .terminal-footer {
    background-color: #070a13 !important;
    border-color: #1e293b !important;
    color: #e2e8f0 !important;
}
html[data-theme="light"] .force-dark-terminal .terminal-footer span {
    color: #e2e8f0 !important;
}
html[data-theme="light"] .force-dark-terminal .terminal-footer strong {
    color: #ffffff !important;
}

/* Explicit Interactive Console Request & Response Display Rules */
#request-display {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    border: 1.5px solid #cbd5e1 !important;
}
html.dark #request-display,
html[data-theme="dark"] #request-display {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    border: 1.5px solid #334155 !important;
}

#response-display {
    background-color: #f0fdf4 !important;
    color: #14532d !important;
    border: 1.5px solid #bbf7d0 !important;
}
html.dark #response-display,
html[data-theme="dark"] #response-display {
    background-color: #052e16 !important;
    color: #4ade80 !important;
    border: 1.5px solid #166534 !important;
}

/* Direct Portal Verification & Notice Banners in Light Mode */
html[data-theme="light"] .bg-indigo-50 {
    background-color: #eef2ff !important;
    border-color: #c7d2fe !important;
}
html[data-theme="light"] .bg-indigo-50 span.font-bold,
html[data-theme="light"] .bg-indigo-50 .text-slate-900 {
    color: #1e1b4b !important; /* deep indigo 950 */
}
html[data-theme="light"] .bg-indigo-50 span,
html[data-theme="light"] .bg-indigo-50 .text-slate-600,
html[data-theme="light"] .bg-indigo-50 strong {
    color: #312e81 !important; /* deep indigo 900 */
}
html[data-theme="light"] .bg-indigo-50 i {
    color: #4f46e5 !important;
}

/* Accent Badges & High-Contrast Colors in Light Mode */
html[data-theme="light"] [class*="text-cyan-200"],
html[data-theme="light"] [class*="text-cyan-300"],
html[data-theme="light"] [class*="text-cyan-400"],
html[data-theme="light"] [class*="text-sky-200"],
html[data-theme="light"] [class*="text-sky-300"],
html[data-theme="light"] [class*="text-sky-400"],
html[data-theme="light"] #detected-local-tz {
    color: #0369a1 !important; /* sky-700 */
}

html[data-theme="light"] [class*="text-emerald-200"],
html[data-theme="light"] [class*="text-emerald-300"],
html[data-theme="light"] [class*="text-emerald-400"],
html[data-theme="light"] [class*="text-accent-emerald"] {
    color: #047857 !important; /* emerald-700 */
}

html[data-theme="light"] [class*="text-amber-200"],
html[data-theme="light"] [class*="text-amber-300"],
html[data-theme="light"] [class*="text-amber-400"],
html[data-theme="light"] [class*="text-accent-amber"] {
    color: #b45309 !important; /* amber-700 */
}

html[data-theme="light"] [class*="text-indigo-200"],
html[data-theme="light"] [class*="text-indigo-300"],
html[data-theme="light"] [class*="text-indigo-400"],
html[data-theme="light"] [class*="text-brand-300"],
html[data-theme="light"] [class*="text-brand-400"] {
    color: #4338ca !important; /* indigo-700 */
}

html[data-theme="light"] [class*="text-purple-200"],
html[data-theme="light"] [class*="text-purple-300"],
html[data-theme="light"] [class*="text-purple-400"] {
    color: #7e22ce !important; /* purple-700 */
}

html[data-theme="light"] [class*="text-violet-200"],
html[data-theme="light"] [class*="text-violet-300"],
html[data-theme="light"] [class*="text-violet-400"] {
    color: #6d28d9 !important; /* violet-700 */
}

html[data-theme="light"] [class*="text-rose-200"],
html[data-theme="light"] [class*="text-rose-300"],
html[data-theme="light"] [class*="text-rose-400"],
html[data-theme="light"] [class*="text-accent-rose"] {
    color: #be123c !important; /* rose-700 */
}

html[data-theme="light"] [class*="text-orange-200"],
html[data-theme="light"] [class*="text-orange-300"],
html[data-theme="light"] [class*="text-orange-400"] {
    color: #c2410c !important; /* orange-700 */
}

html[data-theme="light"] [class*="text-teal-200"],
html[data-theme="light"] [class*="text-teal-300"],
html[data-theme="light"] [class*="text-teal-400"] {
    color: #0f766e !important; /* teal-700 */
}

/* Crisp, clean badge tints in Light Mode (replaces washed out dark-950 tints) */
html[data-theme="light"] [class*="bg-emerald-500/"]:not(button):not(.btn),
html[data-theme="light"] [class*="bg-emerald-950/"]:not(button):not(.btn) {
    background-color: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
}

html[data-theme="light"] [class*="bg-rose-500/"]:not(button):not(.btn),
html[data-theme="light"] [class*="bg-rose-950/"]:not(button):not(.btn) {
    background-color: #fff1f2 !important;
    border-color: #fecdd3 !important;
}

html[data-theme="light"] [class*="bg-amber-500/"]:not(button):not(.btn),
html[data-theme="light"] [class*="bg-amber-950/"]:not(button):not(.btn) {
    background-color: #fffbeb !important;
    border-color: #fde68a !important;
}

html[data-theme="light"] [class*="bg-cyan-500/"]:not(button):not(.btn),
html[data-theme="light"] [class*="bg-cyan-950/"]:not(button):not(.btn) {
    background-color: #ecfeff !important;
    border-color: #a5f3fc !important;
}

html[data-theme="light"] [class*="bg-indigo-500/"]:not(button):not(.btn),
html[data-theme="light"] [class*="bg-indigo-950/"]:not(button):not(.btn),
html[data-theme="light"] [class*="bg-brand-500/"]:not(button):not(.btn) {
    background-color: #eef2ff !important;
    border-color: #c7d2fe !important;
}

html[data-theme="light"] [class*="bg-purple-500/"]:not(button):not(.btn),
html[data-theme="light"] [class*="bg-purple-950/"]:not(button):not(.btn),
html[data-theme="light"] [class*="bg-violet-500/"]:not(button):not(.btn) {
    background-color: #faf5ff !important;
    border-color: #e9d5ff !important;
}

/* Light Mode Tab Buttons (Active and Inactive) */
html[data-theme="light"] .tab-btn.border-brand-500,
html[data-theme="light"] .tab-btn[data-active="true"],
html[data-theme="light"] .tab-btn.font-bold:not(.border-transparent),
html[data-theme="light"] .modal-tab-btn.border-brand-500,
html[data-theme="light"] .modal-tab-btn[data-active="true"],
html[data-theme="light"] .modal-tab-btn.font-bold:not(.border-transparent) {
    color: #4f46e5 !important; /* Brand indigo */
    border-color: #4f46e5 !important;
}

html[data-theme="light"] .tab-btn.border-transparent,
html[data-theme="light"] .tab-btn:not([data-active="true"]):not(.border-brand-500),
html[data-theme="light"] .modal-tab-btn.border-transparent,
html[data-theme="light"] .modal-tab-btn:not([data-active="true"]):not(.border-brand-500) {
    color: #475569 !important; /* slate-600 */
}

html[data-theme="light"] .tab-btn.border-transparent:hover,
html[data-theme="light"] .tab-btn:not([data-active="true"]):hover,
html[data-theme="light"] .modal-tab-btn.border-transparent:hover,
html[data-theme="light"] .modal-tab-btn:not([data-active="true"]):hover {
    color: #0f172a !important; /* slate-900 */
    border-color: #cbd5e1 !important;
}

/* Paypoint Operation Step Buttons in Inspect Modal */
html[data-theme="light"] .paypoint-op-btn.bg-slate-900,
html[data-theme="light"] .vendor-op-btn.bg-slate-900 {
    background-color: #f1f5f9 !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
}
html[data-theme="light"] .paypoint-op-btn.bg-slate-900:hover,
html[data-theme="light"] .vendor-op-btn.bg-slate-900:hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}

/* Modal Code Viewers (Keep dark IDE theme with crisp glowing syntax in both Light and Dark mode) */
html[data-theme="light"] #inspect-modal .code-box-dark,
html[data-theme="light"] #inspect-modal pre {
    background-color: #020617 !important;
    color: #f8fafc !important;
}
html[data-theme="light"] #modal-gw-res-pre {
    color: #34d399 !important; /* Emerald-400 */
}
html[data-theme="light"] #modal-gw-req-pre {
    color: #a5b4fc !important; /* Indigo-300 */
}
html[data-theme="light"] #modal-api-req-pre {
    color: #38bdf8 !important; /* Sky-400 */
}
html[data-theme="light"] #modal-api-res-pre {
    color: #c084fc !important; /* Purple-400 */
}

/* Top Header Badges in Light Mode */
html[data-theme="light"] header .bg-slate-800\/70,
html[data-theme="light"] header .bg-slate-800\/80 {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}

/* Action Buttons in Light Mode */
html[data-theme="light"] button.bg-emerald-600\/20,
html[data-theme="light"] .bg-emerald-600\/20 {
    background-color: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
    color: #047857 !important;
}
html[data-theme="light"] button.bg-emerald-600\/20 *,
html[data-theme="light"] .bg-emerald-600\/20 * {
    color: #047857 !important;
}

html[data-theme="light"] button.text-rose-300,
html[data-theme="light"] .bg-rose-500\/10,
html[data-theme="light"] .bg-rose-500\/15,
html[data-theme="light"] .bg-rose-500\/20 {
    background-color: #fff1f2 !important;
    border-color: #fecdd3 !important;
    color: #be123c !important;
}
html[data-theme="light"] button.text-rose-300 * {
    color: #be123c !important;
}

/* Code & font-mono text displays in Light Mode */
html[data-theme="light"] .font-mono.text-cyan-400,
html[data-theme="light"] .font-mono.text-cyan-300 {
    color: #0284c7 !important;
}
html[data-theme="light"] .font-mono.text-slate-300 {
    color: #1e293b !important;
}

/* Paypoint Log & Report Row Highlights in Light Mode */
html[data-theme="light"] tr.bg-cyan-950\/20,
html[data-theme="light"] tr[class*="bg-cyan-950"] {
    background-color: #ecfeff !important; /* cyan-50 */
}
html[data-theme="light"] tr.bg-cyan-950\/20:hover,
html[data-theme="light"] tr[class*="bg-cyan-950"]:hover {
    background-color: #cffafe !important; /* cyan-100 */
}
html[data-theme="light"] tr.bg-indigo-950\/35,
html[data-theme="light"] tr[class*="bg-indigo-950"] {
    background-color: #eef2ff !important; /* indigo-50 */
}
html[data-theme="light"] tr.bg-indigo-950\/35:hover,
html[data-theme="light"] tr[class*="bg-indigo-950"]:hover {
    background-color: #e0e7ff !important; /* indigo-100 */
}
html[data-theme="light"] tr.bg-amber-950\/20,
html[data-theme="light"] tr[class*="bg-amber-950"] {
    background-color: #fffbeb !important; /* amber-50 */
}
html[data-theme="light"] tr.bg-amber-950\/20:hover,
html[data-theme="light"] tr[class*="bg-amber-950"]:hover {
    background-color: #fef3c7 !important; /* amber-100 */
}
html[data-theme="light"] tr[class*="bg-rose-950"] {
    background-color: #fff1f2 !important; /* rose-50 */
}
html[data-theme="light"] tr[class*="bg-rose-950"]:hover {
    background-color: #ffe4e6 !important; /* rose-100 */
}
html[data-theme="light"] tr[class*="bg-emerald-950"] {
    background-color: #f0fdf4 !important; /* emerald-50 */
}
html[data-theme="light"] tr[class*="bg-emerald-950"]:hover {
    background-color: #dcfce7 !important; /* emerald-100 */
}

/* Critical Alert Banners in Light Mode */
html[data-theme="light"] .pu-glow,
html[data-theme="light"] [class*="from-rose-950"] {
    background-color: #fff1f2 !important;
    background-image: none !important;
    border: 1.5px solid #fecdd3 !important;
    box-shadow: 0 10px 30px -10px rgba(244, 63, 94, 0.2) !important;
}
html[data-theme="light"] .pu-glow h3,
html[data-theme="light"] [class*="from-rose-950"] h3 {
    color: #881337 !important;
}
html[data-theme="light"] .pu-glow p,
html[data-theme="light"] .pu-glow span:not(.font-bold),
html[data-theme="light"] [class*="from-rose-950"] p,
html[data-theme="light"] [class*="from-rose-950"] span:not(.font-bold) {
    color: #9f1239 !important;
}
html[data-theme="light"] .pu-glow span.font-bold,
html[data-theme="light"] [class*="from-rose-950"] span.font-bold {
    color: #881337 !important;
}

/* Theme Toggle Button Styling */
.nr-theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background-color: rgba(15, 23, 42, 0.6);
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nr-theme-toggle-btn:hover {
    background-color: rgba(99, 102, 241, 0.15);
    border-color: #6366f1;
    color: #ffffff;
    transform: scale(1.05);
}

html[data-theme="light"] .nr-theme-toggle-btn {
    background-color: #ffffff;
    border-color: #cbd5e1;
    color: #475569;
}

html[data-theme="light"] .nr-theme-toggle-btn:hover {
    background-color: #f1f5f9;
    border-color: #6366f1;
    color: #4f46e5;
}

/* Custom Sleek Scrollbars for Modals and Overflows */
.custom-scrollbar::-webkit-scrollbar,
.modal-body-scroll::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track,
.modal-body-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb,
.modal-body-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.25);
    border-radius: 9999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover,
.modal-body-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

html[data-theme="light"] .custom-scrollbar::-webkit-scrollbar-thumb,
html[data-theme="light"] .modal-body-scroll::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.25);
}
html[data-theme="light"] .custom-scrollbar::-webkit-scrollbar-thumb:hover,
html[data-theme="light"] .modal-body-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.45);
}

/* ==========================================================================
   UNIVERSAL TABLE HORIZONTAL SCROLL & CONSTANT HEADER / SEARCH BOX ENGINE
   ========================================================================== */
html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

/* Ensure flex content wrapper never expands beyond viewport */
.admin-main-wrapper,
.vendor-main-wrapper,
.admin-content-area,
.vendor-content-area,
main {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Pinned Constant Top Headers */
header {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

html[data-theme="light"] .glass-nav {
    background: rgba(255, 255, 255, 0.94) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06) !important;
}
html[data-theme="light"] .glass-nav a,
html[data-theme="light"] .glass-nav .nav-item-link {
    color: #334155 !important;
}
html[data-theme="light"] .glass-nav a:hover,
html[data-theme="light"] .glass-nav .nav-item-link:hover {
    color: #4f46e5 !important;
}
html[data-theme="light"] .glass-nav .logo-heading {
    color: #0f172a !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

/* Constant Stationary Search & Filter Card Containers */
.filter-card-constant,
#transactions-filter-form,
[id$="-filter-form"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Sleek Table Scroller: ONLY the table part scrolls horizontally */
.table-responsive,
.overflow-x-auto,
.custom-table-scroll {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    display: block;
}

/* Modern Horizontal Scrollbar for Table Containers */
.table-responsive::-webkit-scrollbar,
.overflow-x-auto::-webkit-scrollbar,
.custom-table-scroll::-webkit-scrollbar {
    height: 8px !important;
    width: 8px !important;
}
.table-responsive::-webkit-scrollbar-track,
.overflow-x-auto::-webkit-scrollbar-track,
.custom-table-scroll::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.7);
    border-radius: 9999px;
    margin: 0 4px;
}
.table-responsive::-webkit-scrollbar-thumb,
.overflow-x-auto::-webkit-scrollbar-thumb,
.custom-table-scroll::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.55);
    border-radius: 9999px;
    border: 2px solid rgba(15, 23, 42, 0.8);
}
.table-responsive::-webkit-scrollbar-thumb:hover,
.overflow-x-auto::-webkit-scrollbar-thumb:hover,
.custom-table-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.85);
}

html[data-theme="light"] .table-responsive::-webkit-scrollbar-track,
html[data-theme="light"] .overflow-x-auto::-webkit-scrollbar-track,
html[data-theme="light"] .custom-table-scroll::-webkit-scrollbar-track {
    background: #e2e8f0;
}
html[data-theme="light"] .table-responsive::-webkit-scrollbar-thumb,
html[data-theme="light"] .overflow-x-auto::-webkit-scrollbar-thumb,
html[data-theme="light"] .custom-table-scroll::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border: 2px solid #ffffff;
}
html[data-theme="light"] .table-responsive::-webkit-scrollbar-thumb:hover,
html[data-theme="light"] .overflow-x-auto::-webkit-scrollbar-thumb:hover,
html[data-theme="light"] .custom-table-scroll::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ==========================================================================
   MOBILE RESPONSIVE & OFF-CANVAS DRAWER SYSTEM
   ========================================================================== */

/* Alpine.js cloak helper */
[x-cloak] {
    display: none !important;
}

/* Base mobile view safeguards */
@media (max-width: 1023px) {
    /* Reset desktop sidebar margins on mobile */
    .admin-main-wrapper,
    .vendor-main-wrapper,
    div.admin-main-wrapper,
    div.vendor-main-wrapper {
        margin-left: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Mobile header touch ergonomics */
    header {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Content area padding on phones */
    .admin-content-area,
    .vendor-content-area {
        padding: 1rem !important;
    }

    /* Prevent accidental viewport horizontal bouncing */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    /* Table responsive overflow protection */
    .table-responsive,
    .overflow-x-auto,
    .custom-table-scroll {
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-x pan-y !important;
    }

    /* Modal dialogs responsiveness on small screens */
    .fixed.inset-0.flex {
        align-items: flex-start !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-top: 0.75rem !important;
        padding-bottom: 2rem !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .fixed.inset-0 > div[class*="max-w-"],
    .fixed.inset-0 div[id$="-card"],
    .fixed.inset-0 div[class*="rounded-3xl"],
    .fixed.inset-0 div[class*="rounded-2xl"] {
        max-width: calc(100vw - 1rem) !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        max-height: calc(100dvh - 2rem) !important;
    }

    /* Modal sticky headers & close buttons on phones */
    .fixed.inset-0 .modal-top-bar,
    .fixed.inset-0 div[class*="border-b"]:first-child {
        position: sticky !important;
        top: 0 !important;
        z-index: 40 !important;
    }

    /* Touch target for close buttons */
    .fixed.inset-0 button[onclick*="close"],
    .fixed.inset-0 button[@click*="false"],
    .fixed.inset-0 button[onclick*="hidden"] {
        min-width: 38px !important;
        min-height: 38px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Smooth Drawer Transition */
aside {
    will-change: transform;
}

/* ==========================================================================
   SWEETALERT2 MOBILE-FRIENDLY & DARK THEME STYLING
   ========================================================================== */
.swal2-container {
    z-index: 99999 !important;
    padding: 10px !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.swal2-popup {
    background: #090d16 !important; /* ultra-dark slate */
    background: linear-gradient(180deg, #0f172a 0%, #090d16 100%) !important;
    color: #f8fafc !important;
    border: 1px solid rgba(99, 102, 241, 0.35) !important;
    border-radius: 1.5rem !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px -10px rgba(99, 102, 241, 0.25) !important;
    max-width: min(94vw, 480px) !important;
    width: 100% !important;
    padding: 1.5rem 1.25rem !important;
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.swal2-title {
    color: #ffffff !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em !important;
    padding-top: 0.5rem !important;
}

.swal2-html-container {
    color: #94a3b8 !important;
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    margin-top: 0.6rem !important;
    word-break: break-word !important;
}

.swal2-close {
    color: #94a3b8 !important;
    font-size: 1.6rem !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 0.75rem !important;
    background: rgba(30, 41, 59, 0.6) !important;
    border: 1px solid rgba(51, 65, 85, 0.6) !important;
    top: 12px !important;
    right: 12px !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.swal2-close:hover {
    color: #ffffff !important;
    background: rgba(51, 65, 85, 0.9) !important;
    transform: scale(1.05) !important;
}

.swal2-actions {
    margin-top: 1.25rem !important;
    gap: 0.6rem !important;
    width: 100% !important;
}

.swal2-styled {
    border-radius: 0.85rem !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    min-height: 44px !important;
    padding: 0.65rem 1.35rem !important;
    touch-action: manipulation !important;
    transition: all 0.2s ease !important;
}

.swal2-confirm {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4) !important;
    color: #ffffff !important;
    border: none !important;
}

.swal2-confirm:hover {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%) !important;
    transform: translateY(-1px) !important;
}

.swal2-cancel {
    background: #1e293b !important;
    color: #cbd5e1 !important;
    border: 1px solid #334155 !important;
}

.swal2-cancel:hover {
    background: #334155 !important;
    color: #ffffff !important;
}

.swal2-icon {
    border-width: 3px !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.75rem !important;
    transform: scale(0.9) !important;
}

/* Light Mode Overrides for SweetAlert2 */
html[data-theme="light"] .swal2-popup {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15) !important;
}
html[data-theme="light"] .swal2-title {
    color: #0f172a !important;
}
html[data-theme="light"] .swal2-html-container {
    color: #475569 !important;
}
html[data-theme="light"] .swal2-close {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #64748b !important;
}
html[data-theme="light"] .swal2-cancel {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border-color: #cbd5e1 !important;
}

/* Prevent browser autofill ugly background and text color shifts */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #020617 inset !important;
    -webkit-text-fill-color: #f8fafc !important;
    caret-color: #f8fafc !important;
    transition: background-color 5000s ease-in-out 0s;
}
html[data-theme="light"] input:-webkit-autofill,
html[data-theme="light"] input:-webkit-autofill:hover, 
html[data-theme="light"] input:-webkit-autofill:focus, 
html[data-theme="light"] input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #0f172a !important;
    caret-color: #0f172a !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* ==========================================================================
   UNIVERSAL TOGGLE SWITCH ENGINE (Disabled = Red, Enabled = Green)
   ========================================================================== */
label > input[type="checkbox"].peer + div.rounded-full,
label > input[type="checkbox"].sr-only.peer + div,
.nr-toggle-track {
    background-color: #ef4444 !important; /* Vibrant Red when disabled/unchecked */
    border-color: #dc2626 !important;
    transition: background-color 0.25s ease, border-color 0.25s ease !important;
}

label > input[type="checkbox"].peer:checked + div.rounded-full,
label > input[type="checkbox"].sr-only.peer:checked + div,
.nr-toggle-track.checked {
    background-color: #10b981 !important; /* Vibrant Emerald Green when enabled/checked */
    border-color: #059669 !important;
}

html[data-theme="light"] label > input[type="checkbox"].peer + div.rounded-full,
html[data-theme="light"] label > input[type="checkbox"].sr-only.peer + div,
html[data-theme="light"] .nr-toggle-track {
    background-color: #ef4444 !important; /* Red in Light Mode */
    border-color: #dc2626 !important;
}

html[data-theme="light"] label > input[type="checkbox"].peer:checked + div.rounded-full,
html[data-theme="light"] label > input[type="checkbox"].sr-only.peer:checked + div,
html[data-theme="light"] .nr-toggle-track.checked {
    background-color: #10b981 !important; /* Green in Light Mode */
    border-color: #059669 !important;
}

/* ==========================================================================
   PLATFORM MESSAGE / OPERATOR ALERT HIGH-VISIBILITY ENGINE
   ========================================================================== */
#modal-response-card.is-loan,
#modal-response-card.is-error {
    background-color: rgba(244, 63, 94, 0.15) !important;
    border: 2px solid #f43f5e !important;
    box-shadow: 0 4px 16px -2px rgba(244, 63, 94, 0.25) !important;
}

html[data-theme="light"] #modal-response-card.is-loan,
html[data-theme="light"] #modal-response-card.is-error {
    background-color: #fff1f2 !important;
    border: 2px solid #e11d48 !important;
    box-shadow: 0 4px 14px -2px rgba(225, 29, 72, 0.2) !important;
}

html[data-theme="light"] #modal-response-card.is-loan span,
html[data-theme="light"] #modal-response-card.is-error span {
    color: #9f1239 !important;
}

html[data-theme="light"] #modal-response-card.is-loan .bg-rose-600,
html[data-theme="light"] #modal-response-card.is-error .bg-rose-600,
html[data-theme="light"] #modal-response-card.is-loan span.bg-rose-600,
html[data-theme="light"] #modal-response-card.is-error span.bg-rose-600 {
    background-color: #e11d48 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] #modal-response-card.is-loan,
html[data-theme="dark"] #modal-response-card.is-error {
    background-color: rgba(136, 19, 55, 0.45) !important;
    border: 2px solid #fb7185 !important;
    box-shadow: 0 4px 18px -2px rgba(244, 63, 94, 0.35) !important;
}

html[data-theme="dark"] #modal-response-card.is-loan span:not(.bg-rose-600),
html[data-theme="dark"] #modal-response-card.is-error span:not(.bg-rose-600) {
    color: #ffe4e6 !important;
}

/* ==========================================================================
   TABLE ACTION BUTTON FOR REQUEST & RESPONSE PAYLOAD
   ========================================================================== */
.btn-payload-inspect {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.375rem !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    padding: 0.375rem 0.65rem !important;
    border-radius: 0.625rem !important;
    transition: all 0.15s ease-in-out !important;
    user-select: none !important;
}

html[data-theme="dark"] .btn-payload-inspect,
html.dark .btn-payload-inspect {
    background-color: #1e293b !important; /* slate-800 */
    color: #22d3ee !important;            /* cyan-400 */
    border: 1px solid rgba(51, 65, 85, 0.9) !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.25) !important;
}

html[data-theme="dark"] .btn-payload-inspect:hover,
html.dark .btn-payload-inspect:hover {
    background-color: #334155 !important; /* slate-700 */
    color: #67e8f9 !important;            /* cyan-300 */
    border-color: #06b6d4 !important;     /* cyan-500 */
}

html[data-theme="light"] .btn-payload-inspect {
    background-color: #f1f5f9 !important; /* slate-100 */
    color: #0891b2 !important;            /* cyan-600 */
    border: 1.5px solid #cbd5e1 !important; /* slate-300 */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

html[data-theme="light"] .btn-payload-inspect:hover {
    background-color: #e2e8f0 !important; /* slate-200 */
    color: #0e7490 !important;            /* cyan-700 */
    border-color: #0891b2 !important;     /* cyan-600 */
}

/* ==========================================================================
   Paypoint Accounts Pool - Used/Assigned Account Box Highlighting
   ========================================================================== */
.account-card-assigned {
    background: linear-gradient(180deg, rgba(49, 46, 129, 0.45) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
    border: 2px solid rgba(99, 102, 241, 0.6) !important;
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.25) !important;
}

.account-card-assigned:hover {
    border-color: rgba(129, 140, 248, 0.8) !important;
    box-shadow: 0 12px 28px -4px rgba(79, 70, 229, 0.35) !important;
}

html[data-theme="light"] .account-card-assigned {
    background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%) !important;
    border: 2px solid #6366f1 !important;
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.15) !important;
}

html[data-theme="light"] .account-card-assigned:hover {
    border-color: #4f46e5 !important;
    box-shadow: 0 12px 28px -4px rgba(99, 102, 241, 0.25) !important;
}

html[data-theme="light"] .account-card-assigned h3 {
    color: #1e1b4b !important;
}

.account-row-assigned {
    background-color: rgba(49, 46, 129, 0.2) !important;
    border-left: 4px solid #6366f1 !important;
}

html[data-theme="light"] .account-row-assigned {
    background-color: #f5f3ff !important;
    border-left: 4px solid #6366f1 !important;
}

/* ==========================================================================
   Operator Parameter Studio - Quick Preset Pills (High Contrast)
   ========================================================================== */
.preset-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.preset-pill:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
    color: #0284c7;
}
.preset-pill-amount {
    background-color: #fef3c7 !important;
    border-color: #f59e0b !important;
    color: #92400e !important;
}
.preset-pill-amount:hover {
    background-color: #fde68a !important;
    border-color: #d97706 !important;
    color: #78350f !important;
}
.preset-pill-services {
    background-color: #e0e7ff !important;
    border-color: #818cf8 !important;
    color: #3730a3 !important;
}
.preset-pill-services:hover {
    background-color: #c7d2fe !important;
    border-color: #6366f1 !important;
    color: #312e81 !important;
}
.preset-pill-packages {
    background-color: #d1fae5 !important;
    border-color: #10b981 !important;
    color: #065f46 !important;
}
.preset-pill-packages:hover {
    background-color: #a7f3d0 !important;
    border-color: #059669 !important;
    color: #044e39 !important;
}

/* Dark Mode Theme */
html.dark .preset-pill,
html[data-theme="dark"] .preset-pill {
    background-color: #020617;
    border-color: #334155;
    color: #38bdf8;
    box-shadow: none;
}
html.dark .preset-pill:hover,
html[data-theme="dark"] .preset-pill:hover {
    background-color: #1e293b;
    border-color: #64748b;
    color: #7dd3fc;
}
html.dark .preset-pill-amount,
html[data-theme="dark"] .preset-pill-amount {
    background-color: rgba(245, 158, 11, 0.18) !important;
    border-color: rgba(245, 158, 11, 0.5) !important;
    color: #fbbf24 !important;
}
html.dark .preset-pill-amount:hover,
html[data-theme="dark"] .preset-pill-amount:hover {
    background-color: rgba(245, 158, 11, 0.3) !important;
    border-color: #f59e0b !important;
    color: #fef3c7 !important;
}
html.dark .preset-pill-services,
html[data-theme="dark"] .preset-pill-services {
    background-color: rgba(99, 102, 241, 0.18) !important;
    border-color: rgba(99, 102, 241, 0.5) !important;
    color: #a5b4fc !important;
}
html.dark .preset-pill-services:hover,
html[data-theme="dark"] .preset-pill-services:hover {
    background-color: rgba(99, 102, 241, 0.3) !important;
    border-color: #818cf8 !important;
    color: #e0e7ff !important;
}
html.dark .preset-pill-packages,
html[data-theme="dark"] .preset-pill-packages {
    background-color: rgba(16, 185, 129, 0.18) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
    color: #34d399 !important;
}
html.dark .preset-pill-packages:hover,
html[data-theme="dark"] .preset-pill-packages:hover {
    background-color: rgba(16, 185, 129, 0.3) !important;
    border-color: #10b981 !important;
    color: #d1fae5 !important;
}

