/* 
   Restaurant Digital QR Menu Builder & Viewer - Design System
   Premium Glassmorphism, Responsive Mobile Frame, & Print Layouts
*/

@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&display=swap');

:root {
  /* Default Branding Colors - Configurable by JS */
  --accent-color: #ff385c;
  --accent-color-rgb: 255, 56, 92;
  --accent-color-hover: #e0284b;
  --accent-color-light: rgba(255, 56, 92, 0.1);
  
  /* System Dark Theme Colors */
  --bg-dark: #0f1115;
  --bg-dark-card: #181c24;
  --bg-dark-glass: rgba(24, 28, 36, 0.7);
  --border-dark: rgba(255, 255, 255, 0.08);
  --text-dark-primary: #f3f4f6;
  --text-dark-secondary: #9ca3af;
  
  /* System Light Theme Colors */
  --bg-light: #f9fafb;
  --bg-light-card: #ffffff;
  --bg-light-glass: rgba(255, 255, 255, 0.75);
  --border-light: rgba(0, 0, 0, 0.06);
  --text-light-primary: #111827;
  --text-light-secondary: #4b5563;
  
  /* Border Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.16);
  --shadow-accent: 0 8px 20px rgba(var(--accent-color-rgb), 0.25);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
  scrollbar-width: thin;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-dark-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

body.light-mode {
  background-color: var(--bg-light);
  color: var(--text-light-primary);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
}
.light-mode ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

/* Glassmorphism Styles */
.glass-panel {
  background: var(--bg-dark-glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.light-mode .glass-panel {
  background: var(--bg-light-glass);
  border: 1px solid var(--border-light);
}

/* Page Transitions */
.fade-in {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide-up {
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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

/* Common UI Elements */
.btn-primary {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background-color: var(--accent-color-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(var(--accent-color-rgb), 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-dark-primary);
  border: 1px solid var(--border-dark);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.light-mode .btn-secondary {
  color: var(--text-light-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.light-mode .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.15);
}

/* Admin Dashboard Layout styling */
.admin-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
}

@media (max-width: 1024px) {
  .admin-container {
    grid-template-columns: 1fr;
  }
  .mobile-simulator {
    position: relative;
    top: 0;
    margin-top: 20px;
  }
}

.admin-header {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.admin-panel {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: var(--text-dark-secondary);
}

.light-mode .form-group label {
  color: var(--text-light-secondary);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  color: var(--text-dark-primary);
  outline: none;
  transition: var(--transition-fast);
}

.light-mode .form-control {
  background: rgba(0, 0, 0, 0.01);
  border: 1px solid var(--border-light);
  color: var(--text-light-primary);
}

.form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-color-light);
}

/* Color theme selector cards */
.theme-picker {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.theme-swatch {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 3px solid transparent;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-swatch:hover {
  transform: scale(1.1);
}

.theme-swatch.active {
  border-color: var(--text-dark-primary);
  transform: scale(1.1);
}

.light-mode .theme-swatch.active {
  border-color: var(--text-light-primary);
}

/* Items List styling in Admin */
.items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.light-mode .item-row {
  background: rgba(0, 0, 0, 0.01);
  border: 1px solid var(--border-light);
}

.item-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.light-mode .item-row:hover {
  background: rgba(0, 0, 0, 0.02);
}

/* Interactive Mobile Simulator Phone Wrap */
.mobile-simulator {
  position: sticky;
  top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: fit-content;
  width: 100%;
}

.phone-shell {
  width: 340px;
  height: 680px;
  border: 12px solid #2d3139;
  border-radius: 40px;
  box-shadow: var(--shadow-lg), 0 0 0 2px rgba(255, 255, 255, 0.05);
  background: var(--bg-dark);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.light-mode .phone-shell {
  border-color: #e5e7eb;
  background: var(--bg-light);
  box-shadow: var(--shadow-lg), 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.phone-notch {
  width: 160px;
  height: 25px;
  background: #2d3139;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  z-index: 100;
}

.light-mode .phone-notch {
  background: #e5e7eb;
}

.phone-screen {
  flex: 1;
  overflow-y: auto;
  padding-top: 15px; /* space for notch */
  display: flex;
  flex-direction: column;
}

/* Customer Mobile Menu UI Styling (for menu.html) */
.menu-header {
  position: relative;
  height: 180px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: white;
}

.menu-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 100%);
}

.menu-header-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.restaurant-logo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid white;
  box-shadow: var(--shadow-md);
  background: white;
}

.restaurant-title h2 {
  font-size: 1.5rem;
  margin-bottom: 2px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.restaurant-title p {
  font-size: 0.875rem;
  opacity: 0.8;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Sticky Category Filter Tabs */
.sticky-tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-dark-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
  padding: 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.sticky-tabs::-webkit-scrollbar {
  display: none;
}

.light-mode .sticky-tabs {
  background: var(--bg-light-glass);
  border-bottom: 1px solid var(--border-light);
}

.tab-btn {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border-dark);
  background: transparent;
  color: var(--text-dark-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.light-mode .tab-btn {
  border: 1px solid var(--border-light);
  color: var(--text-light-secondary);
}

.tab-btn.active {
  background-color: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
  box-shadow: var(--shadow-accent);
}

/* Search Bar */
.search-container {
  padding: 16px;
}

.search-box {
  position: relative;
}

.search-box input {
  padding-left: 40px;
}

.search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dark-secondary);
}

.light-mode .search-box i {
  color: var(--text-light-secondary);
}

/* Menu Items Grid */
.menu-sections {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 100px; /* space for cart button */
}

.section-title {
  font-size: 1.25rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-dark);
}

.light-mode .section-title::after {
  background: var(--border-light);
}

.food-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Food Card styling */
.food-card {
  display: flex;
  gap: 16px;
  padding: 12px;
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  width: 100%;
}

.light-mode .food-card {
  background: var(--bg-light-card);
  border: 1px solid var(--border-light);
}

.food-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-color-rgb), 0.3);
  box-shadow: var(--shadow-sm);
}

.food-card-img {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #222;
}

.food-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.food-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.food-card-desc {
  font-size: 0.8rem;
  color: var(--text-dark-secondary);
  line-height: 1.3;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.light-mode .food-card-desc {
  color: var(--text-light-secondary);
}

.food-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.food-price {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-color);
}

.food-tags {
  display: flex;
  gap: 4px;
}

.food-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
}

.tag-spicy { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.tag-veg { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.tag-chef { background: rgba(234, 179, 8, 0.15); color: #facc15; }

/* Interactive Modals/Dialogs */
dialog {
  border: none;
  background: transparent;
  margin: auto;
  outline: none;
  max-width: 480px;
  width: 90%;
  box-shadow: var(--shadow-lg);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  color: var(--text-dark-primary);
}

.light-mode .modal-content {
  background: var(--bg-light-card);
  border: 1px solid var(--border-light);
  color: var(--text-light-primary);
}

.modal-img {
  height: 240px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 10;
}

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

.modal-body {
  padding: 24px;
}

.modal-body h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.modal-body p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-dark-secondary);
  margin-bottom: 24px;
}

.light-mode .modal-body p {
  color: var(--text-light-secondary);
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-dark);
  padding-top: 20px;
}

.light-mode .modal-actions {
  border-top: 1px solid var(--border-light);
}

/* Quantity Selectors */
.qty-selector {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  padding: 4px;
}

.light-mode .qty-selector {
  background: rgba(0, 0, 0, 0.03);
}

.qty-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--bg-dark-card);
  color: var(--text-dark-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition-fast);
  font-weight: bold;
}

