/* style.css - Premium styling voor de Pop-up Restaurant Dranken-App */

/* Design Tokens & CSS Variables (Verbeterd voor hoog contrast) */
:root {
  --bg-app: #0c0e15; /* Iets dieper maar contrastrijker blauw-zwart */
  --bg-card: #151824; /* Solide donkere kaartachtergrond */
  --bg-card-hover: #1e2233;
  --border-color: rgba(255, 255, 255, 0.16); /* Duidelijker zichtbaar */
  --border-color-hover: rgba(255, 255, 255, 0.35);
  
  /* Palette */
  --primary: #d5b990; /* Brighter gold/bronze voor betere leesbaarheid */
  --primary-hover: #e5ca9f;
  --primary-glow: rgba(213, 185, 144, 0.4);
  
  --secondary: #64748b;
  --success: #10b981; /* Emerald Green */
  --success-glow: rgba(16, 185, 129, 0.35);
  --warning: #f59e0b; /* Amber */
  --warning-glow: rgba(245, 158, 11, 0.35);
  --danger: #ef4444; /* Rose */
  --info: #0ea5e9; /* Sky Blue */
  --info-glow: rgba(14, 165, 233, 0.35);
  
  /* Text */
  --text-main: #f8fafc;
  --text-muted: #cbd5e1; /* Lichter grijs voor beter tekstcontrast */
  --text-inverse: #0f172a;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

input::placeholder, textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

body {
  font-family: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(213, 185, 144, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(14, 165, 233, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: rgba(12, 14, 21, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.logo-icon {
  font-size: 1.75rem;
}

.logo-text h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
}

.logo-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Badges & Buttons */
.status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.status-badge:hover {
  filter: brightness(1.2);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.05);
}

.status-local {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.status-online {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.status-backup {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

.status-backup .status-dot {
  animation: pulse-backup 2s infinite;
}

@keyframes pulse-backup {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 5px rgba(96, 165, 250, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(96, 165, 250, 0); }
}

.db-option-label:has(input:checked) {
  border-color: var(--primary) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: currentColor;
  display: inline-block;
}

.status-online .status-dot {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(52, 211, 153, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  padding: 0.65rem;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-color-hover);
  color: var(--primary);
}

/* Warning Banner */
.warning-banner {
  background: rgba(245, 158, 11, 0.15);
  border-bottom: 2.5px solid rgba(245, 158, 11, 0.35);
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.88rem;
  color: #fbbf24;
}

.warning-banner.hidden {
  display: none !important;
}

.code-link {
  background: rgba(0, 0, 0, 0.4);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  color: var(--text-main);
}

.close-btn {
  background: none;
  border: none;
  color: currentColor;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

/* Main Container */
.app-container {
  flex: 1;
  padding: 1.5rem;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

/* Sections */
.view-section {
  display: none;
  animation: fadeIn var(--transition-fast) forwards;
}

.view-section.active {
  display: block;
}

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

.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Tables & Seating Layout */
.tables-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 1rem;
}

.long-table-container {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 12px 36px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;

  /* Custom scrollbar color & width configuration for modern browsers */
  --scrollbar-thumb: rgba(2, 132, 199, 0.4);
  --scrollbar-track: rgba(255, 255, 255, 0.03);
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  scrollbar-width: thin;
}

/* Fallback for WebKit browsers where scrollbar-color is not natively supported */
@supports not (scrollbar-color: auto) {
  .long-table-container::-webkit-scrollbar {
    height: 8px;
    display: block;
  }
  .long-table-container::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
    border: 2px solid #10121d;
  }
  .long-table-container::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 4px;
  }
}

.table-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary);
  min-width: max-content;
}

.table-stat {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Table Visual Render (Horizontale 3-rijen indeling) */
.table-visual {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.5rem 0;
  width: max-content;
  min-width: 100%;
  padding-bottom: 0.5rem;
}

.table-surface-horizontal {
  height: 38px;
  width: 100%;
  background: linear-gradient(180deg, #2a2f42 0%, #1e2230 100%);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.3);
  z-index: 1;
}

.seats-side {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  width: 100%;
  justify-content: flex-start;
  z-index: 2;
}

/* Mobiele optimalisatie: tafels schalen lichtjes en blijven naast elkaar */
@media(max-width: 600px) {
  /* Layout & Padding optimalisaties voor mobiel */
  .app-container {
    padding: 0.75rem;
  }
  
  .section-header {
    margin-bottom: 1.25rem;
  }
  
  .section-header h2 {
    font-size: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 0.85rem;
  }

  /* Header optimalisaties voor mobiel */
  .app-header {
    padding: 0.65rem 0.75rem;
    gap: 0.5rem;
  }
  
  .header-logo {
    gap: 0.4rem;
  }
  
  .logo-icon {
    font-size: 1.35rem;
  }
  
  .logo-text h1 {
    font-size: 1.05rem;
  }
  
  .logo-text span {
    display: none; /* Verberg 'Pop-up Restaurant' subtitel op kleine schermen */
  }
  
  .header-actions {
    gap: 0.4rem;
  }
  
  .day-selector-group {
    border-radius: 8px;
  }
  
  .day-btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.78rem;
  }
  
  #db-status-text {
    display: none; /* Verberg status-tekst om ruimte te besparen */
  }
  
  .status-badge {
    padding: 0;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  
  .status-dot {
    margin: 0;
  }
  
  #toggle-stats-btn {
    padding: 0.45rem;
    border-radius: 8px;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  #toggle-stats-btn svg {
    width: 18px;
    height: 18px;
  }

  /* Warning banner compacter op mobiel */
  .warning-banner {
    padding: 0.6rem 0.75rem;
    font-size: 0.78rem;
  }

  /* Tafels en stoelen */
  .tables-layout {
    gap: 1.5rem;
  }
  
  .long-table-container {
    padding: 1rem;
    border-radius: 16px;
  }
  
  .table-title {
    font-size: 1.05rem;
    margin-bottom: 1rem;
  }
  
  .table-visual {
    gap: 0.8rem;
  }
  
  .table-surface-horizontal {
    height: 28px;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
  }
  
  .seat-btn {
    width: 68px;
    height: 68px;
    min-width: 68px;
    min-height: 68px;
    border-width: 1.5px;
  }
  
  .seat-num {
    font-size: 1.05rem;
  }
  
  .seat-indicator {
    font-size: 0.62rem;
    max-width: 62px;
  }
  
  .seat-allergy-badge {
    min-width: 15px;
    height: 15px;
    font-size: 0.55rem;
    padding: 0 3px;
    border-radius: 7.5px;
    bottom: -2px;
    left: -2px;
  }
  
  .seat-badge {
    width: 16px;
    height: 16px;
    font-size: 0.6rem;
    top: -4px;
    right: -4px;
  }
}

/* Individual Seat Styling (HOGER CONTRAST & DUIDELIJK TIKBAAR) */
.seat-btn {
  aspect-ratio: 1;
  background: #252a3b; /* Solide donkerblauwe achtergrond */
  border: 2px solid rgba(255, 255, 255, 0.22); /* Veel dikkere en lichtere rand */
  border-radius: 20px; /* Modern squircle design voor maximale tekstruimte */
  color: #ffffff; /* Helder wit */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  padding: 0.25rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
  width: 80px;
  height: 80px;
  min-width: 80px;
  min-height: 80px;
}

.seat-num {
  font-weight: 800; /* Extra vet */
  font-size: 1.15rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.seat-indicator {
  font-size: 0.72rem;
  color: #e2e8f0;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  margin-top: 3px;
}

/* Seat States (Verbeterd contrast) */
.seat-btn.state-free:hover {
  background: #353d57;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 14px var(--primary-glow);
}

.seat-btn.state-active,
.seat-btn.state-billing {
  background: #0284c7; /* Helderder blauw */
  border-color: #38bdf8;
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.45), 0 4px 6px rgba(0,0,0,0.2);
  color: #ffffff;
}
.seat-btn.state-active:hover,
.seat-btn.state-billing:hover {
  background: #0369a1;
  transform: translateY(-3px);
}

.seat-btn.state-paid {
  background: #059669; /* Helderder groen */
  border-color: #34d399;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.5);
  color: #ffffff;
  animation: flashGreen 1.5s ease;
}

@keyframes flashGreen {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); background-color: var(--success); }
  100% { transform: scale(1); }
}

/* Seat Active Dot (Small badge for orders count) */
.seat-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--primary);
  color: var(--text-inverse);
  font-size: 0.7rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #151824;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.seat-btn.state-active .seat-badge,
