/* assets/css/app.css */
/* Styling kustom untuk Toko HP & Sistem IMEI */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
}
::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.4);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.7);
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.glass-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Timeline Vertical Line */
.timeline-line::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: rgba(99, 102, 241, 0.25);
    z-index: 0;
}

/* Animation utilities */
@keyframes pulse-subtle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.02); }
}
.animate-pulse-subtle {
    animation: pulse-subtle 2s infinite ease-in-out;
}

/* ===================================================
   CETAK STRUK THERMAL 58MM STANDAR KASIR POS
   =================================================== */
@media print {
    /* Sembunyikan seluruh UI web biasa */
    body * {
        visibility: hidden !important;
    }

    /* Tampilkan HANYA kontainer struk thermal */
    #thermal-receipt-area, #thermal-receipt-area * {
        visibility: visible !important;
    }

    #thermal-receipt-area {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 58mm !important;
        max-width: 58mm !important;
        margin: 0 !important;
        padding: 4px 6px !important;
        background: #ffffff !important;
        color: #000000 !important;
        font-family: 'Courier New', Courier, monospace !important;
        font-size: 11px !important;
        line-height: 1.25 !important;
        box-shadow: none !important;
        border: none !important;
    }

    @page {
        size: 58mm auto;
        margin: 0;
    }
}

/* Tampilan preview struk thermal di layar */
.receipt-58mm {
    width: 320px;
    background: #ffffff;
    color: #111827;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    line-height: 1.3;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}
.receipt-divider {
    border-top: 1px dashed #4b5563;
    margin: 8px 0;
}
.receipt-double-divider {
    border-top: 2px dashed #111827;
    margin: 8px 0;
}

/* ===================================================
   TEMA TERANG (LIGHT MODE) STYLING SYSTEM
   =================================================== */
html {
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* Body & Latar Belakang Utama */
html.light body {
    background-color: #f8fafc !important;
    color: #0f172a !important;
}

/* Area Konten Utama */
html.light .bg-slate-950\/80,
html.light .bg-slate-950\/90,
html.light .bg-slate-950 {
    background-color: #f8fafc !important;
}

/* Sidebar Navigasi */
html.light aside#appSidebar {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 4px 0 24px -2px rgba(15, 23, 42, 0.04) !important;
}
html.light aside#appSidebar .border-slate-800,
html.light aside#appSidebar .border-slate-800\/80,
html.light aside#appSidebar .border-slate-800\/60 {
    border-color: #f1f5f9 !important;
}
html.light aside#appSidebar .bg-slate-900\/50,
html.light aside#appSidebar .bg-slate-900\/60,
html.light aside#appSidebar .bg-slate-950\/40 {
    background-color: #f8fafc !important;
}

/* Topbar Header */
html.light header {
    background-color: rgba(255, 255, 255, 0.92) !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.05) !important;
}

/* Footer */
html.light footer {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
}

/* Kartu & Panel (Card Surfaces) */
html.light .bg-slate-900,
html.light .bg-slate-900\/80,
html.light .bg-slate-900\/70,
html.light .bg-slate-900\/60,
html.light .bg-slate-900\/50 {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.04), 0 2px 4px -2px rgba(15, 23, 42, 0.02);
}

/* Area Berlekuk / Sunken Surfaces */
html.light .bg-slate-950\/70,
html.light .bg-slate-950\/60,
html.light .bg-slate-950\/50,
html.light .bg-slate-950\/40,
html.light .bg-slate-950\/30 {
    background-color: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
}

/* Tombol Sekunder & Komponen Slate-800 */
html.light .bg-slate-800,
html.light .bg-slate-800\/80,
html.light .bg-slate-800\/70,
html.light .bg-slate-800\/60,
html.light .bg-slate-800\/50 {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}
html.light .bg-slate-800:hover,
html.light .hover\:bg-slate-800:hover,
html.light .hover\:bg-slate-800\/80:hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}
html.light .hover\:bg-slate-700:hover {
    background-color: #cbd5e1 !important;
    color: #0f172a !important;
}