.light-mode .qty-btn {
  background: var(--bg-light-card);
  color: var(--text-light-primary);
}

.qty-btn:hover {
  background: var(--accent-color);
  color: white;
}

.qty-value {
  font-weight: 700;
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

/* Floating WhatsApp Cart Widget */
.cart-widget {
  position: fixed;
  bottom: 20px;
  left: 50%;
  z-index: 100;
  background: var(--accent-color);
  color: white;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg), var(--shadow-accent);
  transition: var(--transition-normal);
  transform: translate(-50%, 150px); /* Centered and Hidden */
  opacity: 0;
  width: calc(100% - 32px);
  max-width: 448px;
}

.cart-widget.visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.cart-widget:hover {
  transform: translate(-50%, -2px);
  background-color: var(--accent-color-hover);
}

.cart-icon-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-badge {
  background: white;
  color: var(--accent-color);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Cart Items in Dialog */
.cart-list {
  max-height: 250px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
  margin-right: 12px;
}

.cart-item-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.cart-item-info p {
  font-size: 0.8rem;
  color: var(--text-dark-secondary);
}

.light-mode .cart-item-info p {
  color: var(--text-light-secondary);
}

.whatsapp-success-btn {
  background: #25d366;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
}

.whatsapp-success-btn:hover {
  background: #20ba5a;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
}

/* QR Code Section inside Dashboard */
.qr-preview-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  border: 2px dashed var(--border-dark);
  border-radius: var(--radius-md);
  margin-top: 20px;
}

.light-mode .qr-preview-box {
  border-color: var(--border-light);
}

