/* ==========================================================================
   SAMBARA POS & CLIENT AREA - GLOBAL UNIFIED STYLESHEET (globalstyle.css)
   ========================================================================== */

/* --- 1. GLOBAL RESET & BASE TYPOGRAPHY --- */
body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #ecfdf5;
}

/* --- 2. SCROLLBAR UTILITIES --- */
/* Global Custom Scrollbar */
.custom-scroll::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(82, 183, 136, 0.3);
    border-radius: 20px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background-color: rgba(82, 183, 136, 0.6);
}

/* POS Dedicated Scrollbar */
.pos-scroll::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.pos-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.pos-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(16, 185, 129, 0.25);
    border-radius: 10px;
}

.pos-scroll::-webkit-scrollbar-thumb:hover {
    background-color: rgba(16, 185, 129, 0.5);
}

/* Hide Scrollbar while keeping scroll functionality */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Default Browser Scrollbar Override */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(82, 183, 136, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(82, 183, 136, 0.5);
}

/* --- 3. ANIMASI GLOBAL --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

.fade-mask {
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

/* Dynamic Living Background & Mesh Orbs */
@keyframes livingBg {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.living-bg {
    background: linear-gradient(-45deg, #091a12, #143728, #1b4332, #0e291c, #1f4e3a) !important;
    background-size: 400% 400% !important;
    animation: livingBg 16s ease infinite !important;
}

.tech-grid-bg {
    background-image: radial-gradient(rgba(82, 183, 136, 0.14) 1px, transparent 1px);
    background-size: 28px 28px;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0px, 0px) scale(1); }
    50% { transform: translate(60px, -40px) scale(1.15); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0px, 0px) scale(1); }
    50% { transform: translate(-50px, 50px) scale(1.2); }
}

.ambient-orb-1 {
    animation: orbFloat1 14s ease-in-out infinite;
}

.ambient-orb-2 {
    animation: orbFloat2 18s ease-in-out infinite;
}

/* AI Data Stream Beams */
@keyframes dataStreamFlow {
    0% {
        transform: translateY(-120px);
        opacity: 0;
    }
    25% {
        opacity: 0.4;
    }
    75% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(105vh);
        opacity: 0;
    }
}

