/* POSTHALF POS TOKO SEPATU - Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

[x-cloak] {
    display: none !important;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Size Pills in POS */
.size-pill {
    transition: all 0.15s ease-in-out;
}
.size-pill:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.size-pill.selected {
    background-color: #4f46e5 !important;
    color: #ffffff !important;
    border-color: #4f46e5 !important;
}

/* Thermal Print Styling */
@media print {
    body * {
        visibility: hidden;
    }
    #thermal-receipt, #thermal-receipt * {
        visibility: visible;
    }
    #thermal-receipt {
        position: absolute;
        left: 0;
        top: 0;
        width: 100% !important;
        margin: 0 !important;
        padding: 4px !important;
        background: #fff !important;
        color: #000 !important;
        box-shadow: none !important;
    }
    .no-print {
        display: none !important;
    }
    @page {
        margin: 0;
        size: auto;
    }
}

.receipt-58mm {
    width: 58mm;
    max-width: 58mm;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    line-height: 1.25;
}

.receipt-80mm {
    width: 80mm;
    max-width: 80mm;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    line-height: 1.3;
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

/* QR Code Camera Scanner Viewfinder & Video Styling */
.camera-reader-box {
    position: relative;
    width: 100% !important;
    min-height: 280px !important;
    max-height: 340px !important;
    overflow: hidden !important;
    border-radius: 1.25rem !important;
    background: #090d16 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.camera-reader-box video {
    width: 100% !important;
    height: 100% !important;
    max-height: 340px !important;
    object-fit: cover !important;
    border-radius: 1.25rem !important;
    display: block !important;
}

.camera-reader-box canvas {
    border-radius: 1.25rem !important;
}

/* Scanner Laser Animation */
@keyframes qrScanLaser {
    0% { top: 14%; opacity: 0.8; }
    50% { top: 82%; opacity: 1; }
    100% { top: 14%; opacity: 0.8; }
}

.qr-scan-laser {
    position: absolute;
    left: 15%;
    right: 15%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00e5ff, #0088e8, #00e5ff, transparent);
    box-shadow: 0 0 12px #00e5ff, 0 0 20px #0088e8;
    animation: qrScanLaser 2s infinite ease-in-out;
    z-index: 15;
    pointer-events: none;
}

/* Target Corner Brackets */
.qr-target-corner {
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: #00e5ff;
    border-style: solid;
    z-index: 14;
    pointer-events: none;
}
.qr-target-tl { top: 15%; left: 15%; border-width: 4px 0 0 4px; border-top-left-radius: 8px; }
.qr-target-tr { top: 15%; right: 15%; border-width: 4px 4px 0 0; border-top-right-radius: 8px; }
.qr-target-bl { bottom: 15%; left: 15%; border-width: 0 0 4px 4px; border-bottom-left-radius: 8px; }
.qr-target-br { bottom: 15%; right: 15%; border-width: 0 4px 4px 0; border-bottom-right-radius: 8px; }