#qrcode-canvas {
  background: white;
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  display: inline-block;
  max-width: 240px;
  width: 100%;
}

#qrcode-canvas svg, #qrcode-canvas img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* PDF Print Preview Styles */
@media print {
  body {
    background: white !important;
    color: black !important;
  }
  
  .no-print {
    display: none !important;
  }
  
  /* Hide print areas by default */
  #print-menu-area, #print-standees-area {
    display: none !important;
  }
  
  /* Show active print area based on body class */
  body.printing-menu #print-menu-area {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  body.printing-standees #print-standees-area {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .print-card {
    page-break-inside: avoid;
    border: 1px solid #ddd !important;
    margin-bottom: 12px !important;
    padding: 12px !important;
    border-radius: 8px !important;
    display: flex !important;
    justify-content: space-between !important;
  }
  
  .print-card-details {
    width: 75%;
  }
  
  .print-card-price {
    font-weight: bold;
    font-size: 1.1rem;
  }

  /* Standee Print Layout */
  body.printing-standees, 
  body.printing-standees * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .standee-card-print {
    width: 5.5in;
    height: 8.0in;
    margin: 1.0in auto;
    padding: 30px;
    text-align: center;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: white !important;
    color: black !important;
    page-break-after: always;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
  }
  
  .standee-header-print {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
  }
  
  .standee-logo-print {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 8px;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background: white;
  }
  
  .standee-qr-wrap-print {
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    padding: 10px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  }
  
  .standee-qr-wrap-print svg {
    width: 2.8in !important;
    height: 2.8in !important;
  }
  
  .standee-footer-print {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
  }
  
  .standee-table-badge-print {
    background-color: var(--accent-color) !important;
    color: white !important;
    padding: 8px 30px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.5rem;
    display: inline-block;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  }

  /* ------------------------------------------------ */
  /* 1. CLASSIC PREMIUM THEME (theme-classic)         */
  /* ------------------------------------------------ */
  .standee-card-print.theme-classic {
    background-color: #fcfaf6 !important;
    border: none !important;
    font-family: 'Outfit', 'Georgia', serif !important;
  }
  .theme-classic .classic-border-outer {
    border: 3px solid #c5a880;
    padding: 6px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
    box-sizing: border-box;
  }
  .theme-classic .classic-border-inner {
    border: 1px solid #c5a880;
    padding: 30px 20px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border-radius: 14px;
    box-sizing: border-box;
  }
  .theme-classic .classic-flourish {
    color: #c5a880;
    font-size: 1.5rem;
    margin: 4px 0;
    line-height: 1;
  }
  .theme-classic .classic-title {
    font-size: 2.2rem;
    color: #1e293b;
    font-family: 'Outfit', serif;
    letter-spacing: 0.05em;
    margin: 8px 0;
    text-transform: uppercase;
  }
  .theme-classic .classic-desc {
    color: #64748b;
    font-size: 0.95rem;
    font-style: italic;
    max-width: 80%;
    line-height: 1.4;
  }
  .theme-classic .classic-qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 0;
  }
  .theme-classic .classic-qr-title {
    font-size: 1.1rem;
    color: #b45309;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 700;
  }
  .theme-classic .standee-table-badge-print {
    background-color: #1e293b !important;
    color: #c5a880 !important;
    border: 1px solid #c5a880;
  }

  /* ------------------------------------------------ */
  /* 2. BURGER DELIGHT THEME (theme-burger)           */
  /* ------------------------------------------------ */
  .standee-card-print.theme-burger {
    background-color: #fffbeb !important;
    border: 8px solid #fbbf24 !important;
    border-radius: 48px;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
  }
  .theme-burger .burger-top-bun-container {
    width: 85%;
    margin-top: -15px;
    position: relative;
  }
  .theme-burger .burger-bun-top {
    width: 100%;
    height: auto;
  }
  .theme-burger .burger-lettuce {
    width: 106%;
    height: 16px;
    background-color: #10b981;
    border-radius: 50px;
    margin: -10px -3% 0 -3%;
    position: relative;
    z-index: 3;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  .theme-burger .burger-title {
    font-size: 2.2rem;
    color: #b45309;
    font-weight: 800;
    margin: 10px 0 2px 0;
  }
  .theme-burger .burger-desc {
    color: #78350f;
    font-size: 0.9rem;
    max-width: 85%;
    opacity: 0.8;
  }
  .theme-burger .burger-cheese-box {
    background-color: #fef08a !important;
    border: 4px dashed #f59e0b;
    border-radius: 28px;
    padding: 16px 20px;
    width: 85%;
    margin: 10px 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 0 #fef08a, 0 12px 20px rgba(0,0,0,0.06);
  }
  .theme-burger .burger-cheese-drip-left {
    position: absolute;
    bottom: -18px;
    left: 40px;
    width: 20px;
    height: 20px;
    background-color: #fef08a;
    border-radius: 0 0 10px 10px;
    box-shadow: -4px 0 0 #fef08a, 4px 0 0 #fef08a;
  }
  .theme-burger .burger-cheese-drip-right {
    position: absolute;
    bottom: -18px;
    right: 40px;
    width: 20px;
    height: 20px;
    background-color: #fef08a;
    border-radius: 0 0 10px 10px;
    box-shadow: -4px 0 0 #fef08a, 4px 0 0 #fef08a;
  }
  .theme-burger .burger-qr-title {
    font-size: 1.1rem;
    color: #ef4444;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
  }
  .theme-burger .burger-bottom-bun-container {
    width: 85%;
    margin-bottom: -15px;
    position: relative;
  }
  .theme-burger .burger-bun-bottom {
    width: 100%;
    height: auto;
  }
  .theme-burger .standee-table-badge-print {
    background-color: #ef4444 !important;
    color: white !important;
    border-radius: 12px;
    font-size: 1.6rem;
  }

  /* ------------------------------------------------ */
  /* 3. COFFEE VIBE THEME (theme-coffee)              */
  /* ------------------------------------------------ */
  .standee-card-print.theme-coffee {
    background-color: #fdfaf7 !important;
    border: 6px solid #4e3629 !important;
    border-radius: 36px;
    font-family: 'Outfit', sans-serif !important;
  }
  .theme-coffee .coffee-steam-container {
    width: 40%;
    height: 55px;
    margin-top: -10px;
  }
  .theme-coffee .coffee-steam {
    width: 100%;
    height: 100%;
  }
  .theme-coffee .coffee-title {
    font-size: 2.2rem;
    color: #4e3629;
    font-weight: 800;
    margin-top: 5px;
  }
  .theme-coffee .coffee-desc {
    color: #8c786c;
    font-size: 0.9rem;
    max-width: 80%;
  }
  .theme-coffee .coffee-cup-body {
    position: relative;
    width: 72%;
    background-color: #eae0d5 !important;
    border: 4px solid #4e3629;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    padding: 16px 20px 20px 20px;
    margin: 15px auto;
  }
  .theme-coffee .coffee-cup-handle {
    position: absolute;
    right: -32px;
    top: 25%;
    width: 28px;
    height: 65px;
    border: 4px solid #4e3629;
    border-left: none;
    border-radius: 0 35px 35px 0;
    background-color: #fdfaf7 !important;
  }
  .theme-coffee .coffee-qr-title {
    font-size: 0.95rem;
    color: #4e3629;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
  }
  .theme-coffee .standee-table-badge-print {
    background-color: #4e3629 !important;
    color: #fdfaf7 !important;
    font-size: 1.5rem;
    border-radius: 8px;
  }
  .theme-coffee .coffee-beans-decor {
    font-size: 1rem;
    letter-spacing: 6px;
    margin-top: 8px;
    color: #8c786c;
  }

  /* ------------------------------------------------ */
  /* 4. MODERN NEON THEME (theme-neon)                */
  /* ------------------------------------------------ */
  .standee-card-print.theme-neon {
    background-color: #090d16 !important;
    border: 4px solid var(--accent-color) !important;
    border-radius: 40px;
    color: white !important;
    box-shadow: 0 0 25px var(--accent-color) !important;
  }
  .theme-neon .neon-glow-line {
    width: 75%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    margin: 10px auto;
  }
  .theme-neon .neon-title {
    font-size: 2.3rem;
    color: white !important;
    font-weight: 800;
    text-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color);
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  .theme-neon .neon-desc {
    color: #94a3b8 !important;
    font-size: 0.9rem;
    max-width: 85%;
    text-shadow: 0 0 4px rgba(255,255,255,0.2);
  }
  .theme-neon .neon-qr-box {
    position: relative;
    border: 3px solid #06b6d4;
    padding: 16px 20px;
    width: 80%;
    margin: 15px auto;
    background: #0f172a !important;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
    border-radius: 20px;
  }
  .theme-neon .neon-corner {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 4px solid #06b6d4;
  }
  .theme-neon .neon-corner.tl { top: -4px; left: -4px; border-right: none; border-bottom: none; }
  .theme-neon .neon-corner.tr { top: -4px; right: -4px; border-left: none; border-bottom: none; }
  .theme-neon .neon-corner.bl { bottom: -4px; left: -4px; border-right: none; border-top: none; }
  .theme-neon .neon-corner.br { bottom: -4px; right: -4px; border-left: none; border-top: none; }
  .theme-neon .neon-qr-title {
    font-size: 1.05rem;
    color: #06b6d4 !important;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.6);
    margin-bottom: 8px;
  }
  .theme-neon .standee-table-badge-print {
    background-color: var(--accent-color) !important;
    color: white !important;
    border-radius: 10px;
    font-size: 1.6rem;
    box-shadow: 0 0 15px var(--accent-color);
  }

  /* Dual QRs styling inside print layout */
  .dual-qrs-wrapper {
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
    margin: 8px 0 !important;
  }
  
  .qr-col {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    min-width: 0 !important;
  }
  
  .qr-col-title {
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    margin-bottom: 6px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    line-height: 1.2 !important;
  }
  
  .standee-card-print.has-wifi .standee-qr-wrap-print {
    padding: 6px !important;
    border-radius: 12px !important;
  }
  
  .standee-card-print.has-wifi .standee-qr-wrap-print svg {
    width: 1.75in !important;
    height: 1.75in !important;
  }
}