.seat-btn.state-billing .seat-badge {
  background-color: #38bdf8;
  color: #0c0e15;
}

/* DRAWER / SLIDE OVER */
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height voor mobiel */
  z-index: 1000;
  visibility: hidden;
  transition: visibility var(--transition-normal);
}

.drawer.active {
  visibility: visible;
}

.drawer-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.drawer.active .drawer-backdrop {
  opacity: 1;
}

.drawer-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 88%;
  height: 88dvh; /* Gebruik dynamic viewport height op mobiel */
  background: #151824; /* Zelfde als cards voor consistent contrast */
  border-top: 2px solid var(--border-color);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform var(--transition-normal);
  overflow: hidden;
}

.drawer.active .drawer-content {
  transform: translateY(0);
}

/* Desktop drawer adjusts to slide in from right */
@media(min-width: 768px) {
  .drawer-content {
    top: 0;
    right: 0;
    left: auto;
    bottom: auto;
    width: 480px;
    height: 100%;
    border-top: none;
    border-left: 2px solid var(--border-color);
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
    border-top-right-radius: 0;
    transform: translateX(100%);
  }
  .drawer.active .drawer-content {
    transform: translateX(0);
  }
}

/* Drawer Header */
.drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: rgba(0, 0, 0, 0.15);
}

