/* Custom Styling & Blue Theme Design System for Bengkel AC POS */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #090d16;
    color: #f8fafc;
    -webkit-tap-highlight-color: transparent;
}

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

/* Elevated Solid Cards & Modals - NO UGLY TRANSPARENCY */
.modal-card {
    background-color: #0f172a !important;
    border: 1px solid #1e293b !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), 0 0 30px rgba(37, 99, 235, 0.15);
}

.modal-backdrop {
    background-color: rgba(2, 6, 23, 0.85) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Card Hover Animation */
.card-hover {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 12px 30px -5px rgba(37, 99, 235, 0.25);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #090d16;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* Modern Blue Input Controls */
input[type="text"],
input[type="number"],
input[type="password"],
input[type="date"],
select,
textarea {
    background-color: #090d16 !important;
    border: 1px solid #1e293b !important;
    color: #f8fafc !important;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
    outline: none !important;
}

/* POS Table Custom Styling */
.table-custom th {
    background-color: #0b1329;
    color: #94a3b8;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table-custom td {
    border-bottom: 1px solid #1e293b;
}

/* SweetAlert Blue Theme Styling */
.swal2-popup {
    background: #0f172a !important;
    color: #f8fafc !important;
    border: 1px solid #1e293b !important;
    border-radius: 1.25rem !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8) !important;
}

.swal2-title {
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
}

.swal2-html-container {
    color: #94a3b8 !important;
}

.swal2-confirm {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4) !important;
    font-weight: 600 !important;
    border-radius: 0.75rem !important;
    padding: 10px 24px !important;
}

.swal2-cancel {
    background-color: #1e293b !important;
    color: #94a3b8 !important;
    font-weight: 600 !important;
    border-radius: 0.75rem !important;
    padding: 10px 20px !important;
}

/* Barcode Sticker Preview Sheet */
.barcode-sheet {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.barcode-item {
    background: white;
    color: black;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    border: 1px dashed #cbd5e1;
}

/* Utility No Print */
@media print {
    .no-print {
        display: none !important;
    }
}

/* POS Responsive Cart Layout - Prevents Bayar Sekarang button from being cut off on any device */
#pos-panel-cart {
    height: 100% !important;
    max-height: 100% !important;
}

#pos-panel-cart:not(.hidden) {
    display: flex !important;
    flex-direction: column !important;
}

#cart-scrollable-body {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

#checkout-pinned-footer {
    flex-shrink: 0 !important;
}