.print-area {
  display: none;
}

/* Admin Login Screen & Overlay Styles */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 12, 17, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.light-mode .login-overlay {
  background: rgba(243, 244, 246, 0.95);
}

.login-box {
  width: 100%;
  max-width: 400px;
  padding: 40px 30px !important;
  border-radius: var(--radius-lg) !important;
  text-align: center;
  box-shadow: var(--shadow-lg) !important;
}

.login-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: rgba(var(--accent-color-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

/* Shake Animation for incorrect passcode */
.error-shake {
  animation: shake 0.4s ease;
}

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

/* Restaurant Lobby Directory Cards Styles */
.restaurant-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 220px;
  padding: 24px;
  cursor: pointer;
}

.restaurant-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-color-rgb), 0.4);
  box-shadow: var(--shadow-md);
}

.restaurant-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 15px;
}

.restaurant-card-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: #222;
  border: 1px solid var(--border-dark);
}
.light-mode .restaurant-card-logo {
  background: #f3f4f6;
  border: 1px solid var(--border-light);
}

.restaurant-card-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.restaurant-card-info p {
  font-size: 0.85rem;
  color: var(--text-dark-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}
.light-mode .restaurant-card-info p {
  color: var(--text-light-secondary);
}

.restaurant-card-stats {
  font-size: 0.75rem;
  color: var(--text-dark-secondary);
  border-top: 1px solid var(--border-dark);
  padding-top: 12px;
  margin-top: 12px;
  display: flex;
  gap: 12px;
}
.light-mode .restaurant-card-stats {
  color: var(--text-light-secondary);
  border-top-color: var(--border-light);
}

.restaurant-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  gap: 10px;
}

