/* ================================================
   GRILL SERGEANTS POS — STYLES.CSS
   Military fast food touchscreen POS
   ================================================ */

/* === CSS VARIABLES === */
:root {
  --olive:        #4a5c2a;
  --olive-light:  #5d7535;
  --olive-dark:   #2e3a18;
  --olive-glow:   #7a9e3b;
  --black:        #0d0d0d;
  --black-soft:   #141414;
  --surface:      #1a1a1a;
  --surface2:     #222222;
  --surface3:     #2a2a2a;
  --red:          #cc2222;
  --red-light:    #e03333;
  --red-dark:     #991a1a;
  --amber:        #d4860a;
  --amber-light:  #f0a020;
  --green:        #2e7d32;
  --green-light:  #43a047;
  --text:         #e8e4d8;
  --text-dim:     #9a9585;
  --text-faint:   #5a5650;
  --border:       #2e2e2e;
  --border-olive: #3a4e20;
  --font-display: 'Bebas Neue', sans-serif;
  --font-ui:      'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --radius:       6px;
  --radius-lg:    10px;
  --shadow:       0 4px 20px rgba(0,0,0,0.6);
  --shadow-glow:  0 0 20px rgba(74,92,42,0.3);
  --transition:   0.15s ease;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; }

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  /* Subtle military camo texture using CSS */
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(74,92,42,0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(74,92,42,0.03) 0%, transparent 50%);
}

/* === TOP BAR === */
#topBar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--olive-dark);
  border-bottom: 3px solid var(--olive);
  padding: 0 16px;
  height: 64px;
  flex-shrink: 0;
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

/* Camo stripe accent */
#topBar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--olive-glow), var(--amber), var(--olive-glow), var(--red), var(--olive-glow));
  background-size: 400% 100%;
  animation: barFlow 6s linear infinite;
}

@keyframes barFlow {
  0% { background-position: 0% 0%; }
  100% { background-position: 400% 0%; }
}

#brandBlock {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

#logoIcon {
  font-size: 2rem;
  filter: drop-shadow(0 0 8px rgba(212,134,10,0.6));
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(212,134,10,0.5)); }
  50% { filter: drop-shadow(0 0 14px rgba(212,134,10,0.9)); }
}

#brandText {
  display: flex;
  flex-direction: column;
}

#brandName {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 3px;
  color: var(--amber-light);
  line-height: 1;
  text-shadow: 0 0 20px rgba(240,160,32,0.4);
}

#brandTagline {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 4px;
  color: var(--olive-glow);
  text-transform: uppercase;
}

#statusBlock {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}

#storeStatusBadge {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 2px solid;
}

#storeStatusBadge.status-open {
  color: var(--green-light);
  border-color: var(--green-light);
  background: rgba(46,125,50,0.15);
  text-shadow: 0 0 8px var(--green-light);
  box-shadow: 0 0 10px rgba(67,160,71,0.3);
}

#storeStatusBadge.status-closed {
  color: var(--red-light);
  border-color: var(--red-light);
  background: rgba(204,34,34,0.1);
}

#statsBlock {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-olive);
  border-radius: var(--radius);
  padding: 4px 14px;
  min-width: 90px;
}

.stat-label {
  font-family: var(--font-ui);
  font-size: 0.55rem;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--amber-light);
  letter-spacing: 1px;
  line-height: 1.1;
}

#navBlock {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.nav-btn {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 14px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  cursor: pointer;
  transition: var(--transition);
}

.nav-btn:hover, .nav-btn.active {
  background: var(--olive);
  border-color: var(--olive-glow);
  color: var(--text);
}

/* === ALERT BAR === */
#alertBar {
  background: linear-gradient(90deg, var(--red-dark), #8b0000, var(--red-dark));
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 2px;
  padding: 6px 16px;
  text-align: center;
  animation: alertPulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes alertPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* === MAIN LAYOUT === */
#mainContent {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.panel {
  position: absolute;
  inset: 0;
  display: none;
  overflow: hidden;
}

.panel.active { display: flex; }

/* === POS PANEL === */
#posPanel {
  flex-direction: row;
  gap: 0;
}

/* LEFT: Menu */
#menuSection {
  width: 54%;
  display: flex;
  flex-direction: column;
  border-right: 2px solid var(--border-olive);
  background: var(--black-soft);
}

