/* ==========================================================================
   SYNEXA SOLUTIONS - MULTI-TENANT QR MENU & HOSPITALITY PLATFORM
   Design System: Modern Culinary Glassmorphism, Responsive & Micro-animated
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

@font-face {
  font-family: 'Recoleta Black';
  src: local('Recoleta Black'),
       url('assets/fonts/Recoleta-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}


:root {
  /* Dynamic Tenant Brand Color (Shiv Sagar Pure Veg Heritage) */
  --primary: #e64a19;
  --primary-light: #f97316;
  --primary-dark: #c2410c;
  --primary-gradient: linear-gradient(135deg, #f04f22 0%, #c2410c 100%);
  --accent: #f59e0b;
  --accent-light: #fef3c7;
  --brand-blue: #0288d1;
  --brand-blue-light: #e0f2fe;
  --brand-orange: #f04f22;
  
  /* Neutral System Colors */
  --bg-main: #faf7f2;
  --bg-card: #ffffff;
  --bg-alt: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-subtle: #e2e8f0;
  --border-focus: #f04f22;
  
  /* Status & Dietary Badges */
  --veg-green: #10b981;
  --veg-bg: #ecfdf5;
  --nonveg-red: #ef4444;
  --nonveg-bg: #fef2f2;
  --vegan-purple: #8b5cf6;
  --vegan-bg: #f5f3ff;
  --warning-amber: #f59e0b;
  --sold-out-gray: #4b5563;

  /* Elevation Shadows & Glassmorphism */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-float: 0 20px 40px -10px rgba(0, 0, 0, 0.14);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Typography */
  --font-sans: 'Recoleta Black', 'Recoleta', Georgia, serif;
  --font-display: 'Recoleta Black', 'Recoleta', Georgia, serif;
}

/* Reset & Global Defaults */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* Apply Recoleta Black throughout the entire website, including form controls. */
*, *::before, *::after {
  font-family: 'Recoleta Black', 'Recoleta', Georgia, serif !important;
}


body {
  font-family: var(--font-sans);
  background: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

/* ==========================================================================
   TOP RESTAURANT HEADER NAVBAR
   ========================================================================== */
.restaurant-nav-bar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  width: 100%;
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 11px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  flex-shrink: 0;
}

.restaurant-nav-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
  background: #ffffff;
  padding: 2px;
  border: 1.5px solid rgba(240, 79, 34, 0.3);
  box-shadow: 0 2px 8px rgba(230, 74, 25, 0.2);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.nav-brand:hover .restaurant-nav-logo-img {
  transform: scale(1.05);
}

.restaurant-nav-logo {
  background: linear-gradient(135deg, var(--primary) 0%, #c84b11 100%);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.5px;
  box-shadow: 0 2px 8px rgba(200, 75, 17, 0.28);
  flex-shrink: 0;
}

.restaurant-nav-info {
  display: flex;
  flex-direction: column;
}

.restaurant-nav-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #0f172a;
  line-height: 1.2;
  white-space: nowrap;
}

.restaurant-nav-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.table-picker-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 6px 13px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.table-picker-badge:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.nav-cart-btn {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(27, 67, 50, 0.25);
  white-space: nowrap;
}

.nav-cart-btn:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}