.drawer-title-area h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.guest-name-input-wrapper {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.drawer-header-input {
  background: rgba(0,0,0,0.3);
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
  width: 100%;
  transition: border-color var(--transition-fast);
}

.drawer-header-input.input-name {
  flex: 1.5;
}

.drawer-header-input.input-allergies {
  flex: 1;
  border-color: rgba(239, 68, 68, 0.25);
}

.drawer-header-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0,0,0,0.45);
}

/* Drawer Body */
.drawer-body {
  flex: 1;
  min-height: 0; /* Voorkom dat flexbox de footer buiten het scherm duwt */
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.drawer-tabs {
  display: flex;
  background: rgba(0,0,0,0.25);
  border-bottom: 2px solid var(--border-color);
}

.drawer-tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 1.15rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.drawer-tab-btn.active {
  color: var(--primary);
}

.drawer-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary);
}

.drawer-tab-btn .badge {
  background-color: #0ea5e9;
  color: white;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
  font-weight: 800;
}

.drawer-tab-btn .badge.hidden {
  display: none;
}

.drawer-tab-content {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.drawer-tab-content.active {
  display: flex;
  flex-direction: column;
}

/* Menu items listing */
.menu-category-section {
  margin-bottom: 2rem;
}

.menu-category-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 0.85rem;
  border-left: 3px solid var(--primary);
  padding-left: 0.65rem;
}

.menu-items-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.menu-item-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1f2436; /* Iets lichter voor hoog contrast */
  border: 1.5px solid var(--border-color);
  padding: 0.95rem 1.15rem;
  border-radius: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.menu-item-card:hover {
  background: #272d44;
  border-color: rgba(255,255,255,0.25);
  transform: translateX(4px);
}

.menu-item-info {
  display: flex;
  flex-direction: column;
}

.menu-item-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
}

.menu-item-unit {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.menu-item-price {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.05rem;
}

/* Receipt items listing */
.receipt-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
}