#categoryBar {
  display: flex;
  gap: 6px;
  padding: 10px;
  background: var(--olive-dark);
  border-bottom: 2px solid var(--border-olive);
  flex-wrap: wrap;
}

.cat-btn {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 16px;
  background: rgba(0,0,0,0.5);
  border: 2px solid var(--border-olive);
  border-radius: var(--radius);
  color: var(--text-dim);
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
}

.cat-btn:hover {
  background: var(--olive);
  border-color: var(--olive-glow);
  color: var(--text);
}

.cat-btn.active {
  background: var(--olive);
  border-color: var(--olive-glow);
  color: var(--amber-light);
  box-shadow: 0 0 10px rgba(74,92,42,0.5);
}

#menuGrid {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  align-content: start;
}

/* Custom scrollbar */
#menuGrid::-webkit-scrollbar, #orderItems::-webkit-scrollbar, #liveQueue::-webkit-scrollbar {
  width: 4px;
}
#menuGrid::-webkit-scrollbar-track, #orderItems::-webkit-scrollbar-track, #liveQueue::-webkit-scrollbar-track {
  background: var(--surface);
}
#menuGrid::-webkit-scrollbar-thumb, #orderItems::-webkit-scrollbar-thumb, #liveQueue::-webkit-scrollbar-thumb {
  background: var(--olive);
  border-radius: 2px;
}

/* Menu Item Card */
.menu-item {
  background: var(--surface2);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 10px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.menu-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(74,92,42,0.1));
  transition: opacity 0.2s;
  opacity: 0;
}

.menu-item:hover::before { opacity: 1; }

.menu-item:hover {
  border-color: var(--olive-glow);
  background: var(--surface3);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5), 0 0 15px rgba(74,92,42,0.2);
}

.menu-item:active {
  transform: scale(0.96);
}

.menu-item.unavailable {
  opacity: 0.4;
  cursor: not-allowed;
}

.menu-item.unavailable::after {
  content: 'OUT';
  position: absolute;
  top: 6px; right: 6px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 3px;
}

.item-icon { font-size: 2rem; }
.item-name {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.2;
}

.item-price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--amber-light);
  letter-spacing: 1px;
}

.item-category-tag {
  font-size: 0.6rem;
  font-family: var(--font-ui);
  letter-spacing: 2px;
  color: var(--olive-glow);
  text-transform: uppercase;
}

/* Stock count badge — top right of menu item */
.stock-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  min-width: 22px;
  text-align: center;
}

.stock-badge.stock-ok       { background: rgba(46,125,50,0.3);  color: var(--green-light); border: 1px solid rgba(67,160,71,0.4); }
.stock-badge.stock-low      { background: rgba(212,134,10,0.3); color: var(--amber-light); border: 1px solid rgba(212,134,10,0.5); }
.stock-badge.stock-critical { background: rgba(204,34,34,0.3);  color: var(--red-light);   border: 1px solid rgba(204,34,34,0.5); }
.stock-badge.stock-out      { background: rgba(204,34,34,0.5);  color: #fff;               border: 1px solid var(--red); }

/* === CENTER: Order/Cart === */
#orderSection {
  width: 26%;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 2px solid var(--border-olive);
}

#orderHeader {
  background: var(--olive-dark);
  padding: 10px 12px;
  border-bottom: 2px solid var(--border-olive);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#orderTitle {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 3px;
  color: var(--amber-light);
}

#customerNameInput {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-olive);
  border-radius: var(--radius);
  color: var(--text);
  padding: 6px 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  width: 100%;
}

#customerNameInput::placeholder { color: var(--text-faint); }
#customerNameInput:focus { outline: none; border-color: var(--olive-glow); }

#orderItems {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#emptyOrder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  gap: 8px;
  padding: 40px;
}

#emptyIcon { font-size: 3rem; opacity: 0.3; }