.nav-cart-count {
  background: #ffffff;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.nav-admin-btn {
  background: #f1f5f9;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 6px 13px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-admin-btn:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.nav-admin-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* Mobile Navbar Optimizations */
@media (max-width: 640px) {
  .nav-container {
    padding: 8px 12px;
    gap: 8px;
  }
  .restaurant-nav-logo-img {
    width: 34px;
    height: 34px;
  }
  .restaurant-nav-logo {
    width: 32px;
    height: 32px;
    font-size: 13.5px;
    border-radius: 8px;
  }
  .restaurant-nav-title {
    font-size: 14px;
  }
  .restaurant-nav-subtitle {
    display: none;
  }
  .nav-actions {
    gap: 6px;
  }
  .table-picker-badge {
    padding: 5px 9px;
    font-size: 11px;
    gap: 4px;
  }
  .nav-admin-btn {
    padding: 5px 9px;
    font-size: 11px;
    gap: 4px;
  }
  .nav-admin-btn span {
    display: none;
  }
  .nav-cart-btn {
    padding: 5px 9px;
    font-size: 11px;
    gap: 4px;
  }
}

/* ==========================================================================
   RESPONSIVE VIEWPORT & CONTAINER (Fluid on Mobile, Centered on Desktop)
   ========================================================================== */
.view-container {
  min-height: calc(100vh - 58px);
  width: 100%;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

.customer-menu-viewport {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  background: transparent;
  min-height: 100vh;
}

/* ==========================================================================
   CUSTOMER DIGITAL MENU STYLES
   ========================================================================== */
.menu-app-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 110px;
}

/* Header & Cover Banner */
.menu-hero-header {
  position: relative;
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 16px;
  color: white;
}

@media (min-width: 768px) {
  .menu-hero-header {
    height: 290px;
    border-radius: 20px;
    margin-top: 16px;
    padding: 30px 34px;
    box-shadow: 0 12px 32px -10px rgba(230, 74, 25, 0.22);
    overflow: hidden;
  }
}

.menu-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.45) 50%, rgba(15, 23, 42, 0.88) 100%);
}

.menu-hero-info {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  gap: 15px;
}

.restaurant-avatar-logo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 3.5px solid #ffffff;
  object-fit: contain;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  background: #ffffff;
  padding: 2px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .restaurant-avatar-logo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    padding: 3px;
  }
}

.restaurant-meta-details {
  flex: 1;
  min-width: 0;
}

.restaurant-name-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 4vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.65);
}

.restaurant-sub-meta {
  font-size: clamp(11.5px, 2vw, 13px);
  color: rgba(255, 255, 255, 0.92);
  margin-top: 3px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.restaurant-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  margin-top: 6px;
  color: #fde047;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.pure-veg-tag {
  background: rgba(16, 185, 129, 0.35);
  border: 1px solid rgba(16, 185, 129, 0.7);
  color: #34d399;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: var(--radius-full);
}

/* Table Context & Status Strip */
.table-context-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

@media (min-width: 768px) {
  .table-context-strip {
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    margin: 12px 20px 0;
    padding: 11px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  }
}

.table-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--primary);
}

.table-indicator svg {
  color: var(--primary);
  flex-shrink: 0;
}

.wifi-callout {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-size: 11px;
}

/* ==========================================================================
   SEARCH, DIETARY FILTERS & CONTROLS (Fluid & Responsive)
   ========================================================================== */
.menu-controls-wrapper {
  background: #ffffff;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  transition: all 0.25s ease;
  width: 100%;
}

@media (min-width: 768px) {
  .menu-controls-wrapper {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    margin: 16px auto 0;
    padding: 18px 24px 16px;
    max-width: 1240px;
    box-shadow: 0 8px 24px -4px rgba(230, 74, 25, 0.05), 0 2px 6px rgba(0, 0, 0, 0.02);
  }
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-full);
  padding: 10px 18px;
  gap: 10px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.search-box:focus-within {
  background: #ffffff;
  border-color: #f04f22;
  box-shadow: 0 0 0 4px rgba(240, 79, 34, 0.12), 0 2px 10px rgba(240, 79, 34, 0.08);
}

.search-icon {
  color: #f04f22;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.search-box:focus-within .search-icon {
  transform: scale(1.1);
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
}

.search-box input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.search-clear-btn {
  background: #e2e8f0;
  color: #64748b;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.search-clear-btn:hover {
  background: #f04f22;
  color: #ffffff;
}

.dietary-filters-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.dietary-filters-row::-webkit-scrollbar {
  display: none;
}

.diet-pill {
  white-space: nowrap;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  color: #475569;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.diet-pill:hover {
  border-color: #f04f22;
  color: #e64a19;
  background: #fff7ed;
  transform: translateY(-1px);
}

