/* =====================================================================
   v8.0 Refined theme (Niqesh Dine)
   - Typography: Sora for the English interface (Bengali keeps Hind Siliguri)
   - Light gray application background, pure white panels and cards
   - Sharp, architectural corners; hairline borders with a light reflective edge
   - Flat light-gray items inside panels
   - Luminous white hover border on menu items
   Kept as one layer at the end so the original rules above stay intact.
   ===================================================================== */
:root {
  --page-bg: #F1F3F6;
  --panel-bg: #FFFFFF;
  --panel-edge: #E2E6EB;          /* hairline border */
  --panel-edge-lit: #F5F7F9;      /* top/left edges catch the light */
  --item-bg: #F2F4F7;             /* flat gray rows inside a panel */
  --item-hover: #ECEFF3;
  --r-panel: 3px;
  --r-item: 2px;
  --panel-shadow:
    0 0 0 1px rgba(255,255,255,0.85),                 /* light reflective rim against the gray page */
    inset 0 1px 0 rgba(255,255,255,1),                /* top highlight inside the edge */
    0 1px 2px rgba(16,24,40,0.05),
    0 4px 12px -6px rgba(16,24,40,0.10);
}

/* ---- Typography: Sora in English only ---- */
body:not(.lang-bn) {
  font-family: 'Sora', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
body:not(.lang-bn) h1, body:not(.lang-bn) h2, body:not(.lang-bn) h3 { letter-spacing: -0.015em; line-height: 1.3; }
body:not(.lang-bn) b, body:not(.lang-bn) strong, body:not(.lang-bn) .bold,
body:not(.lang-bn) .section-title, body:not(.lang-bn) .fc-title { font-weight: 600; }
body:not(.lang-bn) .btn, body:not(.lang-bn) button { letter-spacing: 0; }
body:not(.lang-bn) .btn, body:not(.lang-bn) .hot-btn { font-weight: 600; }
body:not(.lang-bn) .menu-item { font-size: 15px; }
body:not(.lang-bn) .app-menu-submenu .menu-item { font-size: 14px; }
body:not(.lang-bn) .app-menu-section-label { letter-spacing: 0.07em; font-size: 11.5px; font-weight: 600; }
body:not(.lang-bn) .stat-card .stat-value, body:not(.lang-bn) .rev-total b { font-weight: 600; }
body:not(.lang-bn) .muted { letter-spacing: 0; }
body:not(.lang-bn) input, body:not(.lang-bn) select, body:not(.lang-bn) textarea { font-size: 15px; }
/* The credit line keeps its own brand lettering */
.footer-credit .brand-niqesh, .footer-credit .brand-digi, .footer-credit .brand-wizr { letter-spacing: normal; line-height: inherit; }

/* ---- Background: very light gray application area ---- */
html, body, body:has(.screen-body.reports-body) { background: var(--page-bg); }
#app, .screen-body, .screen-body.reports-body { background: transparent; }
body.desk-shell .desk-titlebar { background: var(--page-bg); }
.screen-body.reports-body .fc, .screen-body.reports-body .fc.fc-auto { background: var(--panel-bg); }

/* ---- Panels: pure white, hairline border, lit top/left edge, sharp corners ---- */
.fc, .fc.fc-auto, .notification-card, .stat-card, .home-body .stat-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-edge);
  border-top-color: var(--panel-edge-lit);
  border-left-color: var(--panel-edge-lit);
  border-radius: var(--r-panel);
  box-shadow: var(--panel-shadow);
}
.reports-body .card, .reports-body .stat-card, .reports-body .chart-wrap, .reports-body .hot-card {
  background: transparent; border: none; box-shadow: none; border-radius: 0;
}
.fc-title::before { border-radius: 0; }
.modal-box { border-radius: var(--r-panel); border: 1px solid var(--panel-edge); box-shadow: 0 18px 40px -12px rgba(16,24,40,0.35), 0 0 0 1px rgba(255,255,255,0.6); }

/* ---- Items inside panels: flat, narrow, light gray rectangles ---- */
.card, .cart-item-v2, .product-card, .menu-cat {
  background: var(--item-bg);
  border: 1px solid transparent;
  border-radius: var(--r-item);
  padding: 9px 12px;
  margin-bottom: 6px;
  box-shadow: none;
}
.card.with-thumb { gap: 12px; }
.card:hover:not(.not-offered), .product-card:hover { background: var(--item-hover); }
.product-card.selected, .card.selected { background: #E3F4EA; border-color: #A9DDBC; color: var(--navy); }
.product-card.selected .muted { color: var(--grey); }
.cart-item-v2 { padding: 8px 36px 8px 12px; }
.order-grid > .card { margin-bottom: 0; }

/* Take Order / Booking menu tree */
.menu-cat { padding: 0; margin-bottom: 6px; overflow: hidden; }
.menu-cat-head:hover, .menu-sub-head:hover { background: var(--item-hover); }
.menu-cat.open > .menu-cat-head { background: #E4F3EA; }
.menu-cat-body { border-top: 1px solid var(--panel-edge); }
.menu-prod { background: #fff; border: 1px solid var(--panel-edge); border-radius: var(--r-item); margin: 4px 0; padding: 8px 12px; }
.menu-prod:hover { background: #F5FAF7; border-color: #A9DDBC; }
.menu-prod.menu-prod-tile { border-radius: var(--r-item); background: #fff; }

/* Inner boxes and buttons follow the same sharper language */
.totals-box { border-radius: var(--r-item); }
.hot-btn { border-radius: 4px; }
.btn { border-radius: 6px; }
.chip-tag, .notification-badge { border-radius: 3px; }
.view-toggle { border-radius: 4px; }

/* ---- Menu items: thin luminous white border on hover ---- */
.menu-item {
  position: relative; overflow: visible;
  width: calc(100% - 16px); margin: 0 8px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0), 0 0 0 rgba(255,255,255,0);
  transition: background-color .22s ease, color .22s ease, box-shadow .22s ease;
}
.menu-item:hover, .menu-item:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.92), 0 0 9px rgba(255,255,255,0.30);
  outline: none;
}
.menu-item { padding-left: 10px; padding-right: 10px; }
.app-menu-submenu .menu-item { padding-left: 32px; }
.desk-sidebar-nav .menu-item { padding: 8px 12px; }
.desk-sidebar-nav .app-menu-submenu .menu-item { padding-left: 38px; }
.menu-item svg { transition: color .22s ease; }

@media print {
  html, body, #app, .screen-body { background: #fff !important; }
}

/* ---- Dashboard: rounded embossed cards on the light gray page, with a soft gray accent ---- */
.home-body .fc, .home-body .stat-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F6F8 100%);
  border: 1px solid #E3E6E8;
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 -2px 0 rgba(29,52,79,0.05),
    0 1px 2px rgba(29,52,79,0.06),
    0 8px 18px -8px rgba(29,52,79,0.16);
}
/* The three hot buttons: rounded again, with an embossed, slightly raised finish */
.home-body .hot-btn {
  border-radius: 12px;
  background-image: linear-gradient(180deg, rgba(255,255,255,0.13) 0%, rgba(255,255,255,0) 45%, rgba(0,0,0,0.10) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    inset 0 -3px 0 rgba(0,0,0,0.20),
    0 1px 2px rgba(16,24,40,0.22),
    0 8px 16px -8px rgba(16,24,40,0.40);
  transition: background-color .15s ease, border-color .15s ease, transform .12s ease, box-shadow .15s ease;
}
.home-body .hot-btn:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), inset 0 -1px 0 rgba(0,0,0,0.2), 0 1px 2px rgba(16,24,40,0.2); }