/* Order Line Item */
.order-line {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: slideIn 0.2s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.order-line-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.order-line-name {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  flex: 1;
}

.order-line-price {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--amber-light);
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  background: var(--olive-dark);
  border: 1px solid var(--border-olive);
  border-radius: 4px;
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.qty-btn:hover { background: var(--olive); }
.qty-display { font-family: var(--font-display); font-size: 1.1rem; min-width: 24px; text-align: center; }

.order-line-mods {
  font-size: 0.75rem;
  color: var(--olive-glow);
  font-style: italic;
}

.modifier-tag {
  display: inline-block;
  background: rgba(74,92,42,0.3);
  border: 1px solid var(--border-olive);
  border-radius: 3px;
  padding: 1px 5px;
  margin: 2px;
  font-size: 0.7rem;
}

.mod-remove-btn {
  background: none;
  border: none;
  color: var(--red-light);
  cursor: pointer;
  font-size: 0.75rem;
  margin-left: 2px;
}

.order-line-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-mod-item {
  font-size: 0.7rem;
  padding: 2px 8px;
  background: rgba(74,92,42,0.3);
  border: 1px solid var(--border-olive);
  border-radius: 3px;
  color: var(--olive-glow);
  cursor: pointer;
}

.btn-remove-item {
  font-size: 0.7rem;
  padding: 2px 8px;
  background: rgba(204,34,34,0.15);
  border: 1px solid rgba(204,34,34,0.3);
  border-radius: 3px;
  color: var(--red-light);
  cursor: pointer;
}

/* Modifier Panel */
#modifierPanel {
  background: var(--olive-dark);
  border-top: 2px solid var(--border-olive);
  border-bottom: 2px solid var(--border-olive);
  padding: 10px;
}

#modifierTitle {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--amber-light);
  margin-bottom: 8px;
  text-transform: uppercase;
}

#modifierButtons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.mod-btn {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  padding: 6px 12px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-olive);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}

.mod-btn:hover {
  background: var(--olive);
  border-color: var(--olive-glow);
}

/* Notes */
#notesSection { padding: 8px 10px; }

#orderNotes {
  width: 100%;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 6px 10px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  resize: none;
}
#orderNotes:focus { outline: none; border-color: var(--olive-glow); }

/* Order Footer */
#orderFooter {
  border-top: 2px solid var(--border-olive);
  padding: 10px;
  background: var(--olive-dark);
}

#orderTotals { margin-bottom: 10px; }

.total-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-dim);
  padding: 2px 0;
}

.total-main {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--amber-light);
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid var(--border-olive);
}

#orderActions {
  display: flex;
  gap: 8px;
}

/* === RIGHT: Queue === */
#queueSection {
  width: 20%;
  display: flex;
  flex-direction: column;
  background: var(--black-soft);
}

#queueHeader {
  background: var(--olive-dark);
  padding: 10px 12px;
  border-bottom: 2px solid var(--border-olive);
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: var(--amber-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge {
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 2px 8px;
  border-radius: 10px;
  min-width: 28px;
  text-align: center;
}

#liveQueue {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Queue Order Card */
.queue-card {
  background: var(--surface2);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px;
  cursor: pointer;
  transition: all var(--transition);
  animation: slideIn 0.3s ease;
}

.queue-card:hover {
  border-color: var(--olive-glow);
  background: var(--surface3);
}

.queue-card.status-waiting { border-left: 4px solid var(--text-dim); }
.queue-card.status-cooking { border-left: 4px solid var(--amber); animation: cookingPulse 2s ease-in-out infinite; }
.queue-card.status-ready   { border-left: 4px solid var(--green-light); box-shadow: 0 0 15px rgba(67,160,71,0.3); }

@keyframes cookingPulse {
  0%, 100% { border-left-color: var(--amber); }
  50% { border-left-color: var(--amber-light); box-shadow: 0 0 10px rgba(212,134,10,0.3); }
}

.queue-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--amber-light);
  line-height: 1;
}

.queue-customer {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.queue-items {
  font-size: 0.75rem;
  margin: 6px 0;
  color: var(--text);
  line-height: 1.5;
}

.queue-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.queue-time {
  font-size: 0.7rem;
  color: var(--text-faint);
}

.status-badge {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
}

.status-badge.waiting { background: rgba(100,100,100,0.3); color: var(--text-dim); border: 1px solid var(--border); }
.status-badge.cooking { background: rgba(212,134,10,0.2); color: var(--amber-light); border: 1px solid var(--amber); }
.status-badge.ready   { background: rgba(67,160,71,0.2); color: var(--green-light); border: 1px solid var(--green-light); }
.status-badge.served  { background: rgba(74,92,42,0.2); color: var(--olive-glow); border: 1px solid var(--olive-glow); }

/* Inventory Warnings */
#inventoryWarningsPanel {
  border-top: 2px solid var(--border-olive);
  background: var(--black-soft);
  max-height: 180px;
  overflow-y: auto;
}