.receipt-list {
  list-style: none;
  overflow-y: auto;
  margin-bottom: 1.25rem;
  max-height: 250px;
  min-height: 140px; /* Voorkom dat de lijst inklapt op mobiel */
  flex-shrink: 0; /* Zorg dat flexbox de lijst niet samendrukt */
}

@media(min-height: 800px) {
  .receipt-list {
    max-height: 380px;
    min-height: 200px;
  }
}

.receipt-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1.5px solid var(--border-color);
}

.receipt-item-details {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.receipt-item-name {
  font-weight: 700;
  font-size: 1rem;
}

.receipt-item-total {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.receipt-item-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quantity-control {
  display: flex;
  align-items: center;
  background: #1f2436;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

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

.qty-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

/* Samen Betalen Section */
.link-seats-section {
  border-top: 2px dashed var(--border-color);
  padding-top: 1.25rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.link-seats-section h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.link-seats-search-wrapper {
  margin-bottom: 0.75rem;
  position: relative;
}

.link-seats-search-wrapper .search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  pointer-events: none;
  opacity: 0.6;
}

.link-seats-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.5rem 0.5rem 2.2rem;
  font-size: 0.9rem;
  border-radius: 8px;
  border: 1.5px solid var(--border-color);
  background: #151824;
  color: var(--text-main);
  outline: none;
  transition: all var(--transition-fast);
}

.link-seats-search-input:focus {
  border-color: var(--primary);
  background: #1e2233;
  box-shadow: 0 0 10px var(--primary-glow);
}

.link-seats-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-height: 90px;
  overflow-y: auto;
  padding: 2px;
}

.link-seat-pill {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: #1f2436;
  border: 1.5px solid var(--border-color);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.link-seat-pill:hover {
  background: #272d44;
}

.link-seat-pill.selected {
  background: rgba(14, 165, 233, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}

.link-seat-pill input {
  cursor: pointer;
  accent-color: #38bdf8;
}

.receipt-summary {
  background: rgba(0,0,0,0.25);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  margin-top: auto;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.summary-row.total {
  border-top: 1.5px dashed var(--border-color);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.summary-row.total span:last-child {
  color: var(--primary);
}

.empty-state {
  color: var(--text-muted);
  text-align: center;
  padding: 3rem 1.5rem;
  font-size: 0.95rem;
}

/* Drawer Footer */
.drawer-footer {
  padding: 1.25rem 1.5rem;
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom)); /* Zorg voor ruimte rondom iOS home indicator */
  border-top: 2px solid var(--border-color);
  background: rgba(18, 21, 31, 0.98);
}

.footer-default-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Button Classes */
.btn {
  padding: 0.95rem 1.25rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.btn-full {
  flex: 1;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-inverse);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-success {
  background: var(--success);
  color: white;
}
.btn-success:hover {
  background: #059669;
  transform: translateY(-2px);
}
.btn-success:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: rgba(255,255,255,0.06);
  border-color: var(--border-color);
  color: var(--text-main);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
}

.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-danger:hover {
  background: #dc2626;
}

.text-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

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

/* Payment Interface CSS */
#payment-actions-area h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
  text-align: center;
  color: var(--text-muted);
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.35rem;
}

.pay-method-btn {
  background: #1f2436;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 1.15rem 0.5rem;
  cursor: pointer;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.pay-method-btn:hover {
  background: #272d44;
  border-color: var(--border-color-hover);
}

.pay-method-btn.selected {
  background: rgba(213, 185, 144, 0.15);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.pay-icon {
  font-size: 1.6rem;
}

.pay-method-btn span:last-child {
  font-size: 0.9rem;
  font-weight: 700;
}

.payment-footer-buttons {
  display: flex;
  gap: 0.75rem;
}

.payment-footer-buttons button {
  flex: 1;
}

/* QR Code Modal Overlay */
.qr-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.qr-modal.active {
  display: flex;
}

.qr-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 8, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.qr-modal-content {
  position: relative;
  background: #151824;
  border: 2px solid var(--border-color);
  border-radius: 24px;
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  text-align: center;
  z-index: 2;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.qr-modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.qr-modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.qr-code-wrapper {
  background: white;
  padding: 1rem;
  border-radius: 16px;
  display: inline-block;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.qr-code-wrapper img {
  display: block;
  max-width: 100%;
}

.qr-modal-amount {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.qr-modal-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.4;
}

/* Admin / Stats View Styles */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media(min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stats-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stats-card h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
}

.stat-value-sub {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.stat-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stat-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-list-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.occupancy-bar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 100px;
  overflow: hidden;
}

.occupancy-fill {
  height: 100%;
  background-color: var(--primary);
  border-radius: 100px;
  transition: width 0.5s ease-out;
}

.admin-panel {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 1.75rem;
}

.admin-panel h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

/* Settings Form (IBAN settings) */
.settings-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.form-group input {
  background: rgba(0,0,0,0.25);
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  padding: 0.65rem 0.95rem;
  border-radius: 8px;
  font-size: 0.95rem;
  width: 100%;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.admin-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.transaction-history-container h3 {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  margin-top: 0.5rem;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  max-height: 250px;
  overflow-y: auto;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.2);
  border: 1.5px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
}

.history-details {
  display: flex;
  flex-direction: column;
}

.history-details strong {
  color: var(--text-main);
  font-size: 0.9rem;
}

.history-details span {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 2px;
}

.history-amount {
  font-weight: 800;
  color: var(--success);
}

/* Pulse animation for drawer badge */
@keyframes badgePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.pulse-animation {
  animation: badgePulse 0.3s ease-out;
}

/* Helper hidden class */
.hidden {
  display: none !important;
}

/* Zoekbalk & Acties Rij */
.search-actions-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.15rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.search-actions-row .search-wrapper {
  margin-top: 0;
  flex: 1;
  min-width: 250px;
  max-width: 450px;
}

.search-actions-row .btn,
.table-actions-bottom .btn {
  height: 46px;
  border-radius: 12px;
  font-weight: 600;
  white-space: nowrap;
  font-size: 0.95rem;
  padding: 0 1.25rem;
}

/* Bottom Action Buttons Container under Tables */
.table-actions-bottom {
  margin-top: 1.75rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

#admin-add-empty-seat-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
}

#admin-delete-seat-btn {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1.5px solid rgba(239, 68, 68, 0.25);
}

/* Swipe Indicator voor mobiel */
.swipe-indicator {
  display: none;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  margin-left: auto;
  font-weight: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: swipeHint 1.2s infinite alternate ease-in-out;
}

@keyframes swipeHint {
  0% {
    transform: translateX(-2px);
    opacity: 0.6;
  }
  100% {
    transform: translateX(2px);
    opacity: 1;
  }
}

/* Zoekbalk Styling */
.search-wrapper {
  margin-top: 1.15rem;
  max-width: 450px;
  position: relative;
}

.search-wrapper input {
  width: 100%;
  background: #151824;
  border: 2px solid var(--border-color);
  color: var(--text-main);
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border-radius: 12px;
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.search-wrapper input:focus {
  border-color: var(--primary);
  background: #1e2233;
  box-shadow: 0 0 14px var(--primary-glow);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 1.05rem;
}

/* Zoek resultaten effecten op de stoel buttons */
.seat-btn.search-dimmed {
  opacity: 0.12;
  filter: grayscale(90%);
  pointer-events: none; /* Voorkom klikken op gedimde stoelen tijdens zoeken */
  box-shadow: none;
}

.seat-btn.search-match {
  transform: scale(1.1);
  border-color: var(--primary) !important;
  box-shadow: 0 0 18px var(--primary-glow);
  z-index: 10;
  animation: pulseHighlight 1.5s infinite;
}

@keyframes pulseHighlight {
  0% { transform: scale(1.08); box-shadow: 0 0 10px var(--primary-glow); }
  50% { transform: scale(1.15); box-shadow: 0 0 20px var(--primary); }
  100% { transform: scale(1.08); box-shadow: 0 0 10px var(--primary-glow); }
}

/* Day Selector Group */
.day-selector-group {
  display: flex;
  background: rgba(0, 0, 0, 0.25);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  padding: 2px;
}

.day-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.day-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.day-btn.active {
  background: var(--primary);
  color: var(--text-inverse);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Allergy Badge on Seat Button */
.seat-allergy-badge {
  position: absolute;
  bottom: -3px;
  left: -3px;
  background: #0c0e15;
  color: #ef4444;
  font-size: 0.75rem;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #ef4444;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  font-weight: bold;
  z-index: 5;
  animation: allergyPulse 2s infinite;
}

@keyframes allergyPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Product Manager Styles */
.product-manager-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 2rem;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.3);
}

.product-category-selector {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.cat-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cat-tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-main);
}

.cat-tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-inverse);
  box-shadow: 0 0 8px var(--primary-glow);
}

.products-table-wrapper {
  overflow-x: auto;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.15);
  margin-bottom: 1.25rem;
}

.products-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.products-table th {
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1;
}

.products-table td {
  padding: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.products-table tr:last-child td {
  border-bottom: none;
}

.product-input {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  color: var(--text-main);
  font-size: 0.85rem;
  width: 100%;
  outline: none;
  transition: border-color var(--transition-fast);
}

.product-input:focus {
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.4);
}

.btn-delete-prod {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1.1rem;
  font-weight: bold;
}

.btn-delete-prod:hover {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}

.product-manager-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.product-manager-save-group {
  display: flex;
  gap: 0.5rem;
}

/* Klik-feedback & Zwevende +1 indicator */
.btn-success-flash {
  animation: successFlash 0.4s ease-out;
}

@keyframes successFlash {
  0% {
    background: rgba(16, 185, 129, 0.45) !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
    transform: scale(0.96);
  }
  50% {
    background: rgba(16, 185, 129, 0.3) !important;
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}

.floating-plus-one {
  position: fixed;
  color: #34d399; /* Emerald/Mint groen */
  font-weight: 900;
  font-size: 1.4rem;
  pointer-events: none;
  z-index: 10000;
  animation: floatUpAndFade 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.75);
}

@keyframes floatUpAndFade {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.5);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -15px) scale(1.3);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -70px) scale(0.95);
  }
}