/* Border & Divider */
html.light .border-slate-800,
html.light .border-slate-800\/80,
html.light .border-slate-800\/60,
html.light .border-slate-700,
html.light .border-slate-700\/80,
html.light .border-slate-700\/60 {
    border-color: #e2e8f0 !important;
}
html.light .divide-slate-800 > :not([hidden]) ~ :not([hidden]),
html.light .divide-slate-700 > :not([hidden]) ~ :not([hidden]) {
    border-color: #e2e8f0 !important;
}

/* Tipografi Mode Terang */
html.light .text-white {
    color: #0f172a !important;
}
html.light .text-slate-100,
html.light .text-slate-200 {
    color: #1e293b !important;
}
html.light .text-slate-300 {
    color: #334155 !important;
}
html.light .text-slate-400 {
    color: #64748b !important;
}
html.light .text-slate-500 {
    color: #64748b !important;
}

/* Pertahankan teks putih pada tombol berwarna primer */
html.light button.bg-indigo-600,
html.light a.bg-indigo-600,
html.light .bg-indigo-600.text-white,
html.light button.bg-emerald-600,
html.light a.bg-emerald-600,
html.light .bg-emerald-600.text-white,
html.light button.bg-rose-600,
html.light a.bg-rose-600,
html.light .bg-rose-600.text-white,
html.light button.bg-amber-600,
html.light .bg-amber-600.text-white,
html.light button.bg-blue-600,
html.light .bg-blue-600.text-white,
html.light button.bg-cyan-600,
html.light .bg-cyan-600.text-white,
html.light .badge-white-text,
html.light .btn-white-text {
    color: #ffffff !important;
}

/* Input Form, Select, & Textarea */
html.light input:not([type="checkbox"]):not([type="radio"]),
html.light select,
html.light textarea {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}
html.light input:not([type="checkbox"]):not([type="radio"]):focus,
html.light select:focus,
html.light textarea:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}
html.light input::placeholder,
html.light textarea::placeholder {
    color: #94a3b8 !important;
}

/* Modals & Popups */
html.light .fixed.inset-0.bg-slate-950\/80,
html.light .fixed.inset-0.bg-slate-950\/85,
html.light .fixed.inset-0.bg-slate-950\/75 {
    background-color: rgba(15, 23, 42, 0.45) !important;
}
html.light #scannerModal > div,
html.light #quickWarrantyModal > div,
html.light #imeiTimelineModal > div,
html.light #receiptPreviewModal > div,
html.light #productModal > div,
html.light #cancelSaleModal > div,
html.light #userModal > div,
html.light .modal-container {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25) !important;
}

/* Tabel Data Mode Terang */
html.light table thead {
    background-color: #f8fafc !important;
    border-bottom: 2px solid #e2e8f0 !important;
}
html.light table thead th {
    color: #475569 !important;
    font-weight: 700 !important;
}
html.light table tbody tr {
    border-color: #f1f5f9 !important;
}
html.light table tbody tr:hover {
    background-color: #f8fafc !important;
}

/* Badges Status Mode Terang */
html.light .bg-emerald-500\/10 {
    background-color: #ecfdf5 !important;
    color: #047857 !important;
    border-color: #a7f3d0 !important;
}
html.light .bg-amber-500\/10 {
    background-color: #fffbeb !important;
    color: #b45309 !important;
    border-color: #fde68a !important;
}
html.light .bg-rose-500\/10 {
    background-color: #fff1f2 !important;
    color: #be123c !important;
    border-color: #fecdd3 !important;
}
html.light .bg-indigo-500\/10,
html.light .bg-indigo-500\/20 {
    background-color: #eef2ff !important;
    color: #4338ca !important;
    border-color: #c7d2fe !important;
}
html.light .bg-sky-500\/10 {
    background-color: #f0f9ff !important;
    color: #0369a1 !important;
    border-color: #bae6fd !important;
}

/* Glassmorphism di Mode Terang */
html.light .glass-panel {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05) !important;
}
html.light .glass-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05) !important;
}

/* Scrollbar Mode Terang */
html.light ::-webkit-scrollbar-track {
    background: #f1f5f9;
}
html.light ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}
html.light ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* SweetAlert2 Mode Terang */
html.light .swal2-popup {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.2) !important;
}
html.light .swal2-title,
html.light .swal2-html-container {
    color: #0f172a !important;
}

/* Halaman Login Mode Terang */
html.light .login-card {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.1) !important;
}
html.light .login-demo-btn {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
}
html.light .login-demo-btn:hover {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}