#invWarnHeader {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--amber-light);
  padding: 8px 10px;
  background: rgba(212,134,10,0.1);
  border-bottom: 1px solid var(--border);
}

#inventoryWarnings { padding: 6px; }

.inv-warn-item {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: var(--radius);
  margin-bottom: 3px;
  display: flex;
  justify-content: space-between;
}

.inv-warn-item.low { background: rgba(212,134,10,0.15); color: var(--amber-light); }
.inv-warn-item.critical { background: rgba(204,34,34,0.15); color: var(--red-light); }
.inv-warn-item.out { background: rgba(204,34,34,0.25); color: var(--red-light); font-weight: bold; }

/* === KITCHEN PANEL === */
#kitchenPanel {
  flex-direction: column;
  background: var(--black);
}

#kitchenHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--olive-dark);
  border-bottom: 3px solid var(--olive);
}

#kitchenHeader h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 4px;
  color: var(--amber-light);
}

#kitchenClock {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text);
  letter-spacing: 3px;
}

#kitchenGrid {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  align-content: start;
}

/* Kitchen Card */
.kitchen-card {
  background: var(--surface2);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 3px solid var(--border);
  transition: all var(--transition);
}

.kitchen-card.status-waiting { border-color: var(--border); }
.kitchen-card.status-cooking { border-color: var(--amber); background: rgba(212,134,10,0.05); }
.kitchen-card.status-ready   { border-color: var(--green-light); background: rgba(67,160,71,0.05); }

.kitchen-order-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--amber-light);
  line-height: 1;
}

.kitchen-customer {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--text-dim);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.kitchen-items {
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 2;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.kitchen-item-line { display: flex; justify-content: space-between; }

.kitchen-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.kitchen-time {
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: 8px;
}

/* === ADMIN PANEL === */
#adminPanel {
  flex-direction: column;
  background: var(--black-soft);
  overflow: hidden;
}

#adminLayout {
  display: flex;
  height: 100%;
}

#adminNav {
  width: 180px;
  background: var(--olive-dark);
  border-right: 2px solid var(--border-olive);
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  gap: 4px;
  flex-shrink: 0;
}

.admin-nav-btn {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 12px 16px;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  color: var(--text-dim);
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  text-transform: uppercase;
}

.admin-nav-btn:hover {
  background: rgba(74,92,42,0.2);
  color: var(--text);
}

.admin-nav-btn.active {
  background: rgba(74,92,42,0.3);
  border-left-color: var(--olive-glow);
  color: var(--amber-light);
}

#adminContent {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.admin-tab { display: none; }
.admin-tab.active { display: block; }

.admin-tab h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 3px;
  color: var(--amber-light);
  border-bottom: 2px solid var(--border-olive);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* Inventory Grid */
#inventoryGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.inv-item-card {
  background: var(--surface2);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inv-item-name {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
}

.inv-item-count {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--amber-light);
  line-height: 1;
}

.inv-item-count.low { color: var(--amber); }
.inv-item-count.critical { color: var(--red-light); }

.inv-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inv-input {
  width: 70px;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 4px 8px;
  font-family: var(--font-display);
  font-size: 1rem;
  text-align: center;
}

.inv-adjust-btn {
  width: 28px;
  height: 28px;
  background: var(--olive-dark);
  border: 1px solid var(--border-olive);
  border-radius: 4px;
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inv-adjust-btn:hover { background: var(--olive); }

/* Menu Editor */
#menuEditorList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.menu-editor-card {
  background: var(--surface2);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
}

.menu-editor-card.unavailable { opacity: 0.5; border-style: dashed; }

.menu-editor-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.menu-editor-name {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.menu-editor-price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--amber-light);
}

.menu-editor-cat {
  font-size: 0.7rem;
  color: var(--olive-glow);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.menu-editor-actions {
  display: flex;
  gap: 6px;
}

/* Reports */
#reportContent {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.report-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-ui);
}

.report-row:last-child { border-bottom: none; }
.report-label { color: var(--text-dim); letter-spacing: 1px; }
.report-value { color: var(--amber-light); font-size: 1.1rem; }