/* Seating Setup (Bulk Seating Table) Styling */
.seating-setup-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.seating-tables-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media(min-width: 992px) {
  .seating-tables-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.seating-table-col h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--primary);
  border-left: 3px solid var(--primary);
  padding-left: 0.5rem;
}

.seating-table-wrapper {
  max-height: 420px;
  overflow-y: auto;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.seating-setup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.seating-setup-table th {
  padding: 0.65rem 0.75rem;
  background: rgba(18, 21, 31, 0.95);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1.5px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 5;
}

.seating-setup-table td {
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.seating-setup-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Custom In-Cell Input Styling */
.seating-setup-input {
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-main);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  font-size: 0.88rem;
  outline: none;
  transition: all var(--transition-fast);
}

.seating-setup-input:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.seating-setup-input:focus {
  background: rgba(30, 34, 51, 0.9);
  border-color: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}

/* Display Number badge for seats in table */
.seating-seat-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  width: 28px;
  height: 24px;
  line-height: 22px;
  text-align: center;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Legenda Arrangementen */
.seating-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  background: rgba(21, 24, 36, 0.45);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: fit-content;
  max-width: 100%;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.legend-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}

.legend-color-dot.color-default {
  background-color: #0284c7;
  color: rgba(14, 165, 233, 0.4);
}