.diet-pill.active {
  background: linear-gradient(135deg, #f04f22 0%, #d84315 100%) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(240, 79, 34, 0.32) !important;
  transform: scale(1.02);
}

.diet-pill-icon {
  font-size: 13px;
  line-height: 1;
}

.diet-pill-dot.veg-dot-inline {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #16a34a;
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 0 1.5px #16a34a;
  display: inline-block;
}

/* ==========================================================================
   STICKY CATEGORY NAVIGATION (Modern Glassmorphic Bar)
   ========================================================================== */
.category-nav-wrapper {
  position: sticky;
  top: 62px;
  z-index: 950;
  background: #ffffff;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.04);
  width: 100%;
}

@media (min-width: 768px) {
  .category-nav-wrapper {
    top: 64px;
    margin-top: 14px;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.85);
  }
}

@media (max-width: 640px) {
  .category-nav-wrapper {
    top: 50px;
  }
}

.category-nav-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  max-width: 1240px;
  margin: 0 auto;
}

.category-nav-bar::-webkit-scrollbar {
  display: none;
}

.cat-nav-item {
  white-space: nowrap;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.cat-nav-item:hover {
  border-color: #f04f22;
  color: #e64a19;
  background: #fff7ed;
  transform: translateY(-1px);
}

.cat-nav-item.active {
  background: linear-gradient(135deg, #f04f22 0%, #d84315 100%) !important;
  color: #ffffff !important;
  font-weight: 800;
  border-color: transparent !important;
  box-shadow: 0 4px 14px rgba(240, 79, 34, 0.36) !important;
  transform: scale(1.02);
}

.cat-nav-item .cat-icon {
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.cat-nav-item .cat-name {
  letter-spacing: -0.1px;
}

/* ==========================================================================
   MENU DISH CARDS & LISTING
   ========================================================================== */
[id^="cat_sec_"] {
  scroll-margin-top: 120px;
}

@media (max-width: 640px) {
  [id^="cat_sec_"] {
    scroll-margin-top: 105px;
  }
}

.menu-sections-container {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

@media (min-width: 768px) {
  .menu-sections-container {
    padding: 24px 20px;
    gap: 32px;
  }
}

.category-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e2e8f0;
}

.category-section-title h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 640px) {
  .category-section-title h2 {
    font-size: 16px;
  }
}

.category-badge-count {
  font-size: 11px;
  background: #f1f5f9;
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.dishes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .dishes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .dishes-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (min-width: 1300px) {
  .dishes-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
}

.dish-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 12px;
  display: flex;
  gap: 12px;
  box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.04), 0 1px 3px -1px rgba(0, 0, 0, 0.02);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
  cursor: pointer;
  min-height: 122px;
}

@media (hover: hover) and (pointer: fine) {
  .dish-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.08), 0 4px 8px -2px rgba(0, 0, 0, 0.03);
    border-color: #cbd5e1;
  }
}

.dish-card:active {
  transform: scale(0.99);
}

.dish-card.is-sold-out {
  opacity: 0.65;
  filter: grayscale(40%);
}

.dish-media-container {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
}

@media (min-width: 768px) {
  .dish-media-container {
    width: 104px;
    height: 104px;
    border-radius: 14px;
  }
}

.dish-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.dish-card:hover .dish-image {
  transform: scale(1.06);
}

.diet-dot-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  z-index: 5;
}

.diet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.diet-dot.veg {
  background: var(--veg-green);
}

.diet-dot.non-veg {
  background: var(--nonveg-red);
}

.diet-dot.vegan {
  background: var(--vegan-purple);
}

.sold-out-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}

.dish-details-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.dish-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.dish-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  word-break: break-word;
}

.dish-featured-star {
  background: #fef3c7;
  color: #b45309;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.dish-description {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dish-meta-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.macro-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-alt);
  color: var(--text-muted);
}

.macro-tag.calories {
  background: #fff7ed;
  color: #c2410c;
}

.macro-tag.protein {
  background: #f0fdf4;
  color: #15803d;
}

.dish-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 2px;
}

.dish-price {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.2px;
}

.add-btn {
  background: #ffffff;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  touch-action: manipulation;
}

.add-btn:hover {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(27, 67, 50, 0.25);
}

.add-btn:active {
  transform: scale(0.95);
}