.data-stream-line {
    position: fixed;
    width: 1.5px;
    height: 160px;
    background: linear-gradient(180deg, transparent 0%, rgba(82, 183, 136, 0.7) 50%, rgba(251, 191, 36, 0.9) 80%, transparent 100%);
    box-shadow: 0 0 10px rgba(82, 183, 136, 0.4);
    pointer-events: none;
    z-index: 1;
    animation: dataStreamFlow 7s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Mascot Animation */
@keyframes floatRobot {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

.animate-float-robot {
    animation: floatRobot 4.5s ease-in-out infinite;
}

/* Mobile Bottom Sheet Drawer Animation */
.bottom-sheet {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* --- 4. GLASSMORPHISM CARDS & NAVBAR --- */
.glass-card-dark {
    background: rgba(14, 39, 27, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(82, 183, 136, 0.22);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 20px rgba(82, 183, 136, 0.08) inset;
}

.glass-card-light {
    background: rgba(254, 250, 224, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    color: #0f291e;
}

.glass-nav {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
}

/* ===== TIPE & STATUS PENJUALAN (Favorit / Gratis / Promo) =====
   Highlight chip yang TERPILIH wajib kontras & jelas di 3 tema dashboard:
   Default Forest, Pitch Dark, dan Light. */
.product-type-toggle > input + div {
    /* baseline / fallback (bila tidak ada kelas tema) */
    background-color: rgba(51, 65, 85, 0.55) !important;
    border-color: rgba(148, 163, 184, 0.6) !important;
    color: #cbd5e1 !important;
}

.product-type-toggle > input + div i {
    color: #cbd5e1 !important;
}

.product-type-toggle > input + div span {
    color: #e2e8f0 !important;
}

.product-type-toggle > input:disabled + div {
    cursor: not-allowed;
    opacity: 0.5;
}

/* --- OFF state: tema Default Forest + Pitch Dark (chip slate = jelas) --- */
.theme-default label.product-type-toggle > input + div,
.theme-dark label.product-type-toggle > input + div {
    background-color: rgba(51, 65, 85, 0.55) !important;
    border-color: rgba(148, 163, 184, 0.6) !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35) !important;
}

.theme-default label.product-type-toggle > input + div i,
.theme-dark label.product-type-toggle > input + div i {
    color: #cbd5e1 !important;
}

.theme-default label.product-type-toggle > input + div span,
.theme-dark label.product-type-toggle > input + div span {
    color: #e2e8f0 !important;
}

.theme-default label.product-type-toggle > input:hover + div,
.theme-dark label.product-type-toggle > input:hover + div {
    border-color: #e2e8f0 !important;
}

/* --- OFF state: tema Light --- */
.theme-light label.product-type-toggle > input + div {
    background-color: #ffffff !important;
    border-color: #94a3b8 !important;
    color: #334155 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
}

.theme-light label.product-type-toggle > input + div i {
    color: #64748b !important;
}

.theme-light label.product-type-toggle > input + div span {
    color: #334155 !important;
}

.theme-light label.product-type-toggle > input:hover + div {
    border-color: #475569 !important;
}

/* ===== ON state: warna SOLID CERAH per chip =====
   Chip 1 Favorit (amber), Chip 2 Gratis (emerald), Chip 3 Promo (rose). */
/* Fallback bila posisi chip berbeda */
.theme-default label.product-type-toggle > input:checked + div,
.theme-dark label.product-type-toggle > input:checked + div {
    background-color: #fbbf24 !important;
    border-color: #fde68a !important;
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.35) !important;
}

.theme-default label.product-type-toggle > input:checked + div i,
.theme-default label.product-type-toggle > input:checked + div span,
.theme-dark label.product-type-toggle > input:checked + div i,
.theme-dark label.product-type-toggle > input:checked + div span {
    color: #422006 !important;
}

/* 1. FAVORIT */
.theme-default label.product-type-toggle:nth-child(1) > input:checked + div,
.theme-dark label.product-type-toggle:nth-child(1) > input:checked + div {
    background-color: #fbbf24 !important;
    border-color: #fde68a !important;
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.35) !important;
}

.theme-default label.product-type-toggle:nth-child(1) > input:checked + div i,
.theme-default label.product-type-toggle:nth-child(1) > input:checked + div span,
.theme-dark label.product-type-toggle:nth-child(1) > input:checked + div i,
.theme-dark label.product-type-toggle:nth-child(1) > input:checked + div span {
    color: #422006 !important;
}

/* 2. GRATIS */
.theme-default label.product-type-toggle:nth-child(2) > input:checked + div,
.theme-dark label.product-type-toggle:nth-child(2) > input:checked + div {
    background-color: #34d399 !important;
    border-color: #a7f3d0 !important;
    box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.35) !important;
}

.theme-default label.product-type-toggle:nth-child(2) > input:checked + div i,
.theme-default label.product-type-toggle:nth-child(2) > input:checked + div span,
.theme-dark label.product-type-toggle:nth-child(2) > input:checked + div i,
.theme-dark label.product-type-toggle:nth-child(2) > input:checked + div span {
    color: #022c22 !important;
}

/* 3. PROMO */
.theme-default label.product-type-toggle:nth-child(3) > input:checked + div,
.theme-dark label.product-type-toggle:nth-child(3) > input:checked + div {
    background-color: #fb7185 !important;
    border-color: #fecdd3 !important;
    box-shadow: 0 0 0 2px rgba(251, 113, 133, 0.35) !important;
}

.theme-default label.product-type-toggle:nth-child(3) > input:checked + div i,
.theme-default label.product-type-toggle:nth-child(3) > input:checked + div span,
.theme-dark label.product-type-toggle:nth-child(3) > input:checked + div i,
.theme-dark label.product-type-toggle:nth-child(3) > input:checked + div span {
    color: #4c0519 !important;
}

/* --- 5. GRADIENTS & TYPOGRAPHY --- */
.text-gradient-insta {
    background: linear-gradient(135deg, #74c69d 0%, #52b788 40%, #f59e0b 80%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-cream {
    background: linear-gradient(135deg, #ffffff 0%, #fefae0 60%, #d8f3dc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient {
    background: linear-gradient(to right, #10b981, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text-green {
    background: linear-gradient(135deg, #6ee7b7 0%, #34d399 50%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text-amber {
    background: linear-gradient(135deg, #fde68a 0%, #fbbf24 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Anti-Flicker Preload */
.preload, .preload * {
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -ms-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
}

/* --- 6. THEME MODE SWITCHER (DEFAULT FOREST VS DARK PITCH) --- */
/* Theme Default (Forest Green) */
.theme-default {
    background-color: #0b1e15;
    color: #ecfdf5;
}

.theme-default h1, 
.theme-default h2, 
.theme-default h3, 
.theme-default h4,
.theme-default .text-white {
    color: #f4fbf7 !important;
}

.theme-default .text-slate-300,
.theme-default .text-slate-400 {
    color: #a7f3d0 !important;
}

.theme-default .text-slate-500 {
    color: #6ee7b7 !important;
}

.theme-default .glass-card-dark {
    background: rgba(14, 39, 27, 0.75) !important;
    backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(82, 183, 136, 0.22) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 20px rgba(82, 183, 136, 0.08) inset !important;
}

/* Theme Dark (Pitch Dark Minimalist) */
.theme-dark,
.theme-dark body {
    background-color: #0d1117 !important;
    background-image: none !important;
    color: #f1f5f9 !important;
}

.theme-dark .ambient-orb-1,
.theme-dark .ambient-orb-2 {
    display: none !important;
}

.theme-dark #sidebar,
.theme-dark #mobile-sidebar > div {
    background-color: #161b22 !important;
    backdrop-filter: none !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.theme-dark #sidebar .border-b,
.theme-dark #sidebar .border-t {
    border-color: rgba(255, 255, 255, 0.08) !important;
    background-color: #0d1117 !important;
}

.theme-dark #sidebar a.bg-emerald-500\/20 {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-left-color: #3b82f6 !important;
}

.theme-dark #sidebar .text-emerald-400,
.theme-dark #sidebar .text-emerald-300 {
    color: #94a3b8 !important;
}

.theme-dark header {
    background-color: #161b22 !important;
    backdrop-filter: none !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.theme-dark .glass-card-dark {
    background: #161b22 !important;
    backdrop-filter: none !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.theme-dark .bg-forest-950\/95,
.theme-dark .bg-forest-950\/90,
.theme-dark .bg-forest-950\/80,
.theme-dark .bg-forest-950\/70,
.theme-dark .bg-forest-950\/60,
.theme-dark .bg-forest-950\/50,
.theme-dark .bg-forest-950\/40,
.theme-dark .bg-forest-950 {
    background-color: #0d1117 !important;
}

.theme-dark .bg-forest-900\/95,
.theme-dark .bg-forest-900\/90,
.theme-dark .bg-forest-900\/80,
.theme-dark .bg-forest-900\/70,
.theme-dark .bg-forest-900\/60,
.theme-dark .bg-forest-900\/50,
.theme-dark .bg-forest-900\/40,
.theme-dark .bg-forest-900 {
    background-color: #161b22 !important;
}

.theme-dark .border-emerald-500\/10,
.theme-dark .border-emerald-500\/15,
.theme-dark .border-emerald-500\/20,
.theme-dark .border-emerald-500\/25,
.theme-dark .border-emerald-500\/30,
.theme-dark .border-emerald-500\/40,
.theme-dark .border-emerald-500\/50,
.theme-dark .border-emerald-500 {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.theme-dark .text-gradient-insta {
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* --- THEME DARK: BOTTOM NAVIGATION (CAFE APP FOOTER) --- */
.theme-dark #bottom-nav-cafe {
    background-color: rgba(22, 27, 34, 0.96) !important;
    backdrop-filter: blur(16px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6) !important;
}

.theme-dark #bottom-nav-progress {
    background: linear-gradient(to right, #3b82f6, #60a5fa, #93c5fd) !important;
}

.theme-dark #bottom-nav-cafe .bottom-nav-icon-box.bg-emerald-500\/20 {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #f1f5f9 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.theme-dark #bottom-nav-cafe span.text-emerald-400 {
    color: #f1f5f9 !important;
}

.theme-dark #bottom-nav-cafe .text-slate-400 {
    color: #94a3b8 !important;
}

.theme-dark #bottom-nav-cafe .bottom-nav-item:hover .bottom-nav-icon-box {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}

.theme-dark #bottom-nav-cafe .bottom-nav-item:hover span {
    color: #ffffff !important;
}

/* --- THEME DARK: ORDERS & POS CART FOOTERS & MODALS --- */
.theme-dark #mobileStickyBar > div {
    background: #161b22 !important;
    background-image: none !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
}

.theme-dark #sheetContent,
.theme-dark #sheet-actions-container {
    background-color: #161b22 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.theme-dark .pos-item {
    background-color: #161b22 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.theme-dark .pos-item:hover {
    background-color: #21262d !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

.theme-dark .btn-add-default {
    background-color: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #f1f5f9 !important;
}

.theme-dark .btn-add-default:hover {
    background-color: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

.theme-dark .btn-stepper-active {
    background-color: #0d1117 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

/* =========================================================
   THEME LIGHT (CLEAN SAAS MODERN LIGHT MODE - ENHANCED)
   ========================================================= */
.theme-light,
.theme-light body {
    background-color: #f8fafc !important;
    background-image: none !important;
    color: #0f172a !important;
}

.theme-light .ambient-orb-1,
.theme-light .ambient-orb-2 {
    display: none !important;
}

/* Sidebar & Mobile Drawer */
.theme-light #sidebar,
.theme-light #mobile-sidebar > div {
    background-color: #ffffff !important;
    backdrop-filter: none !important;
    border-color: #e2e8f0 !important;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.03) !important;
}

.theme-light #sidebar .border-b,
.theme-light #sidebar .border-t {
    border-color: #e2e8f0 !important;
    background-color: #f8fafc !important;
}

.theme-light #sidebar a.bg-emerald-500\/20 {
    background-color: #ecfdf5 !important;
    color: #059669 !important;
    border-left-color: #10b981 !important;
}

.theme-light #sidebar .text-emerald-400,
.theme-light #sidebar .text-emerald-300 {
    color: #059669 !important;
}

.theme-light #sidebar .text-slate-400 {
    color: #64748b !important;
}