.legend-color-dot.color-wijn {
  background-color: #be123c;
  color: rgba(190, 18, 60, 0.4);
}

.legend-color-dot.color-bier {
  background-color: #eab308;
  color: rgba(234, 179, 8, 0.4);
}

.legend-color-dot.color-fris {
  background-color: #10b981;
  color: rgba(16, 185, 129, 0.4);
}

.legend-color-dot.color-bob {
  background-color: #f97316;
  color: rgba(249, 115, 22, 0.4);
}

/* Seat Buttons Arrangement Styles */
.seat-btn.arr-wijn {
  background: #6b1d2f !important;
  border-color: #be123c !important;
  box-shadow: 0 0 14px rgba(190, 18, 60, 0.45), 0 4px 6px rgba(0,0,0,0.2) !important;
}
.seat-btn.arr-wijn:hover {
  background: #501320 !important;
}

.seat-btn.arr-bier {
  background: #854d0e !important;
  border-color: #eab308 !important;
  box-shadow: 0 0 14px rgba(234, 179, 8, 0.45), 0 4px 6px rgba(0,0,0,0.2) !important;
}
.seat-btn.arr-bier:hover {
  background: #713f12 !important;
}

.seat-btn.arr-fris {
  background: #065f46 !important;
  border-color: #34d399 !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.45), 0 4px 6px rgba(0,0,0,0.2) !important;
}
.seat-btn.arr-fris:hover {
  background: #044e39 !important;
}

