@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body { 
    font-family: 'Inter', sans-serif; 
}

/* REVISI 1: Hapus Highlight Tap pada Mobile */
* { 
    -webkit-tap-highlight-color: transparent; 
}

/* Scrollbar Styling */
::-webkit-scrollbar { 
    width: 5px; 
    height: 5px; 
}
::-webkit-scrollbar-track { 
    background: #f1f1f1; 
}
::-webkit-scrollbar-thumb { 
    background: #cbd5e1; 
    border-radius: 10px; 
}
::-webkit-scrollbar-thumb:hover { 
    background: #94a3b8; 
}

/* No Select */
.no-select { 
    user-select: none; 
    -webkit-user-select: none; 
}

/* Admin Sidebar Active State */
.admin-nav-item.active {
    color: #2563eb !important;
    font-weight: 700 !important;
    background-color: transparent !important;
    border: none !important;
}

/* Efek "Menyala" hanya saat ditekan */
.admin-nav-item:active {
    color: #1e40af !important;
    background-color: #f3f4f6 !important;
    transform: scale(0.98) !important;
    transition: all 0.1s ease !important;
}

/* Receipt Preview Styling */
.receipt-preview {
    font-family: 'Courier New', Courier, monospace;
    background-color: #fff;
    padding: 20px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    font-size: 11px;
    line-height: 1.4;
    color: #000;
}

.receipt-divider { 
    border-top: 1px dashed #000; 
    margin: 8px 0; 
}

/* Sidebar Transition */
#admin-sidebar { 
    transition: width 0.3s ease; 
}
.sidebar-text { 
    transition: opacity 0.2s ease; 
    white-space: nowrap; 
    overflow: hidden; 
}
.sidebar-minimized .sidebar-text { 
    opacity: 0; 
    width: 0; 
    display: none; 
}
.sidebar-minimized .admin-nav-item { 
    padding-left: 0; 
    padding-right: 0; 
    justify-content: center; 
}
.sidebar-minimized #admin-sidebar-header h2 { 
    display: none; 
}
.sidebar-minimized .section-label { 
    display: none; 
}

/* Hide number input spinners */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}

/* Hide scrollbar but keep functionality */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* PRINT STYLES FOR THERMAL PRINTER */
@media print {
    body * {
        visibility: hidden;
    }
    #print-area, #print-area * {
        visibility: visible;
    }
    #print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    @page {
        margin: 0;
        size: auto;
    }
}

/* CSS Khusus untuk Iframe Cetak / Thermal */
.thermal-print {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    width: 58mm;
    padding: 2px;
    margin: 0 auto;
    color: #000;
}
.thermal-print h2, .thermal-print h3 {
    margin: 0;
    text-align: center;
    text-transform: uppercase;
}
.thermal-print p {
    margin: 2px 0;
}
.thermal-print .center { text-align: center; }
.thermal-print .right { text-align: right; }
.thermal-print .bold { font-weight: bold; }
.thermal-print .divider {
    border-top: 1px dashed #000;
    margin: 8px 0;
    width: 100%;
}
.thermal-print .flex-row {
    display: flex;
    justify-content: space-between;
}

/* Mobile navigation positioning */
.mobile-nav-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

@media (min-width: 768px) {
    .mobile-nav-bottom {
        position: relative;
    }
}