.add-btn:disabled {
  border-color: #d1d5db;
  color: #9ca3af;
  background: #f3f4f6;
  cursor: not-allowed;
}

/* ==========================================================================
   FLOATING CART BAR (Centered on Desktop, Fluid Pill on Mobile)
   ========================================================================== */
.floating-cart-bar {
  position: fixed;
  bottom: 14px;
  left: 12px;
  right: 12px;
  width: auto;
  max-width: 480px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--primary) 0%, #2d6a4f 100%);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(27, 67, 50, 0.38);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1500;
  cursor: pointer;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 768px) {
  .floating-cart-bar {
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    width: 440px;
    border-radius: var(--radius-full);
    padding: 14px 24px;
  }
  .floating-cart-bar:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 16px 36px rgba(27, 67, 50, 0.45);
  }
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cart-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-items-count-badge {
  background: #ffffff;
  color: var(--primary);
  font-weight: 800;
  font-size: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-bar-text {
  font-size: 13.5px;
  font-weight: 600;
}

.cart-bar-amount {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

/* ==========================================================================
   NUTRITION FACTS & DISH DETAIL MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

@media (max-width: 640px) {
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dish-modal-card {
  background: #ffffff;
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
  position: relative;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 640px) {
  .dish-modal-card {
    max-width: 100%;
    border-radius: 24px 24px 0 0;
    max-height: 86vh;
    animation: slideUpModal 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

@keyframes slideUpModal {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes modalPop {
  from { transform: scale(0.92) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.modal-hero-image-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  background: #f1f5f9;
}

.modal-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body-content {
  padding: 20px;
}

.modal-dish-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.modal-dish-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

.modal-dish-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

.modal-dish-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 10px;
}

/* Nutrition Panel Block (Fine Dining & Health Standard) */
.nutrition-panel-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 18px;
}

.nutrition-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.nutrition-panel-header h4 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0f172a;
}

.calories-large-display {
  font-size: 20px;
  font-weight: 800;
  color: #c2410c;
}

.macros-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  text-align: center;
  margin-bottom: 12px;
}

.macro-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 8px 4px;
}

.macro-box .macro-val {
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
}

.macro-box .macro-lbl {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}

/* Allergens & Ingredients tags */
.allergens-wrap {
  margin-top: 14px;
}

.section-sub-label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}

.allergen-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.allergen-badge {
  background: #fee2e2;
  color: #991b1b;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.ingredient-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ingredient-tag {
  background: #f1f5f9;
  color: #334155;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.modal-action-footer {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

.primary-add-button {
  flex: 1;
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.modal-dismiss-btn {
  width: 100%;
  padding: 12px;
  background: var(--bg-alt);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-dismiss-btn:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.primary-add-button:hover {
  box-shadow: 0 4px 12px rgba(27, 67, 50, 0.35);
  transform: translateY(-1px);
}

/* ==========================================================================
   CART & ORDERING DRAWER (Slide-in Responsive Drawer)
   ========================================================================== */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2400;
  display: none;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  z-index: 2500;
  display: none;
  flex-direction: column;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.16);
  animation: slideInRight 0.25s ease;
}

@media (max-width: 640px) {
  .cart-drawer {
    max-width: 100%;
  }
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.cart-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h3 {
  font-size: 16px;
  font-weight: 700;
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-subtle);
}

.cart-item-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.cart-item-price {
  font-size: 12px;
  color: var(--text-muted);
}

.qty-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-alt);
  padding: 4px 8px;
  border-radius: var(--radius-full);
}

.qty-btn {
  border: none;
  background: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.qty-val {
  font-size: 12px;
  font-weight: 700;
  min-width: 16px;
  text-align: center;
}

.order-notes-input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 12px;
  outline: none;
  margin-top: 10px;
}

.cart-bill-summary {
  padding: 16px;
  background: #f8fafc;
  border-top: 1px solid var(--border-subtle);
}

.bill-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.bill-line.total {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  border-top: 1px solid #e2e8f0;
  padding-top: 8px;
  margin-top: 8px;
}

