:root {
    --bc-blue: #153a73;
    --bc-blue-dark: #10284c;
    --bc-light: #f5f7fb;
    --bc-card: #ffffff;
    --bc-accent: #ff8a1f;
    --bc-green: #1fa750;
    --bc-red: #dc3545;
    --bc-border: #dde4f0;
    --bc-text: #1c2b3a;
    --bc-muted: #6d7c90;
}
body { background: var(--bc-light); color: var(--bc-text); font-size: 14px; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
    width: 260px; background: linear-gradient(180deg, #12305f 0%, #1b4d90 100%); color: #fff;
    padding: 24px 16px; position: sticky; top: 0; height: 100vh;
}
.brand-block { display: flex; align-items: center; gap: 12px; }
.brand-logo {
    width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
    background: rgba(255,255,255,0.18); font-weight: 700; font-size: 18px;
}
.sidebar .nav-link {
    color: rgba(255,255,255,0.9); padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.05);
}
.sidebar .nav-link:hover, .sidebar .nav-link.active { background: rgba(255,255,255,0.18); color: #fff; }
.sidebar .nav-link i { margin-right: 10px; }
.content-area { flex: 1; padding: 24px; }
.topbar, .card-soft, .table-wrap, .login-card, .pos-shell { background: var(--bc-card); border: 1px solid var(--bc-border); border-radius: 18px; box-shadow: 0 10px 30px rgba(17, 39, 89, 0.06); }
.topbar { padding: 18px 20px; }
.page-kicker { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--bc-muted); font-weight: 700; }
.card-soft { padding: 18px; }
.metric-card .icon-wrap {
    width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
    background: #edf3ff; color: var(--bc-blue); font-size: 20px;
}
.table-wrap { padding: 10px; }
.table thead th { background: #f8faff; color: #58708d; font-size: 12px; text-transform: uppercase; }
.login-page { min-height: 100vh; }
.login-card { width: 100%; max-width: 430px; padding: 32px; }
.section-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.summary-box { border-radius: 14px; background: #f8fbff; padding: 12px; }
.badge-soft { background: #eef5ff; color: var(--bc-blue); }
.thumb-preview { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; border: 1px solid var(--bc-border); }

.pos-modern-layout { display: grid; grid-template-columns: 1.65fr .95fr; gap: 20px; align-items: start; }
.pos-shell { overflow: hidden; }
.pos-toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--bc-border); }
.pos-toolbar-actions { display: flex; align-items: center; gap: 12px; }
.search-wrap { position: relative; min-width: 320px; }
.search-wrap i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--bc-muted); }
.search-wrap .form-control { padding-left: 38px; border-radius: 12px; background: #f7f8fb; }
.pos-category-tabs { display: flex; gap: 8px; overflow: auto; scrollbar-width: thin; }
.cat-tab { border: 1px solid var(--bc-border); background: #fff; color: var(--bc-text); border-radius: 10px; padding: 8px 14px; white-space: nowrap; }
.cat-tab.active { border-color: var(--bc-accent); background: #fff5ec; color: #cb6a08; }
.pos-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; max-height: 680px; overflow: auto; }
.menu-card {
    border: 1px solid var(--bc-border); border-radius: 16px; background: #fff; padding: 12px; text-align: left;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; min-height: 240px;
}
.menu-card:hover { transform: translateY(-2px); border-color: #b8caf0; box-shadow: 0 14px 28px rgba(17, 39, 89, 0.08); }
.menu-card-image-wrap { display: flex; justify-content: center; align-items: center; margin-bottom: 12px; }
.menu-card-image { width: 108px; height: 108px; object-fit: cover; border-radius: 999px; border: 4px solid #f2f5fb; }
.menu-card-image.placeholder {
    width: 108px; height: 108px; display: grid; place-items: center; border-radius: 999px; border: 2px dashed var(--bc-border);
    color: var(--bc-muted); background: #f8faff; font-size: 28px;
}
.menu-card-title { font-weight: 700; line-height: 1.25; min-height: 38px; }
.menu-card-meta { color: var(--bc-muted); font-size: 12px; margin-top: 6px; }
.menu-card-price { margin-top: 10px; font-weight: 800; font-size: 16px; }
.order-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--bc-border); }
.cart-items { min-height: 320px; max-height: 420px; overflow: auto; padding: 10px 14px; background: #fbfcff; }
.empty-cart { color: var(--bc-muted); text-align: center; padding: 60px 20px; }
.cart-row { border: 1px solid var(--bc-border); border-radius: 14px; background: #fff; padding: 12px; margin-bottom: 10px; }
.cart-row-main { margin-bottom: 10px; }
.cart-row-actions { display: grid; grid-template-columns: 36px 80px 36px 1fr 36px; gap: 8px; align-items: center; }
.qty-btn, .remove-btn {
    width: 36px; height: 36px; border: 1px solid var(--bc-border); border-radius: 10px; background: #fff;
}
.qty-input { border: 1px solid var(--bc-border); border-radius: 10px; text-align: center; height: 36px; width: 100%; }
.cart-line-total { text-align: right; font-weight: 700; }
.order-foot { padding: 16px; border-top: 1px solid var(--bc-border); background: #fff; }
.totals-box { border-radius: 14px; background: #fff7ef; padding: 14px; display: grid; gap: 10px; }
.totals-box div { display: flex; justify-content: space-between; align-items: center; }

@media (max-width: 1199px) {
    .pos-modern-layout { grid-template-columns: 1fr; }
}
@media (max-width: 991px) {
    .sidebar { display: none; }
    .content-area { padding: 14px; }
    .search-wrap { min-width: 100%; }
    .pos-toolbar { flex-direction: column; align-items: stretch; }
}
@media (max-width: 575px) {
    .pos-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .menu-card { min-height: 210px; }
    .menu-card-image, .menu-card-image.placeholder { width: 88px; height: 88px; }
    .cart-row-actions { grid-template-columns: 34px 70px 34px 1fr 34px; }
}