.theme-light #sidebar a:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

/* Header & Brand (Savia AI) */
.theme-light header {
    background-color: #ffffff !important;
    backdrop-filter: none !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
}

.theme-light header a span.bg-clip-text,
.theme-light header span.bg-gradient-to-r {
    background: linear-gradient(135deg, #059669 0%, #0d9488 50%, #0284c7 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.theme-light header a div.bg-forest-950 {
    background-color: #ffffff !important;
}

.theme-light header span.bg-emerald-500\/20 {
    background-color: #ecfdf5 !important;
    color: #059669 !important;
    border-color: #a7f3d0 !important;
}

.theme-light header .text-white {
    color: #0f172a !important;
}

.theme-light header .text-slate-200,
.theme-light header .text-slate-300 {
    color: #334155 !important;
}

.theme-light header .text-slate-400 {
    color: #64748b !important;
}

/* Live Time Pill in Navbar */
.theme-light header .bg-forest-900\/40,
.theme-light header .bg-forest-900\/60 {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #334155 !important;
}

.theme-light #navbar-live-date {
    color: #475569 !important;
}

.theme-light #navbar-live-time {
    color: #059669 !important;
}

.theme-light header .bg-emerald-950\/80 {
    background-color: #d1fae5 !important;
    color: #065f46 !important;
    border-color: #a7f3d0 !important;
}

/* Header Buttons: Theme Toggle & POS Lock */
.theme-light #theme-toggle-btn {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.theme-light #theme-toggle-btn:hover {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

.theme-light header button[onclick*="triggerPosLock"] {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #334155 !important;
}

.theme-light header button[onclick*="triggerPosLock"]:hover {
    background-color: #fef3c7 !important;
    border-color: #fcd34d !important;
    color: #b45309 !important;
}

.theme-light header button[onclick*="triggerPosLock"] span {
    color: #334155 !important;
}

/* Profile Dropdown */
.theme-light #profile-dropdown-wrapper > button {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.theme-light #profile-dropdown-wrapper > button:hover {
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

.theme-light #profile-dropdown-wrapper > button span {
    color: #0f172a !important;
}

.theme-light #profile-dropdown-wrapper .bg-forest-950 {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

.theme-light #profile-dropdown-menu {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.theme-light #profile-dropdown-menu h4 {
    color: #0f172a !important;
}

.theme-light #profile-dropdown-menu a {
    color: #334155 !important;
}

.theme-light #profile-dropdown-menu a:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

/* Notification Dropdown Theme Engine */
#notification-dropdown-menu {
    background-color: #06170f !important;
    border-color: rgba(82, 183, 136, 0.3) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(82, 183, 136, 0.2) !important;
}

.theme-dark #notification-dropdown-menu {
    background-color: #0d1117 !important;
    border-color: #30363d !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9) !important;
}

.theme-light #notification-dropdown-menu {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
}

.theme-light #notification-dropdown-menu .notification-header {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

.theme-light #notification-dropdown-menu .notification-title {
    color: #0f172a !important;
}

.theme-light #notification-dropdown-menu .notification-body {
    color: #475569 !important;
}

.theme-light #notification-dropdown-menu .notification-time {
    color: #64748b !important;
}

.theme-light #notification-dropdown-menu .notification-item {
    border-color: #f1f5f9 !important;
}

.theme-light #notification-dropdown-menu .notification-item:hover {
    background-color: #f8fafc !important;
}

.theme-light #notification-dropdown-menu .notification-item.is-unread {
    background-color: #f0fdf4 !important;
}

.theme-light #notification-dropdown-menu .notification-footer {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #64748b !important;
}

/* Cards & Surfaces */
.theme-light .glass-card-dark,
.theme-light .admin-card {
    background: #ffffff !important;
    backdrop-filter: none !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.02) !important;
    color: #0f172a !important;
}

.theme-light .glass-card-dark:hover {
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.03) !important;
}

/* Force all text-white inside light-mode cards & modals to dark slate #0f172a */
.theme-light .glass-card-dark .text-white,
.theme-light .admin-card .text-white,
.theme-light div[id*="modal"] .text-white,
.theme-light div[id*="Modal"] .text-white,
.theme-light .bg-forest-950 .text-white,
.theme-light .bg-forest-900 .text-white {
    color: #0f172a !important;
}

/* Preserve pure white text on solid dark/colored action buttons & badges */
.theme-light .bg-gradient-to-r .text-white,
.theme-light .bg-emerald-600 .text-white,
.theme-light .bg-emerald-500 .text-white,
.theme-light .bg-indigo-600 .text-white,
.theme-light .bg-indigo-500 .text-white,
.theme-light .bg-amber-500 .text-white,
.theme-light .bg-rose-600 .text-white,
.theme-light button.bg-gradient-to-r,
.theme-light button.bg-emerald-600,
.theme-light button.bg-indigo-600 {
    color: #ffffff !important;
}

