/* Design System & Styling for Akrathos Beach Bar Menu */

:root {
  /* Fonts */
  --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-title: 'Playfair Display', Georgia, serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  /* Theme Defaults (Light Mode) */
  --bg-primary: #f5f7fa;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --border-card: rgba(255, 255, 255, 0.6);
  --border-subtle: #e2e8f0;
  
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  
  --color-primary: #2b6cb0; /* Akrathos signature blue */
  --color-primary-rgb: 43, 108, 176;
  --color-primary-light: #ebf8ff;
  --color-accent: #319795; /* Teal beach vibe */
  --color-success: #38a169;
  --color-danger: #e53e3e;
  
  --color-logo-bg: #2b6cb0;
  --color-logo-text: #ffffff;
  --color-logo-accent: #ffffff;

  --color-waiter-logo-bg: #1a202c;
  --color-waiter-logo-accent: #ffffff;
  --color-waiter-logo-text: #ffffff;

  /* Bottom Waves colors */
  --color-wave-1: rgba(186, 230, 253, 0.3);
  --color-wave-2: rgba(147, 197, 253, 0.5);
  --color-wave-3: #3182ce;
  --color-wave-3-dark: #1d4ed8;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 15px rgba(43, 108, 176, 0.3);

  --glass-blur: blur(12px);
  --container-max-width: 768px;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --bg-primary: #0a0f1d; /* Deep ocean midnight */
  --bg-secondary: #131929;
  --bg-card: rgba(19, 25, 41, 0.75);
  --border-card: rgba(255, 255, 255, 0.06);
  --border-subtle: #2d3748;
  
  --text-primary: #f7fafc;
  --text-secondary: #cbd5e0;
  --text-muted: #a0aec0;
  
  --color-primary: #4299e1; /* Brighter blue for dark background */
  --color-primary-rgb: 66, 153, 225;
  --color-primary-light: rgba(66, 153, 225, 0.15);
  --color-accent: #4fd1c5;
  
  --color-logo-bg: #131929;
  --color-logo-text: #f7fafc;
  --color-logo-accent: #4299e1;

  --color-wave-1: rgba(19, 25, 41, 0.5);
  --color-wave-2: rgba(10, 15, 29, 0.8);
  --color-wave-3: #1e3a8a;
  --color-wave-3-dark: #0f172a;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 15px rgba(66, 153, 225, 0.4);
}

/* Base resets & setups */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
}

/* Container limits to keep it looking clean on desktop, acts as mobile app */
.app-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background-color: var(--bg-primary);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-normal);
}

[data-theme="dark"] .app-container {
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
}

/* ------------------------------------------------------------- */
/* STICKY HEADER & NAV                                           */
/* ------------------------------------------------------------- */
.sticky-header-container {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 12px;
}

.header-logo-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-container {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo-svg {
  width: 100%;
  height: 100%;
  animation: logoGlow 4s infinite alternate;
}

@keyframes logoGlow {
  0% { filter: drop-shadow(0 0 2px rgba(var(--color-primary-rgb), 0.2)); }
  100% { filter: drop-shadow(0 0 8px rgba(var(--color-primary-rgb), 0.5)); }
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-primary);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-muted);
}

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

/* Control Buttons */
.control-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.control-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: var(--color-primary);
}

.control-btn:active {
  transform: translateY(1px);
}

/* Sun/Moon Display toggling */
#theme-toggle .icon-sun {
  display: block;
  color: #d69e2e;
}
#theme-toggle .icon-moon {
  display: none;
  color: #90cdf4;
}

[data-theme="dark"] #theme-toggle .icon-sun {
  display: none;
}
[data-theme="dark"] #theme-toggle .icon-moon {
  display: block;
}

/* Language selector */
.language-dropdown-wrapper {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  height: 38px;
}

.lang-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.lang-chevron {
  font-size: 0.65rem;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.language-dropdown-wrapper.active .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: 46px;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  width: 150px;
  max-height: 280px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  z-index: 120;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  padding: 4px;
}

.lang-dropdown-menu.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: background var(--transition-fast);
}

