/* Custom styling for Mini ATM application — Mobile, Tablet & Desktop Responsive */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

html, body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

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

/* Hide scrollbar for horizontal pill filters on mobile/tablet */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Smooth momentum scrolling on iOS/Android */
.overflow-x-auto, .overflow-y-auto {
    -webkit-overflow-scrolling: touch;
}

/* Safe area support for bottom nav on notched phones */
.safe-bottom {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Glassmorphism & Shadow utilities */
.card-shadow {
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
}

/* Prevent iOS Safari auto-zoom when tapping form controls on mobile */
@media (max-width: 767px) {
    input[type="text"],
    input[type="number"],
    input[type="date"],
    input[type="datetime-local"],
    input[type="search"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Gaya Print Thermal 58mm / 80mm */
@media print {
    body * {
        visibility: hidden;
    }
    #printable-receipt, #printable-receipt * {
        visibility: visible;
    }
    #printable-receipt {
        position: absolute;
        left: 0;
        top: 0;
        width: 58mm; /* Standar Thermal 58mm */
        padding: 2mm 3mm;
        margin: 0;
        font-family: 'JetBrains Mono', monospace, Courier;
        font-size: 11px;
        color: #000;
        background: #fff;
    }
    .no-print {
        display: none !important;
    }
    
    /* Formal Report print */
    #printable-report, #printable-report * {
        visibility: visible;
    }
    #printable-report {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 10mm;
        font-family: 'Plus Jakarta Sans', sans-serif;
    }
}
