@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
    --pos-bg: #f1f5f9;
    --pos-surface: #ffffff;
    --pos-dark: #0f172a;
    --pos-dark-elevated: #1e293b;
    --pos-brand: #f97316;
    --pos-brand-hover: #ea580c;
    --pos-accent: #f59e0b;
    --pos-success: #10b981;
    --pos-danger: #ef4444;
    --pos-info: #0ea5e9;
    --pos-border: #e2e8f0;
    --pos-text: #0f172a;
    --pos-muted: #64748b;
    --pos-radius: 14px;
    --pos-radius-sm: 10px;
    --pos-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    --pos-shadow-hover: 0 12px 28px -4px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.06);
}

body {
    background-color: var(--pos-bg);
    color: var(--pos-text);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    letter-spacing: -0.01em;
    min-height: 100vh;
}

code, .font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* ==================== MODERN TOP NAVBAR ==================== */
.pos-navbar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.55rem 1rem;
}

.pos-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff !important;
    text-decoration: none;
}

.pos-brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f97316 0%, #eab308 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}

.pos-navbar .nav-link {
    color: #cbd5e1 !important;
    font-weight: 600;
    font-size: 0.86rem;
    padding: 0.48rem 0.85rem !important;
    border-radius: 9px;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.pos-navbar .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08);
}

.pos-navbar .nav-link.active-nav {
    color: #ffffff !important;
    background: rgba(249, 115, 22, 0.2);
    border: 1px solid rgba(249, 115, 22, 0.45);
}

.pos-navbar .nav-link.pos-launch-link {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.pos-navbar .nav-link.pos-launch-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.45);
}

.business-day-pill {
    background: rgba(15, 23, 42, 0.75);
    color: #e2e8f0;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 10px;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.business-day-pill .pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

/* ==================== ELEVATED CARDS & TABLES ==================== */
.card {
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: var(--pos-radius);
    box-shadow: var(--pos-shadow);
    background: var(--pos-surface);
    overflow: hidden;
}

.card-header {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    padding: 0.85rem 1.15rem;
    font-weight: 700;
}

.kpi-card {
    border-radius: var(--pos-radius);
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #ffffff;
    box-shadow: var(--pos-shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    position: relative;
    overflow: hidden;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--pos-shadow-hover);
}

.kpi-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.kpi-primary { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.kpi-success { background: rgba(16, 185, 129, 0.12); color: #059669; }
.kpi-warning { background: rgba(249, 115, 22, 0.12); color: #ea580c; }
.kpi-info    { background: rgba(14, 165, 233, 0.12); color: #0284c7; }
.kpi-danger  { background: rgba(239, 68, 68, 0.12);  color: #dc2626; }

/* ==================== TOUCHSCREEN POS TERMINAL ==================== */
.pos-product-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    padding: 0.75rem;
    min-height: 112px;
    cursor: pointer;
    user-select: none;
    transition: all 0.14s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.pos-product-card:hover {
    border-color: #f97316;
    box-shadow: 0 8px 20px -4px rgba(249, 115, 22, 0.18);
    transform: translateY(-2px);
}

.pos-product-card:active {
    transform: scale(0.96);
}

.pos-product-card .price-pill {
    background: rgba(249, 115, 22, 0.12);
    color: #ea580c;
    font-weight: 800;
    font-size: 0.88rem;
    padding: 0.2rem 0.55rem;
    border-radius: 8px;
}

.cat-filter {
    border-radius: 999px !important;
    padding: 0.38rem 0.95rem !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    transition: all 0.15s ease;
}

.cat-filter.active {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    border-color: #ea580c !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}

.order-type-selector .btn,
.pay-method-selector .btn {
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.45rem 0.5rem;
}

.grand-total-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

.quick-cash-btn {
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 8px;
    padding: 0.25rem 0.55rem;
}

/* ==================== TABLES & FORMS ==================== */
.table > thead > tr > th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #e2e8f0;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.form-control, .form-select {
    border-radius: 9px;
    border-color: #cbd5e1;
}

.form-control:focus, .form-select:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.btn {
    border-radius: 9px;
    font-weight: 600;
}

.btn-warning {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border: none;
    color: #ffffff !important;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: #ffffff !important;
}

/* ==================== CUSTOM SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .no-print { display: none !important; }
    body { background: #ffffff !important; }
    .card, .kpi-card { box-shadow: none !important; border: 1px solid #cbd5e1 !important; }
}