.lang-dropdown-item:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.lang-dropdown-item.active {
  background: var(--color-primary);
  color: white;
  font-weight: 600;
}

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

.search-wrapper {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.search-wrapper input {
  width: 100%;
  padding: 10px 40px 10px 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
  outline: none;
  transition: all var(--transition-fast);
}

.search-wrapper input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.15);
}

.clear-search-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  font-size: 0.95rem;
}

.clear-search-btn:hover {
  color: var(--text-primary);
}

/* Category Navigation Scroll */
.category-nav {
  padding: 0 16px 10px 16px;
  overflow: hidden;
}

.category-nav-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  padding-bottom: 2px;
}

.category-nav-scroll::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.category-pill {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.category-pill .greek-subtitle {
  font-size: 0.6rem;
  opacity: 0.7;
  font-weight: 400;
}

.category-pill:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.category-pill.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-glow);
  transform: scale(1.03);
}

/* ------------------------------------------------------------- */
/* MENU MAIN & ITEMS                                             */
/* ------------------------------------------------------------- */
.menu-main {
  flex-grow: 1;
  padding: 16px 16px 120px 16px; /* extra bottom padding for cart FAB and waves */
  position: relative;
  z-index: 10;
}

.category-section {
  scroll-margin-top: 175px; /* Keeps scrolled-to sections below the sticky headers */
  margin-bottom: 36px;
}

.category-section-title-wrap {
  margin-bottom: 16px;
  border-left: 4px solid var(--color-primary);
  padding-left: 12px;
  display: flex;
  flex-direction: column;
}

.category-section-title {
  font-family: var(--font-primary);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.category-section-title-greek {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  color: var(--color-primary);
  opacity: 0.85;
  font-weight: 500;
}

/* Menu Grid */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 600px) {
  .menu-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Item Card */
.menu-item-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.menu-item-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--color-primary-rgb), 0.2);
}

.menu-item-card.has-items {
  border-color: rgba(var(--color-primary-rgb), 0.4);
  box-shadow: 0 0 10px rgba(var(--color-primary-rgb), 0.08);
}

.menu-item-info {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
}

.item-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
}

.item-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.item-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

.item-greek-name {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.3;
}

.item-description {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
  opacity: 0.8;
}

/* Card Actions */
.item-actions {
  align-self: flex-end;
  margin-top: auto;
}

.add-init-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--color-primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.add-init-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  transform: translateY(-1px);
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 3px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.qty-btn {
  background: var(--color-primary-light);
  border: none;
  color: var(--color-primary);
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all var(--transition-fast);
}

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

.qty-number {
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
  color: var(--text-primary);
}

/* No Results placeholder for Search */
.no-results {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.no-results i {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* ------------------------------------------------------------- */
/* BOTTOM WAVES ACCENT                                           */
/* ------------------------------------------------------------- */
.waves-divider-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.waves-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.wave-layer {
  animation: waveMotion 12s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
  transform-origin: center bottom;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.wave-back {
  animation-duration: 18s;
}

.wave-middle {
  animation-duration: 12s;
  animation-delay: -2s;
}

.wave-front {
  animation-duration: 8s;
  animation-delay: -1s;
}

@keyframes waveMotion {
  0% { transform: translate3d(0, 0, 0) scaleY(1); }
  50% { transform: translate3d(-25%, 0, 0) scaleY(1.03); }
  100% { transform: translate3d(0, 0, 0) scaleY(1); }
}

/* ------------------------------------------------------------- */
/* FLOATING ACTION BUTTON (CART)                                 */
/* ------------------------------------------------------------- */
.cart-fab {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: calc(var(--container-max-width) - 32px);
  z-index: 90;
  animation: slideUpFab 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFab {
  0% { transform: translate(-50%, 100px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 1; }
}

.cart-fab-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-wave-3-dark));
  border: none;
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(var(--color-primary-rgb), 0.3), var(--shadow-glow);
  transition: all var(--transition-normal);
}

.cart-fab-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(var(--color-primary-rgb), 0.4), var(--shadow-glow);
  filter: brightness(1.05);
}

.cart-fab-btn:active {
  transform: translateY(1px);
}

.cart-fab-icon-wrapper {
  position: relative;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--color-danger);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-primary);
  animation: badgePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgePop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.cart-fab-text {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-fab-label {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.cart-fab-price {
  font-size: 1.1rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}

/* ------------------------------------------------------------- */
/* DRAWER MODAL                                                  */
/* ------------------------------------------------------------- */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  z-index: 140;
  transition: opacity var(--transition-normal);
}

.drawer-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%);
  width: 100%;
  max-width: var(--container-max-width);
  height: 80vh;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
  z-index: 150;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal);
}

