/* ── Turn Menu Order System ── */
:root {
  --golf-dark:   #1e4d10;
  --golf-green:  #2d6a1e;
  --golf-light:  #4a9e30;
  --golf-gold:   #d4a017;
  --golf-gold-l: #f9c74f;
  --bg-light:    #f4f7f2;
  --text-muted:  #6c757d;
}

/* Utility colours */
.bg-golf-dark  { background-color: var(--golf-dark) !important; }
.bg-golf-green { background-color: var(--golf-green) !important; }
.text-gold     { color: var(--golf-gold) !important; }
.bg-gold       { background-color: var(--golf-gold) !important; }
.btn-golf {
  background-color: var(--golf-green);
  border-color:     var(--golf-green);
  color: #fff;
}
.btn-golf:hover, .btn-golf:focus {
  background-color: var(--golf-light);
  border-color:     var(--golf-light);
  color: #fff;
}
.btn-gold {
  background-color: var(--golf-gold);
  border-color:     var(--golf-gold);
  color: #fff;
}
.btn-gold:hover {
  background-color: var(--golf-gold-l);
  border-color:     var(--golf-gold-l);
  color: #1a1a1a;
}

/* Layout */
body {
  background-color: var(--bg-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.main-content { flex: 1 0 auto; }
.footer       { flex-shrink: 0; }

/* Navbar */
.navbar-brand i.text-gold { font-size: 1.1rem; }

/* Cards */
.card {
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  border-radius: .75rem;
}
.card-header {
  border-radius: .75rem .75rem 0 0 !important;
  font-weight: 600;
}

/* Menu item cards */
.menu-card {
  transition: transform .15s ease, box-shadow .15s ease;
  cursor: pointer;
}
.menu-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.14);
}
.menu-card .badge-special {
  position: absolute;
  top: .6rem;
  right: .6rem;
}
.menu-card-img {
  height: 140px;
  object-fit: cover;
  border-radius: .5rem .5rem 0 0;
}
.menu-card-img-placeholder {
  height: 140px;
  background: linear-gradient(135deg, var(--golf-green), var(--golf-light));
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: .5rem .5rem 0 0;
  font-size: 2.5rem;
  color: rgba(255,255,255,.5);
}

/* Cart sidebar / panel */
.cart-panel {
  position: sticky;
  top: 1rem;
}
.cart-item-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.cart-item-row:last-child { border-bottom: none; }

/* GPS banner */
.gps-banner {
  border-left: 4px solid var(--golf-gold);
  background: #fffbea;
}
.gps-banner.gps-ok    { border-color: var(--golf-green); background: #edfaed; }
.gps-banner.gps-out   { border-color: #dc3545; background: #fff0f0; }
.gps-banner.gps-block { border-color: #dc3545; background: #fff0f0; }

/* Order status badges */
.status-new        { background-color: #dc3545; }
.status-in_progress{ background-color: #fd7e14; }
.status-ready      { background-color: #198754; }
.status-completed  { background-color: #6c757d; }
.status-cancelled  { background-color: #343a40; }

/* Kitchen kiosk */
.kitchen-card {
  border-left: 5px solid #dc3545;
  border-radius: .5rem;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
.kitchen-card.status-in_progress { border-left-color: #fd7e14; }
.kitchen-card.status-ready       { border-left-color: #198754; }
.kitchen-card.status-completed   { border-left-color: #adb5bd; opacity: .7; }

/* Admin tables */
.table th { white-space: nowrap; }
.table-golf thead { background-color: var(--golf-dark); color: #fff; }

/* Form styling */
.form-label { font-weight: 500; }
.required-star { color: #dc3545; }

/* Outside-range badge on orders */
.outside-range-badge {
  font-size: .7rem;
  background: #ff8800;
  color: #fff;
  padding: 2px 7px;
  border-radius: 99px;
  vertical-align: middle;
}

/* Print styles */
@media print {
  .navbar, .footer, .btn, .no-print { display: none !important; }
  .print-receipt {
    max-width: 80mm;
    margin: 0 auto;
    font-family: monospace;
    font-size: 12px;
  }
  .print-receipt h2 { font-size: 16px; text-align: center; }
  .print-receipt table { width: 100%; font-size: 11px; }
}

/* Mobile tweaks */
@media (max-width: 576px) {
  .menu-card-img, .menu-card-img-placeholder { height: 110px; }
  .container { padding-left: 12px; padding-right: 12px; }
  h1.page-title { font-size: 1.4rem; }
}

/* Page title */
.page-title {
  color: var(--golf-dark);
  font-weight: 700;
}

/* Section divider */
.section-divider {
  border-top: 3px solid var(--golf-gold);
  width: 50px;
  margin: .5rem 0 1.2rem;
}

/* Dashboard stat cards */
.stat-card {
  border-radius: 1rem;
  overflow: hidden;
}
.stat-card .stat-icon {
  font-size: 2.5rem;
  opacity: .3;
}

/* Availability indicator */
.avail-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 5px;
}
.avail-dot.available   { background: #198754; }
.avail-dot.unavailable { background: #adb5bd; }

/* QR page */
.qr-box {
  background: #fff;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
  text-align: center;
}
#qrcode canvas, #qrcode img { margin: 0 auto; }

/* Fade in on load */
.fade-in { animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