/* Settings */
.settings-group {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.settings-group > label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
}

/* Toggle Switch */
.toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
}

.toggle-label input { display: none; }

.toggle-slider {
  width: 42px;
  height: 22px;
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: 11px;
  position: relative;
  transition: background 0.2s;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  background: var(--text-dim);
  border-radius: 50%;
  top: 2px; left: 2px;
  transition: transform 0.2s, background 0.2s;
}

.toggle-label input:checked + .toggle-slider { background: var(--olive); border-color: var(--olive-glow); }
.toggle-label input:checked + .toggle-slider::after { transform: translateX(20px); background: var(--text); }

/* === BUTTONS === */
.btn-primary {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 16px;
  background: var(--olive);
  border: 2px solid var(--olive-glow);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
}
.btn-primary:hover { background: var(--olive-light); box-shadow: 0 0 12px rgba(74,92,42,0.5); }

.btn-success {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 16px;
  background: var(--green);
  border: 2px solid var(--green-light);
  border-radius: var(--radius);
  color: #fff;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
}
.btn-success:hover { background: var(--green-light); }

.btn-danger {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 16px;
  background: var(--red-dark);
  border: 2px solid var(--red);
  border-radius: var(--radius);
  color: #fff;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
}
.btn-danger:hover { background: var(--red); }

.btn-ghost {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 16px;
  background: transparent;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
}
.btn-ghost:hover { border-color: var(--text-dim); color: var(--text); }

.btn-amber {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 16px;
  background: rgba(212,134,10,0.2);
  border: 2px solid var(--amber);
  border-radius: var(--radius);
  color: var(--amber-light);
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
}
.btn-amber:hover { background: var(--amber); color: var(--black); }

.btn-large { font-size: 1.1rem; padding: 14px 28px; }

button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Full width helper */
.w-full { width: 100%; }

/* === OVERLAYS / MODALS === */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.overlay.hidden { display: none; }

.overlay-card {
  background: var(--surface2);
  border: 2px solid var(--olive);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 30px rgba(74,92,42,0.2);
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.overlay-card h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 4px;
  color: var(--amber-light);
  margin-bottom: 8px;
}

.overlay-card p {
  font-family: var(--font-ui);
  letter-spacing: 1px;
  color: var(--text-dim);
}

/* Receipt */
.receipt-card {
  text-align: left;
  max-width: 360px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
}

#receiptContent { line-height: 1.8; }

/* Status Modal */
#statusModalContent {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.status-modal-order-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--amber-light);
}

.status-modal-items {
  text-align: left;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 10px 0;
  line-height: 1.8;
}

.status-action-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

/* Form elements */
.form-group {
  margin-bottom: 14px;
  text-align: left;
}

.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--olive-glow);
}

.form-group select { appearance: none; cursor: pointer; }

/* Closing report */
#closingReportContent {
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--surface);
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 2;
}

/* Empty state */
.empty-state {
  color: var(--text-faint);
  text-align: center;
  padding: 20px;
  font-style: italic;
}

/* Utility */
.hidden { display: none !important; }
.text-center { text-align: center; }
.flex { display: flex; }
.gap-2 { gap: 8px; }

/* === ANIMATIONS === */
.flash-green {
  animation: flashGreen 0.5s ease;
}

@keyframes flashGreen {
  0%, 100% { background: var(--surface2); }
  50% { background: rgba(67,160,71,0.3); }
}

.shake {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* === INVENTORY ACTIONS === */
#inventoryActions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

/* Completed orders section in reports */
.completed-order-row {
  font-size: 0.8rem;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
  display: grid;
  grid-template-columns: 50px 1fr 80px;
  gap: 8px;
  align-items: center;
}

.completed-order-row .order-q { font-family: var(--font-display); color: var(--amber-light); }
.completed-order-row .order-items-text { color: var(--text-dim); }
.completed-order-row .order-total { color: var(--green-light); text-align: right; }

/* Responsive adjustments for tablet */
@media (max-width: 900px) {
  #menuSection { width: 50%; }
  #orderSection { width: 30%; }
  #queueSection { width: 20%; }
  #menuGrid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  #statsBlock { display: none; }
}

/* Fullscreen mode */
:fullscreen body, :-webkit-full-screen body { overflow: hidden; }