.seat-btn.arr-bob {
  background: #9a3412 !important;
  border-color: #f97316 !important;
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.45), 0 4px 6px rgba(0,0,0,0.2) !important;
}
.seat-btn.arr-bob:hover {
  background: #7c2d12 !important;
}

/* Composite Menu Card (per glas / fles) Styles */
.menu-item-card-composite {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1f2436;
  border: 1.5px solid var(--border-color);
  padding: 0.75rem 1.15rem;
  border-radius: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  margin-bottom: 0.15rem;
  transition: all var(--transition-fast);
}

.menu-item-card-composite:hover {
  background: #232a3f;
  border-color: rgba(255,255,255,0.2);
}

.menu-item-options {
  display: flex;
  gap: 0.5rem;
}

.option-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  outline: none;
}

.option-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.option-btn:active {
  transform: translateY(0) scale(0.95);
}


/* --- Verhuismodus (Move Guest) Styling --- */

/* Verhuisknop Actieve status */
#move-mode-btn.active {
  background: #f59e0b !important;
  border-color: #d97706 !important;
  color: #fff !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.45);
  animation: moveBtnPulse 1.5s infinite alternate;
}

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

/* Verhuismodus Banner */
.move-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.08) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.3);
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  animation: slideDownFade 0.3s ease-out;
}

.move-banner-content {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fef08a; /* Soft warning yellow */
  font-size: 0.92rem;
  font-weight: 500;
}

.move-banner-icon {
  font-size: 1.1rem;
}

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

/* Stoelknoppen in Verhuismodus */
.tables-layout.move-mode-active .seat-btn:not(.state-free) {
  border: 2px dashed rgba(255, 255, 255, 0.5) !important;
  cursor: grab;
}

.tables-layout.move-mode-active .seat-btn:not(.state-free):active {
  cursor: grabbing;
}

/* Dragging state */
.seat-btn.dragging {
  opacity: 0.4 !important;
  border: 2px dotted #fff !important;
}

/* Drag Over state */
.seat-btn.drag-over {
  transform: scale(1.08) !important;
  border-color: #fbbf24 !important;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.8) !important;
  z-index: 10;
}

/* Geselecteerde Bronstoel bij klik-verhuizen */
.seat-btn.move-source {
  border: 3px solid #fbbf24 !important;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.9) !important;
  animation: sourceSeatPulse 1.2s infinite alternate;
}

@keyframes sourceSeatPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
  }
  100% {
    transform: scale(1.04);
    box-shadow: 0 0 22px rgba(251, 191, 36, 1);
  }
}

/* Drag and Drop Insert Targets between seats */
.seat-insert-target {
  width: 24px; /* Hitbox width */
  height: 80px; /* matches desktop seat size */
  margin: 0 -12px;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  display: none; /* hidden by default */
}

/* When move mode is active, show the targets as layout slots */
.move-mode-active .seat-insert-target {
  display: block;
}

/* Gecentreerde visual lijn voor de kier */
.move-mode-active .seat-insert-target::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  border-left: 2px dashed rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
}