.cart-drawer.show {
  transform: translate(-50%, 0);
}

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

.drawer-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-header-icon {
  font-size: 1.3rem;
  color: var(--color-primary);
}

.drawer-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.close-drawer-btn {
  background: var(--bg-primary);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.close-drawer-btn:hover {
  background: var(--border-subtle);
}

.drawer-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.empty-cart-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-muted);
  text-align: center;
}

.empty-cart-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  color: var(--color-primary-light);
  background: var(--bg-primary);
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

#empty-cart-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Cart Items List */
.cart-items-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-name-col {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.cart-item-greek {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

.cart-item-price {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.cart-item-action-col {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-item-total {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  min-width: 60px;
  text-align: right;
}

.drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  box-shadow: 0 -5px 15px rgba(0,0,0,0.02);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.total-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.total-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
}

.drawer-actions {
  display: flex;
  gap: 10px;
}

/* Button Classes */
.btn {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  flex-grow: 2;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-wave-3-dark);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--bg-primary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  flex-grow: 1;
}

.btn-secondary:hover {
  background: var(--color-danger);
  color: white;
  border-color: var(--color-danger);
}

/* ------------------------------------------------------------- */
/* WAITER VIEW MODAL (FULL SCREEN)                               */
/* ------------------------------------------------------------- */
.waiter-modal {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, 100%);
  width: 100%;
  max-width: var(--container-max-width);
  height: 100vh;
  background: #ffffff; /* FORCE pure high-contrast white background */
  color: #000000;      /* FORCE pure high-contrast black text */
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transition: transform var(--transition-normal);
  overflow-y: auto;
}

/* In dark mode we still want this to be super high contrast light screen for the waiter outside */
[data-theme="dark"] .waiter-modal {
  background: #ffffff;
  color: #000000;
}

.waiter-modal.show {
  transform: translate(-50%, 0);
}

.waiter-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 3px solid #000000;
}

.logo-container.compact {
  width: 60px;
  height: 60px;
}

.logo-svg-waiter {
  width: 100%;
  height: 100%;
}

.waiter-header-text h2 {
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #000000;
}

.waiter-header-text p {
  font-size: 0.85rem;
  font-weight: 600;
  color: #4a5568;
}

.waiter-modal-body {
  flex-grow: 1;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
}

/* Waiter Items */
.waiter-items-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: auto;
}

.waiter-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 2px dashed #cbd5e0;
}

.waiter-item-qty {
  font-size: 1.8rem;
  font-weight: 800;
  color: #2b6cb0; /* Highlight color in waiter mode */
  background: #ebf8ff;
  border: 2px solid #2b6cb0;
  padding: 4px 14px;
  border-radius: var(--radius-sm);
  min-width: 55px;
  text-align: center;
}

.waiter-item-names {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.waiter-item-name {
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #000000;
}

.waiter-item-greek {
  font-size: 1.1rem;
  font-weight: 600;
  color: #4a5568;
  font-style: normal;
}

.waiter-total-block {
  margin-top: 30px;
  padding: 16px;
  background: #f7fafc;
  border: 2px solid #000000;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#waiter-total-label {
  font-size: 1.3rem;
  font-weight: 700;
  color: #000000;
}

#waiter-total-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: #000000;
}

.waiter-modal-footer {
  padding-top: 16px;
}

.btn-large {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
}

/* Force dark button for back action so it's super visible */
#back-to-menu-btn {
  background: #000000;
  color: #ffffff;
  border: none;
}

#back-to-menu-btn:hover {
  background: #2d3748;
}