/* Preserve white text on dark hover overlays (e.g. Logo & QRIS file upload hovers) */
.theme-light .glass-card-dark label[class*="bg-slate-950"],
.theme-light label[class*="bg-slate-950"] {
    background-color: rgba(15, 23, 42, 0.88) !important;
}
.theme-light label[class*="bg-slate-950"] .text-white,
.theme-light label[class*="bg-slate-950"] span.text-white,
.theme-light label[class*="bg-slate-950"] span,
.theme-light .glass-card-dark label[class*="bg-slate-950"] .text-white,
.theme-light .glass-card-dark label[class*="bg-slate-950"] span {
    color: #ffffff !important;
}
.theme-light label[class*="bg-slate-950"] .text-amber-300,
.theme-light label[class*="bg-slate-950"] i.text-amber-300,
.theme-light .glass-card-dark label[class*="bg-slate-950"] i {
    color: #fcd34d !important;
}

/* Light mode overrides for alert & notification banners (rose, emerald, amber) */
.theme-light .bg-rose-950\/80,
.theme-light .bg-rose-950\/50,
.theme-light .bg-rose-950\/40,
.theme-light .bg-rose-950\/30,
.theme-light .bg-rose-950 {
    background-color: #fff1f2 !important;
    border-color: #fecdd3 !important;
    color: #9f1239 !important;
}
.theme-light .bg-rose-950\/80 .text-rose-200,
.theme-light .bg-rose-950\/50 .text-rose-200,
.theme-light .bg-rose-950\/40 .text-rose-200,
.theme-light .bg-rose-950\/30 .text-rose-400,
.theme-light .bg-rose-950 .text-rose-200,
.theme-light .bg-rose-950\/80 li,
.theme-light .bg-rose-950\/80 span,
.theme-light input.bg-rose-950\/40 {
    color: #9f1239 !important;
}
.theme-light input.bg-rose-950\/40::placeholder {
    color: #f87171 !important;
}

.theme-light .bg-emerald-950\/80,
.theme-light .bg-emerald-950\/60,
.theme-light .bg-emerald-950\/50,
.theme-light .bg-emerald-950 {
    background-color: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
    color: #065f46 !important;
}
.theme-light .bg-emerald-950\/80 .text-emerald-200,
.theme-light .bg-emerald-950\/60 .text-emerald-200,
.theme-light .bg-emerald-950 .text-emerald-200,
.theme-light .bg-emerald-950\/80 p,
.theme-light .bg-emerald-950\/80 h4 {
    color: #065f46 !important;
}

.theme-light .bg-amber-950\/90,
.theme-light .bg-amber-950\/80,
.theme-light .bg-amber-950\/50,
.theme-light .bg-amber-950\/20,
.theme-light .bg-amber-950 {
    background-color: #fffbeb !important;
    border-color: #fde68a !important;
    color: #92400e !important;
}
.theme-light .bg-amber-950 .text-amber-200,
.theme-light .bg-amber-950\/80 .text-amber-200,
.theme-light #draft-recovery-banner,
.theme-light #draft-recovery-banner span,
.theme-light #draft-recovery-banner strong {
    color: #92400e !important;
}

/* Ensure white checkmarks on color theme swatches in Light Mode */
.theme-light .glass-card-dark label input:checked + div i.fa-check.text-white,
.theme-light label input:checked + div i.fa-check.text-white {
    color: #ffffff !important;
}

/* Ensure pure white text on red/emerald buttons & status slider pills */
.theme-light div[id*="statusSliderThumb"].from-rose-600,
.theme-light div[id*="statusSliderThumb"].from-rose-600 *,
.theme-light button.from-rose-600,
.theme-light button.from-rose-600 *,
.theme-light div[id*="modal"] button.from-rose-600,
.theme-light div[id*="modal"] button.from-rose-600 *,
.theme-light div[id*="Modal"] button.from-rose-600,
.theme-light div[id*="Modal"] button.from-rose-600 * {
    color: #ffffff !important;
}