.dashed-add-card {
  border: 2px dashed var(--border-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 220px;
  padding: 24px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition-normal);
  background: rgba(255, 255, 255, 0.01);
}
.light-mode .dashed-add-card {
  border: 2px dashed var(--border-light);
  background: rgba(0, 0, 0, 0.005);
}

.dashed-add-card:hover {
  border-color: var(--accent-color);
  background: rgba(var(--accent-color-rgb), 0.02);
  transform: translateY(-4px);
}

.dashed-add-card i {
  color: var(--text-dark-secondary);
  margin-bottom: 12px;
  transition: var(--transition-fast);
}
.light-mode .dashed-add-card i {
  color: var(--text-light-secondary);
}

.dashed-add-card:hover i {
  color: var(--accent-color);
  transform: scale(1.1);
}

.dashed-add-card span {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark-primary);
}
.light-mode .dashed-add-card span {
  color: var(--text-light-primary);
}

/* ------------------------------------------------ */
/* RESPONSIVE LAYOUT SYSTEM IMPROVEMENTS            */
/* ------------------------------------------------ */

.editor-grid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
  width: 100%;
}

.lobby-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 20px;
  gap: 16px;
}
.light-mode .lobby-header {
  border-bottom-color: var(--border-light);
}

.lobby-stats-banner {
  padding: 20px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-dark);
  gap: 16px;
}

#restaurants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

@media (max-width: 1024px) {
  .editor-grid-layout {
    grid-template-columns: 1fr !important;
  }
  .mobile-simulator {
    position: relative !important;
    top: 0 !important;
    margin: 30px auto 0 auto !important;
    max-width: 340px;
  }
  .admin-container {
    padding: 20px 10px !important;
  }
}

@media (max-width: 768px) {
  .lobby-header {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .lobby-stats-banner {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .admin-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }
  .admin-header div:last-child {
    display: flex !important;
    width: 100% !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
  }
}