/* ==========================================================================
   REUSABLE MULTI-TENANT ADMIN DASHBOARD STYLES
   ========================================================================== */
.admin-mode-active .view-container {
  background: #0b100f;
  padding: 24px;
  justify-content: center;
}

@media (max-width: 768px) {
  .admin-mode-active .view-container {
    padding: 10px 8px;
  }
}

.admin-layout-wrapper {
  max-width: 1200px;
  width: 100%;
  background: #111a18;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #e2e8f0;
}

.admin-top-banner {
  background: linear-gradient(135deg, #1b4332 0%, #11221b 100%);
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .admin-top-banner {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

.admin-banner-title h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
}

.admin-banner-title p {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 2px;
}

.admin-tabs-nav {
  display: flex;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0 30px;
}

@media (max-width: 768px) {
  .admin-tabs-nav {
    padding: 0 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
}

.admin-tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .admin-tab-btn {
    padding: 12px 14px;
    font-size: 12px;
  }
}

.admin-tab-btn:hover {
  color: #ffffff;
}

.admin-tab-btn.active {
  color: #10b981;
  border-bottom-color: #10b981;
}

.admin-content-area {
  padding: 30px;
}

@media (max-width: 768px) {
  .admin-content-area {
    padding: 16px 12px;
  }
}

/* Metric KPI Cards */
.kpi-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

@media (max-width: 640px) {
  .kpi-metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }
}

.kpi-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.kpi-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.kpi-icon-wrap.green { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.kpi-icon-wrap.blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.kpi-icon-wrap.amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.kpi-icon-wrap.purple { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }

.kpi-number {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}

.kpi-label {
  font-size: 12px;
  color: #94a3b8;
}

/* Menu Management Table & Controls */
.admin-table-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px;
}

@media (max-width: 640px) {
  .admin-table-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
}

.action-btn-primary {
  background: #10b981;
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.action-btn-primary:hover {
  background: #059669;
}

.admin-menu-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-menu-table th {
  text-align: left;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-menu-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.table-dish-thumb {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

/* Real-time Toggle Switch for Stock Availability */
.switch-wrap {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch-wrap input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #334155;
  transition: .3s;
  border-radius: 24px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .switch-slider {
  background-color: #10b981;
}

input:checked + .switch-slider:before {
  transform: translateX(20px);
}

/* ==========================================================================
   TABLE & ROOM QR CODE STUDIO & PRINT TENT CARD
   ========================================================================== */
.qr-studio-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 30px;
}

@media (max-width: 800px) {
  .qr-studio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.qr-config-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
}

.form-control:focus {
  border-color: #10b981;
}

/* Printable Table Tent Card Mockup */
.tent-card-preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tent-card-sheet {
  width: 320px;
  background: #ffffff;
  color: #0f172a;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  text-align: center;
  border: 2px solid #e2e8f0;
}

.tent-card-header h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.tent-card-header p {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.tent-qr-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 16px;
  border-radius: var(--radius-md);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 16px 0;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
}

.tent-location-badge {
  background: var(--primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  display: inline-block;
  letter-spacing: 0.5px;
}

.tent-instructions {
  font-size: 12px;
  color: #334155;
  font-weight: 600;
  margin-top: 10px;
}

.tent-wifi-box {
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  padding: 8px;
  margin-top: 12px;
  font-size: 10px;
  color: #64748b;
}

.tent-wifi-box strong {
  color: #0f172a;
}

.tent-powered-by {
  font-size: 9px;
  color: #94a3b8;
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ==========================================================================
   PRINT STYLES FOR TABLE TENT CARDS
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .synexa-master-bar,
  .admin-top-banner,
  .admin-tabs-nav,
  .qr-config-panel,
  .kpi-metrics-grid,
  .action-btn-primary,
  .platform-center-controls {
    display: none !important;
  }
  .admin-layout-wrapper {
    border: none !important;
    box-shadow: none !important;
    background: #ffffff !important;
  }
  .tent-card-sheet {
    box-shadow: none !important;
    border: 1px dashed #94a3b8 !important;
    margin: 40px auto !important;
    page-break-inside: avoid;
  }
}