@media (max-width: 600px) {
  .seat-insert-target {
    width: 32px; /* Breder klik-gebied op mobiel tegen fat-fingers */
    margin: 0 -16px;
    height: 68px; /* matches mobile seat size */
  }
}

.seat-insert-target:hover,
.seat-insert-target.drag-over {
  background: rgba(16, 185, 129, 0.12); /* Subtiele groene highlight over de hele hitbox */
  z-index: 20;
}

.seat-insert-target:hover::before,
.seat-insert-target.drag-over::before {
  border-left: 3px dashed #10b981;
}

/* Visual arrow pointing down in target */
.seat-insert-target::after {
  content: "↓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.85rem;
  color: #10b981;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.seat-insert-target:hover::after,
.seat-insert-target.drag-over::after {
  opacity: 1;
}

/* ==========================================================
   MOBIELE WEERGAVE & BEDIENING OVERRIDES (Responsive Rules)
   ========================================================== */

/* Swipe indicator & scrollbar visibility op touch devices */
@media (max-width: 768px) {
  .swipe-indicator {
    display: inline-flex;
    align-items: center;
    gap: 2px;
  }

  /* Grotere touch hitbox voor sluitknoppen in banners/drawers */
  .close-btn {
    padding: 0.75rem !important;
    font-size: 1.75rem !important;
  }

  /* Voorkom hinderlijke auto-zoom van iOS Safari bij focus op invoervelden */
  input[type="text"],
  input[type="search"],
  input[type="number"],
  select,
  textarea,
  .drawer-header-input,
  .link-seats-search-input,
  .seating-setup-input {
    font-size: 16px !important;
  }
}

/* Stacking van actieknoppen balk op smalle schermen */
@media (max-width: 600px) {
  .search-actions-row,
  .table-actions-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem !important;
  }

  .search-actions-row .search-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .search-actions-row .btn,
  .table-actions-bottom .btn {
    width: 100% !important;
    justify-content: center;
  }

  /* Compact drawer styling for space efficiency */
  .drawer-header {
    padding: 0.85rem 1rem !important;
  }

  .drawer-title-area h2 {
    font-size: 1.3rem !important;
    margin-bottom: 0.35rem !important;
  }

  .guest-name-input-wrapper {
    flex-wrap: nowrap !important;
    margin-top: 0.35rem !important;
  }

  .drawer-header-input {
    padding: 0.45rem 0.65rem !important;
    font-size: 0.9rem !important;
    min-height: 38px !important;
  }

  .drawer-header-input.input-name {
    min-width: 110px !important;
  }

  .drawer-header-input.input-allergies {
    min-width: 110px !important;
  }

  .drawer-tab-btn {
    padding: 0.75rem !important;
    font-size: 0.9rem !important;
  }

  .drawer-tab-content {
    padding: 0.85rem !important;
  }

  .menu-category-section {
    margin-bottom: 1.25rem !important;
  }

  .menu-category-title {
    margin-bottom: 0.45rem !important;
    font-size: 0.85rem !important;
  }

  .menu-item-card-composite {
    padding: 0.55rem 0.85rem !important;
    margin-bottom: 0.1rem !important;
  }

  .menu-item-name {
    font-size: 0.95rem !important;
  }

  .option-btn {
    padding: 0.45rem 0.65rem !important;
    font-size: 0.8rem !important;
    border-radius: 8px !important;
  }

  .drawer-footer {
    padding: 0.85rem 1rem !important;
    padding-bottom: calc(0.85rem + env(safe-area-inset-bottom)) !important;
  }

  .drawer-footer .btn {
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem !important;
    border-radius: 10px !important;
  }
}

/* Wijn Glas/Fles layout splitsing op hele smalle mobiele telefoons */
@media (max-width: 350px) {
  .menu-item-card-composite {
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.65rem;
    padding: 0.85rem 1rem !important;
  }

  .menu-item-options {
    justify-content: flex-end;
    width: 100%;
  }

  .option-btn {
    flex: 1;
    text-align: center;
    padding: 0.6rem 0.5rem !important;
  }
}