/* Tent card mockup header in Light Mode */
.theme-light .bg-gradient-to-r.from-emerald-800.to-teal-800 {
    background: linear-gradient(to right, #065f46, #115e59) !important;
}
.theme-light .bg-gradient-to-r.from-emerald-800.to-teal-800 .text-white,
.theme-light .bg-gradient-to-r.from-emerald-800.to-teal-800 div.text-white {
    color: #ffffff !important;
}
.theme-light .bg-gradient-to-r.from-emerald-800.to-teal-800 .text-emerald-200,
.theme-light .bg-gradient-to-r.from-emerald-800.to-teal-800 div.text-emerald-200 {
    color: #a7f3d0 !important;
}

.theme-light .bg-forest-950\/95,
.theme-light .bg-forest-950\/90,
.theme-light .bg-forest-950\/80,
.theme-light .bg-forest-950\/70,
.theme-light .bg-forest-950\/60,
.theme-light .bg-forest-950\/50,
.theme-light .bg-forest-950\/40,
.theme-light .bg-forest-950 {
    background-color: #f8fafc !important;
}

.theme-light .bg-forest-900\/95,
.theme-light .bg-forest-900\/90,
.theme-light .bg-forest-900\/80,
.theme-light .bg-forest-900\/70,
.theme-light .bg-forest-900\/60,
.theme-light .bg-forest-900\/50,
.theme-light .bg-forest-900\/40,
.theme-light .bg-forest-900 {
    background-color: #f1f5f9 !important;
}

.theme-light .border-emerald-500\/10,
.theme-light .border-emerald-500\/15,
.theme-light .border-emerald-500\/20,
.theme-light .border-emerald-500\/25,
.theme-light .border-emerald-500\/30,
.theme-light .border-emerald-500\/40,
.theme-light .border-emerald-500\/50,
.theme-light .border-emerald-500 {
    border-color: #cbd5e1 !important;
}

/* Secondary detail buttons inside pricing cards */
.theme-light .glass-card-dark button.bg-slate-900\/90,
.theme-light .glass-card-dark button.bg-forest-950\/90,
.theme-light .glass-card-dark button.bg-forest-900 {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

.theme-light .glass-card-dark button.bg-slate-900\/90:hover,
.theme-light .glass-card-dark button.bg-forest-950\/90:hover,
.theme-light .glass-card-dark button.bg-forest-900:hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}

.theme-light .glass-card-dark button.bg-slate-900\/90 span {
    color: #059669 !important;
}

.theme-light .text-gradient-insta {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Typography Overrides */
.theme-light h1,
.theme-light h2,
.theme-light h3,
.theme-light h4,
.theme-light h5,
.theme-light h6,
.theme-light .pos-item h3,
.theme-light .stat-count-total,
.theme-light .summary-grand-total,
.theme-light .summary-subtotal {
    color: #0f172a !important;
}

.theme-light .text-slate-100,
.theme-light .text-slate-200 {
    color: #1e293b !important;
}

.theme-light .text-slate-300 {
    color: #334155 !important;
}

.theme-light .text-slate-400,
.theme-light .text-slate-500 {
    color: #64748b !important;
}

.theme-light .text-emerald-400 {
    color: #059669 !important;
}

.theme-light .text-emerald-300 {
    color: #047857 !important;
}

.theme-light .text-amber-200,
.theme-light .text-amber-300,
.theme-light .text-amber-400 {
    color: #b45309 !important;
}

.theme-light .text-yellow-200,
.theme-light .text-yellow-300,
.theme-light .text-yellow-400 {
    color: #a16207 !important;
}

.theme-light .text-teal-200,
.theme-light .text-teal-300,
.theme-light .text-teal-400 {
    color: #0f766e !important;
}

.theme-light .text-indigo-200,
.theme-light .text-indigo-300,
.theme-light .text-indigo-400 {
    color: #4338ca !important;
}

.theme-light .text-purple-200,
.theme-light .text-purple-300,
.theme-light .text-purple-400 {
    color: #6b21a8 !important;
}

.theme-light .text-rose-200,
.theme-light .text-rose-300,
.theme-light .text-rose-400 {
    color: #be123c !important;
}

.theme-light .border-slate-800,
.theme-light .border-slate-700,
.theme-light .border-slate-600,
.theme-light .border-slate-500 {
    border-color: #e2e8f0 !important;
}

.theme-light .bg-slate-900:not(button):not(.bg-gradient-to-r),
.theme-light .bg-slate-950:not(.fixed),
.theme-light .bg-slate-800:not(button) {
    background-color: #f8fafc !important;
    color: #0f172a !important;
}

.theme-light .bg-slate-900\/90,
.theme-light .bg-slate-900\/80,
.theme-light .bg-slate-900\/60,
.theme-light .bg-slate-900\/50,
.theme-light .bg-slate-900\/40 {
    background-color: #f1f5f9 !important;
}

.theme-light .fixed.inset-0.bg-slate-950\/85,
.theme-light .fixed.inset-0.bg-slate-950\/80,
.theme-light .fixed.inset-0.bg-slate-950\/75,
.theme-light .fixed.inset-0.bg-black\/80,
.theme-light .fixed.inset-0.bg-black\/75 {
    background-color: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(8px) !important;
}

.theme-light div[id*="modal"] > div,
.theme-light div[id*="Modal"] > div {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
}

.theme-light button.bg-slate-900,
.theme-light button.bg-forest-900,
.theme-light button.bg-slate-800 {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

.theme-light button.bg-slate-900:hover,
.theme-light button.bg-forest-900:hover,
.theme-light button.bg-slate-800:hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}

/* =========================================================
   DASHBOARD LAUNCHER TILES (PREMIUM PASTEL GRADIENTS)
   ========================================================= */
/* Riwayat Order */
.theme-light a[href*="orders/history"] > div,
.theme-light a[href*="orders.history"] > div {
    background: linear-gradient(135deg, #ccfbf1 0%, #e0f2fe 100%) !important;
    border-color: #99f6e4 !important;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.12) !important;
}
.theme-light a[href*="orders/history"] i,
.theme-light a[href*="orders.history"] i {
    color: #0d9488 !important;
}

/* Dapur KDS */
.theme-light a[href*="kitchen"] > div {
    background: linear-gradient(135deg, #fef3c7 0%, #ffedd5 100%) !important;
    border-color: #fde68a !important;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.12) !important;
}
.theme-light a[href*="kitchen"] i {
    color: #d97706 !important;
}

/* Denah Meja */
.theme-light a[href*="tables"] > div {
    background: linear-gradient(135deg, #e0f2fe 0%, #e0e7ff 100%) !important;
    border-color: #bae6fd !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12) !important;
}
.theme-light a[href*="tables"] i {
    color: #0284c7 !important;
}

/* Laporan Penjualan */
.theme-light a[href*="reports"] > div {
    background: linear-gradient(135deg, #dcfce7 0%, #d1fae5 100%) !important;
    border-color: #a7f3d0 !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.12) !important;
}
.theme-light a[href*="reports"] i {
    color: #059669 !important;
}

/* Data Pelanggan */
.theme-light a[href*="customers"] > div {
    background: linear-gradient(135deg, #ede9fe 0%, #fae8ff 100%) !important;
    border-color: #ddd6fe !important;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.12) !important;
}
.theme-light a[href*="customers"] i {
    color: #7c3aed !important;
}

/* Loyalty Point */
.theme-light a[href*="loyalty"] > div {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%) !important;
    border-color: #fde68a !important;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.12) !important;
}
.theme-light a[href*="loyalty"] i {
    color: #d97706 !important;
}

/* Voucher */
.theme-light a[href*="discount"] > div {
    background: linear-gradient(135deg, #ffe4e6 0%, #fce7f3 100%) !important;
    border-color: #fecdd3 !important;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.12) !important;
}
.theme-light a[href*="discount"] i {
    color: #e11d48 !important;
}

/* Kategori Menu */
.theme-light a[href*="categories"] > div {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%) !important;
    border-color: #bae6fd !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12) !important;
}
.theme-light a[href*="categories"] i {
    color: #0284c7 !important;
}

/* Tim SDM */
.theme-light a[href*="employees"] > div {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.1) !important;
}
.theme-light a[href*="employees"] i {
    color: #475569 !important;
}

/* Tema Toko */
.theme-light a[href*="theme"] > div {
    background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%) !important;
    border-color: #f5d0fe !important;
    box-shadow: 0 4px 12px rgba(192, 38, 211, 0.12) !important;
}
.theme-light a[href*="theme"] i {
    color: #c026d3 !important;
}

/* Cabang */
.theme-light a[href*="branches"] > div {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%) !important;
    border-color: #ddd6fe !important;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.12) !important;
}
.theme-light a[href*="branches"] i {
    color: #7c3aed !important;
}

/* Locked / PRO Items */
.theme-light a[href*="payment/plans"] > div,
.theme-light a[href*="payment.plans"] > div {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}
.theme-light a[href*="payment/plans"] i,
.theme-light a[href*="payment.plans"] i {
    color: #94a3b8 !important;
}
.theme-light .bg-gradient-to-r.from-amber-500.to-orange-500 {
    background: linear-gradient(135deg, #f59e0b, #ea580c) !important;
    color: #ffffff !important;
    border-color: #fcd34d !important;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.3) !important;
}

/* Dashboard Launcher Labels */
.theme-light .grid a span.text-\[11px\],
.theme-light .grid button span.text-\[11px\] {
    color: #334155 !important;
    font-weight: 600 !important;
}
.theme-light .grid a:hover span.text-\[11px\],
.theme-light .grid button:hover span.text-\[11px\] {
    color: #0f172a !important;
}

/* =========================================================
   ASISTEN AI & ADD-ON (3 VIBRANT CLEAN SUB-CARDS)
   ========================================================= */
/* 1. Katalok POS AI */
.theme-light button[onclick*="triggerSaviaAssistant"] {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%) !important;
    border: 1px solid #bbf7d0 !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08) !important;
}
.theme-light button[onclick*="triggerSaviaAssistant"]:hover {
    background: #dcfce7 !important;
    border-color: #86efac !important;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.18) !important;
}
.theme-light button[onclick*="triggerSaviaAssistant"] .rounded-2xl.bg-gradient-to-br {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%) !important;
    border-color: #86efac !important;
}
.theme-light button[onclick*="triggerSaviaAssistant"] span.text-\[11px\] {
    color: #14532d !important;
}
.theme-light button[onclick*="triggerSaviaAssistant"] span.text-\[9px\] {
    color: #059669 !important;
}

/* 2. E-Presensi */
.theme-light a.flex-col[href*="presensi"],
.theme-light a.flex-col[href*="addon=epresensi"] {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%) !important;
    border: 1px solid #bfdbfe !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06) !important;
}
.theme-light a.flex-col[href*="presensi"]:hover,
.theme-light a.flex-col[href*="addon=epresensi"]:hover {
    background: #dbeafe !important;
    border-color: #93c5fd !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15) !important;
}
.theme-light a.flex-col[href*="presensi"] .rounded-2xl.bg-gradient-to-br,
.theme-light a.flex-col[href*="addon=epresensi"] .rounded-2xl.bg-gradient-to-br {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
    border-color: #93c5fd !important;
}
.theme-light a.flex-col[href*="presensi"] i,
.theme-light a.flex-col[href*="addon=epresensi"] i {
    color: #2563eb !important;
}
.theme-light a.flex-col[href*="presensi"] span.text-\[11px\],
.theme-light a.flex-col[href*="addon=epresensi"] span.text-\[11px\] {
    color: #1e3a8a !important;
}
.theme-light a.flex-col[href*="addon=epresensi"] span.text-amber-400 {
    color: #d97706 !important;
}

/* 3. Add-On Center */
.theme-light a[href*="payment/plans"]:has(i.fa-cubes),
.theme-light a[href*="payment.plans"]:has(i.fa-cubes) {
    background: linear-gradient(135deg, #faf5ff 0%, #fdf4ff 100%) !important;
    border: 1px solid #e9d5ff !important;
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.06) !important;
}
.theme-light a[href*="payment/plans"]:has(i.fa-cubes):hover,
.theme-light a[href*="payment.plans"]:has(i.fa-cubes):hover {
    background: #f3e8ff !important;
    border-color: #d8b4fe !important;
    box-shadow: 0 8px 20px rgba(147, 51, 234, 0.15) !important;
}
.theme-light a[href*="payment/plans"]:has(i.fa-cubes) .rounded-2xl.bg-gradient-to-br,
.theme-light a[href*="payment.plans"]:has(i.fa-cubes) .rounded-2xl.bg-gradient-to-br {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%) !important;
    border-color: #d8b4fe !important;
}
.theme-light a[href*="payment/plans"]:has(i.fa-cubes) i,
.theme-light a[href*="payment.plans"]:has(i.fa-cubes) i {
    color: #7c3aed !important;
}
.theme-light a[href*="payment/plans"]:has(i.fa-cubes) span.text-\[11px\],
.theme-light a[href*="payment.plans"]:has(i.fa-cubes) span.text-\[11px\] {
    color: #581c87 !important;
}
.theme-light a[href*="payment/plans"]:has(i.fa-cubes) span.text-indigo-400,
.theme-light a[href*="payment.plans"]:has(i.fa-cubes) span.text-indigo-400 {
    color: #7c3aed !important;
}

/* Critical Alert Box (Subscription Expiration) */
.theme-light #subscriptionCriticalAlert {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
}
.theme-light #subscriptionCriticalAlert.bg-rose-950\/85 {
    background-color: #fef2f2 !important;
    border-color: #fecdd3 !important;
}
.theme-light #subscriptionCriticalAlert.bg-rose-950\/85 h4 {
    color: #991b1b !important;
}
.theme-light #subscriptionCriticalAlert.bg-rose-950\/85 p {
    color: #b91c1c !important;
}
.theme-light #subscriptionCriticalAlert.bg-amber-950\/85 {
    background-color: #fffbeb !important;
    border-color: #fde68a !important;
}
.theme-light #subscriptionCriticalAlert.bg-amber-950\/85 h4 {
    color: #92400e !important;
}
.theme-light #subscriptionCriticalAlert.bg-amber-950\/85 p {
    color: #b45309 !important;
}

/* Petunjuk "Selisih Harga Varian" (Tambah/Edit Menu) */
/* Kotak ini aslinya memakai palet tema gelap (bg-purple-950/40 + teks
   pastel). Di tema terang kartunya PUTIH, sehingga latarnya jadi ungu
   keruh dengan teks lavender + angka hijau/merah muda yang nyaris tidak
   terbaca. Override ini mengubahnya menjadi callout ungu muda dengan
   teks pekat (kontras WCAG AA). Tema default & dark tidak diubah. */
.theme-light #variantPriceHint {
    background-color: #faf5ff !important;
    border-color: #ddd6fe !important;
    color: #5b21b6 !important;
}
.theme-light #variantPriceHint i.fa-circle-info {
    color: #7c3aed !important;
}
.theme-light #variantPriceHint .hint-strong {
    color: #2e1065 !important;
}
.theme-light #variantPriceHint .hint-pos {
    color: #047857 !important;
}
.theme-light #variantPriceHint .hint-neg {
    color: #be123c !important;
}


/* Bottom Navigation (Cafe App Footer) */
.theme-light #bottom-nav-cafe {
    background-color: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(16px) !important;
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06) !important;
}

.theme-light #bottom-nav-progress {
    background: linear-gradient(to right, #059669, #10b981, #34d399) !important;
}

.theme-light #bottom-nav-cafe .bottom-nav-icon-box.bg-emerald-500\/20 {
    background-color: #ecfdf5 !important;
    color: #059669 !important;
    box-shadow: 0 1px 3px rgba(5, 150, 105, 0.15) !important;
}

.theme-light #bottom-nav-cafe span.text-emerald-400 {
    color: #059669 !important;
    font-weight: 800 !important;
}

.theme-light #bottom-nav-cafe .text-slate-400 {
    color: #64748b !important;
}

.theme-light #bottom-nav-cafe .bottom-nav-item:hover .bottom-nav-icon-box {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

.theme-light #bottom-nav-cafe .bottom-nav-item:hover span {
    color: #0f172a !important;
}

/* Orders & POS Cart Footers, Drawer & Modals */
.theme-light #mobileStickyBar > div {
    background: #ffffff !important;
    background-image: none !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

.theme-light #mobileStickyBar .text-emerald-200,
.theme-light #mobileStickyBar .text-emerald-300 {
    color: #059669 !important;
}

.theme-light #sheetContent,
.theme-light #sheet-actions-container {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
}

.theme-light .pos-item {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

.theme-light .pos-item:hover {
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
}

.theme-light .btn-add-default {
    background-color: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #065f46 !important;
}

.theme-light .btn-add-default:hover {
    background-color: #059669 !important;
    border-color: #059669 !important;
    color: #ffffff !important;
}

.theme-light .btn-stepper-active {
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

.theme-light .btn-stepper-active .card-qty-display {
    color: #0f172a !important;
}

.theme-light input,
.theme-light select,
.theme-light textarea {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

.theme-light select {
    color-scheme: light !important;
}

.theme-light select option,
.theme-light option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

.theme-light select[name="cafe_id"] {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.theme-light select[name="cafe_id"] ~ i,
.theme-light div:has(> select[name="cafe_id"]) > i {
    color: #059669 !important;
}

.theme-dark select {
    color-scheme: dark !important;
}

.theme-dark select option,
.theme-dark option {
    background-color: #161b22 !important;
    color: #f0f6fc !important;
}

.theme-dark select[name="cafe_id"] {
    background-color: #0d1117 !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    color: #f0f6fc !important;
}

.theme-dark select[name="cafe_id"] ~ i,
.theme-dark div:has(> select[name="cafe_id"]) > i {
    color: #38bdf8 !important;
}

.theme-default select {
    color-scheme: dark !important;
}

.theme-default select option,
.theme-default option {
    background-color: #061a12 !important;
    color: #ecfdf5 !important;
}

.theme-light input::placeholder,
.theme-light textarea::placeholder {
    color: #94a3b8 !important;
}

.theme-light .cat-btn {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #475569 !important;
}

.theme-light .cat-btn:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

.theme-light .stat-filter-card {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.theme-light .stat-filter-card.active {
    background-color: #f0fdf4 !important;
    border-color: #10b981 !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15) !important;
}

/* Ensure buttons with solid colors retain readable white text */
.theme-light button.bg-emerald-600,
.theme-light button.bg-emerald-500,
.theme-light a.bg-emerald-600,
.theme-light a.bg-emerald-500,
.theme-light .btn-submit-order,
.theme-light .bg-rose-500,
.theme-light .bg-rose-600,
.theme-light .bg-blue-600,
.theme-light .bg-amber-500 {
    color: #ffffff !important;
}

/* --- 7. SELECT2 CUSTOM THEME STYLES (UNIVERSAL CLIENT) --- */
.select2-container--default .select2-selection--single {
    background-color: rgba(10, 29, 20, 0.9) !important;
    border: 1px solid rgba(82, 183, 136, 0.3) !important;
    border-radius: 1rem !important;
    height: 3rem !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #ffffff !important;
    padding-left: 2.5rem !important;
    font-size: 0.875rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 3rem !important;
    right: 10px !important;
}

.select2-dropdown {
    background-color: #112a1d !important;
    border: 1px solid rgba(82, 183, 136, 0.3) !important;
    border-radius: 1rem !important;
    overflow: hidden !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: #0a1d14 !important;
    border: 1px solid rgba(82, 183, 136, 0.3) !important;
    color: #ffffff !important;
    border-radius: 0.5rem !important;
    outline: none !important;
}

.select2-container--default .select2-results__option--selected {
    background-color: #1b4332 !important;
    color: #ffffff !important;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #40916c !important;
    color: #ffffff !important;
}

.select2-container--default .select2-results__option {
    color: #e2e8f0 !important;
    padding: 0.625rem 1rem !important;
    font-size: 0.875rem !important;
}

/* --- 8. SWEETALERT2 DINAMIS --- */
div:where(.swal2-container) div:where(.swal2-popup) {
    background-color: var(--bg-card, #0a1d14) !important;
    border: 1px solid var(--border-color, rgba(82, 183, 136, 0.3)) !important;
    color: var(--text-main, #ffffff) !important;
    border-radius: 1.5rem !important;
}

div:where(.swal2-container) .swal2-title {
    color: var(--text-main, #ffffff) !important;
}

div:where(.swal2-container) .swal2-html-container {
    color: var(--text-mute, #cbd5e1) !important;
}

div:where(.swal2-container) .swal2-input,
div:where(.swal2-container) .swal2-select,
div:where(.swal2-container) .swal2-textarea {
    background-color: var(--bg-input, #091a12) !important;
    color: var(--text-main, #ffffff) !important;
    border: 1px solid var(--border-color, rgba(82, 183, 136, 0.3)) !important;
    border-radius: 0.75rem !important;
    outline: none !important;
}

div:where(.swal2-container) .swal2-select option {
    background-color: var(--bg-card, #0a1d14) !important;
    color: var(--text-main, #ffffff) !important;
}

div:where(.swal2-container) .swal2-confirm {
    background-color: var(--accent-color, #10b981) !important;
    color: #022c22 !important;
    font-weight: 800 !important;
    border: none !important;
    border-radius: 1rem !important;
}

div:where(.swal2-container) .swal2-cancel {
    background-color: var(--bg-input, #112a1d) !important;
    color: var(--text-mute, #94a3b8) !important;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15)) !important;
    border-radius: 1rem !important;
}

div:where(.swal2-icon).swal2-error {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

div:where(.swal2-icon).swal2-success {
    border-color: #10b981 !important;
    color: #10b981 !important;
}

/* --- 9. SWEETALERT2 LIGHT THEME OVERRIDES --- */
.theme-light div:where(.swal2-container) div:where(.swal2-popup) {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.theme-light div:where(.swal2-container) .swal2-title {
    color: #0f172a !important;
}

.theme-light div:where(.swal2-container) .swal2-html-container {
    color: #334155 !important;
}

.theme-light div:where(.swal2-container) .swal2-input,
.theme-light div:where(.swal2-container) .swal2-select,
.theme-light div:where(.swal2-container) .swal2-textarea {
    background-color: #f8fafc !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

.theme-light div:where(.swal2-container) .swal2-cancel {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
}

/* --- 10. MODAL BUTTON LIGHT MODE OVERRIDES --- */
.theme-light .btn-modal-close-footer {
    background-color: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.theme-light .btn-modal-close-footer:hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}

.theme-light .btn-modal-close-footer i {
    color: #64748b !important;
}

.theme-light .btn-plan-downgrade {
    background-color: #fffbeb !important;
    border: 1.5px solid #f59e0b !important;
    color: #b45309 !important;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.15) !important;
}

.theme-light .btn-plan-downgrade:hover {
    background-color: #f59e0b !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.3) !important;
}

.theme-light .btn-plan-downgrade i {
    color: inherit !important;
}
/* Light theme: chip terpilih tetap SOLID (kontras di atas kartu putih) */
.theme-light label.product-type-toggle > input:checked + div {
    background-color: #f59e0b !important;
    border-color: #b45309 !important;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.28) !important;
}

.theme-light label.product-type-toggle > input:checked + div i,
.theme-light label.product-type-toggle > input:checked + div span {
    color: #ffffff !important;
}

.theme-light label.product-type-toggle:nth-child(2) > input:checked + div {
    background-color: #059669 !important;
    border-color: #047857 !important;
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.25) !important;
}

.theme-light label.product-type-toggle:nth-child(2) > input:checked + div i,
.theme-light label.product-type-toggle:nth-child(2) > input:checked + div span {
    color: #ffffff !important;
}

.theme-light label.product-type-toggle:nth-child(3) > input:checked + div {
    background-color: #e11d48 !important;
    border-color: #9f1239 !important;
    box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.25) !important;
}

.theme-light label.product-type-toggle:nth-child(3) > input:checked + div i,
.theme-light label.product-type-toggle:nth-child(3) > input:checked + div span {
    color: #ffffff !important;
}

/* ==========================================================================
   --- 11. HIGH-CONTRAST SWITCH (TOGGLE ON/OFF) — TERBACA DI SEMUA TEMA ---
   Dipakai oleh switch penting seperti "Auto-Cancel Pesanan" dan
   "Status Menu (Tampilkan di kasir & order)".
   Pemakaian: <label class="toggle-contrast toggle-contrast-amber">...<input type="checkbox" ...><div ...></div></label>
   Varian warna saat ON: .toggle-contrast-amber / -emerald / -sky
   ========================================================================== */
/* Catatan: selector memakai [class] agar specificity (0,2,3) lebih tinggi
   daripada override tema seperti `.theme-light .bg-forest-900` (0,2,0),
   sehingga switch ini SELALU terlihat di semua tema. */
label.toggle-contrast[class] > input + div {
    background-color: #334155 !important;
    /* OFF: slate gelap -> kontras di tema terang maupun gelap */
    border-color: #94a3b8 !important;
    border-width: 1.5px !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

label.toggle-contrast[class] > input + div::after {
    background-color: #f8fafc !important;
    border-color: rgba(15, 23, 42, 0.35) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45) !important;
}

label.toggle-contrast[class] > input:checked + div {
    background-color: var(--switch-on, #10b981) !important;
    border-color: var(--switch-on-border, #6ee7b7) !important;
    box-shadow: 0 0 0 3px var(--switch-on-glow, rgba(16, 185, 129, 0.28)), inset 0 1px 2px rgba(255, 255, 255, 0.25) !important;
}

label.toggle-contrast[class] > input:checked + div::after {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
}

label.toggle-contrast[class] > input:focus-visible + div {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

label.toggle-contrast[class] > input:disabled + div {
    cursor: not-allowed;
    opacity: 0.55;
}

/* Warna ON yang CERAH per variabel */
label.toggle-contrast-amber {
    --switch-on: #f59e0b;
    --switch-on-border: #fcd34d;
    --switch-on-glow: rgba(245, 158, 11, 0.35);
}

label.toggle-contrast-emerald {
    --switch-on: #10b981;
    --switch-on-border: #6ee7b7;
    --switch-on-glow: rgba(16, 185, 129, 0.35);
}

label.toggle-contrast-sky {
    --switch-on: #0ea5e9;
    --switch-on-border: #7dd3fc;
    --switch-on-glow: rgba(14, 165, 233, 0.35);
}

/* ==========================================================================
   --- 12. PANEL PILIHAN FORMAT HURUF (Aa / AA / aa) — AUTO KAPITAL ---
   Dipakai untuk "Tambah Kategori Baru" (auto kapital di awal kata, namun
   tetap bisa diubah menjadi SEMUA BESAR atau semua kecil).
   Logika JS: public/assets/js/text-case.js
   ========================================================================== */
.case-mode-group {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 0.75rem;
    background-color: rgba(51, 65, 85, 0.5) !important;
    border: 1px solid rgba(148, 163, 184, 0.55) !important;
}

.case-mode-group .case-mode-label {
    padding: 0 5px 0 3px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #cbd5e1 !important;
    white-space: nowrap;
}

.case-mode-group [data-case-mode] {
    appearance: none;
    -webkit-appearance: none;
    min-width: 30px;
    padding: 4px 8px;
    border-radius: 0.5rem;
    border: 1px solid transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: #e2e8f0 !important;
    font-family: inherit;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.case-mode-group [data-case-mode]:not(.is-active):hover {
    background-color: rgba(148, 163, 184, 0.28) !important;
    color: #ffffff !important;
}

.case-mode-group [data-case-mode].is-active {
    background-color: #10b981 !important;
    border-color: #6ee7b7 !important;
    color: #052e22 !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3) !important;
}

/* Light theme: panel format huruf versi terang */
.theme-light .case-mode-group {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

.theme-light .case-mode-group .case-mode-label {
    color: #475569 !important;
}

.theme-light .case-mode-group [data-case-mode] {
    color: #334155 !important;
}

.theme-light .case-mode-group [data-case-mode]:not(.is-active):hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}

.theme-light .case-mode-group [data-case-mode].is-active {
    background-color: #059669 !important;
    border-color: #047857 !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.25) !important;
}
