:root {
  --bg-primary: #0b0f19;
  --bg-card: #151d2f;
  --bg-card-hover: #1c263d;
  --bg-surface: #1e293b;
  --border-color: #2e3b55;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-light: #fef3c7;
  --accent-glow: rgba(245, 158, 11, 0.25);
  --success: #10b981;
  --danger: #ef4444;
  --info: #3b82f6;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(245, 158, 11, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Header */
header.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand img.logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.brand-info h1 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.table-badge {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.nav-link-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent);
}

.lang-btn {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.4);
  font-weight: 700;
}

.lang-btn:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: var(--accent);
  transform: scale(1.05);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  width: 100%;
  flex: 1;
}

/* Category Filter Bar */
.category-nav-wrapper {
  position: sticky;
  top: 61px;
  z-index: 40;
  background: var(--bg-primary);
  padding: 0.75rem 0;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(46, 59, 85, 0.5);
}

.category-nav {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}

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

.cat-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-btn:hover {
  background: var(--bg-surface);
  color: var(--text-main);
}

.cat-btn.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0b0f19;
  border-color: #fbbf24;
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* Search Bar */
.search-wrapper {
  margin-bottom: 1.25rem;
}

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

.search-input-box input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-input-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

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

/* Menu Items Grid */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 6rem; /* Space for floating cart */
}

.item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
}

.item-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.item-card.out-of-stock {
  opacity: 0.6;
  filter: grayscale(0.8);
}

.item-image-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  background: var(--bg-surface);
  overflow: hidden;
}

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

.item-card:hover .item-image {
  transform: scale(1.05);
}

.item-category-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(11, 15, 25, 0.8);
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.out-of-stock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--danger);
  color: white;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: bold;
}

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

.item-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.item-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.item-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}

.item-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 1rem;
  flex: 1;
}

.item-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Quantity controls in card */
.cart-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.btn-add-main {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--accent);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-add-main:hover {
  background: var(--accent);
  color: #0b0f19;
  border-color: var(--accent);
}

.qty-control-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.4rem;
}

.qty-btn {
  background: var(--accent);
  color: #0b0f19;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s;
}

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

.qty-number {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-main);
  min-width: 30px;
  text-align: center;
}

/* Floating Cart Bar */
.floating-cart-bar {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2.5rem);
  max-width: 500px;
  z-index: 90;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.6rem 1rem 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  cursor: pointer;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { transform: translate(-50%, 50px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.floating-cart-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.cart-icon-bubble {
  background: var(--accent);
  color: #0b0f19;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
}

.cart-summary-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.cart-summary-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.floating-cart-btn {
  background: var(--accent);
  color: #0b0f19;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Modal / Slide-over Drawers */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: flex-end; /* Mobile bottom sheet */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 640px) {
  .modal-overlay {
    align-items: center;
  }
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 550px;
  max-height: 90vh;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateY(50px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 640px) {
  .modal-content {
    border-radius: var(--radius-lg);
    transform: scale(0.95);
  }
}

.modal-overlay.open .modal-content {
  transform: translateY(0);
}

@media (min-width: 640px) {
  .modal-overlay.open .modal-content {
    transform: scale(1);
  }
}

.modal-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  line-height: 1;
}

.btn-close-modal:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--border-color);
  background: rgba(11, 15, 25, 0.5);
}

/* Cart Item List inside modal */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  gap: 0.75rem;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.cart-item-info p {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
}

.cart-item-row .qty-control-box {
  width: auto;
  gap: 0.4rem;
}

.cart-item-row .qty-btn {
  width: 28px;
  height: 28px;
  font-size: 1rem;
}

/* Form Groups */
.form-group {
  margin-bottom: 1rem;
}

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

.form-control {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
}

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

select.form-control {
  appearance: auto;
}

/* Big Action Buttons */
.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0b0f19;
  border: none;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px var(--accent-glow);
  transition: all 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

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

/* Kitchen & Bar Orders View Styles */
.dashboard-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.stats-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.stat-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.stat-pill.active-pill {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
}

.filter-tab-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.filter-tab-btn.active {
  background: var(--accent);
  color: #0b0f19;
  border-color: var(--accent);
}

.sound-toggle-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.sound-toggle-btn.sound-on {
  border-color: var(--success);
  color: var(--success);
}

/* Orders Grid */
.orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.order-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
}

.order-card.status-pending {
  border-color: #f59e0b;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
  animation: pulseOrder 2s infinite;
}

@keyframes pulseOrder {
  0% { box-shadow: 0 0 8px rgba(245, 158, 11, 0.3); }
  50% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.6); }
  100% { box-shadow: 0 0 8px rgba(245, 158, 11, 0.3); }
}

.order-card.status-preparing {
  border-color: #3b82f6;
}

.order-card.status-ready {
  border-color: #10b981;
}

.order-card.status-delivered {
  border-color: #475569;
  opacity: 0.8;
}

.order-card-header {
  padding: 0.9rem 1.1rem;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.order-table-tag {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.order-code-badge {
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  color: var(--text-muted);
}

.order-card-meta {
  padding: 0.6rem 1.1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(46, 59, 85, 0.4);
  background: rgba(0,0,0,0.2);
}

.order-card-body {
  padding: 1.1rem;
  flex: 1;
}

.order-items-table {
  width: 100%;
  border-collapse: collapse;
}

.order-items-table tr {
  border-bottom: 1px solid rgba(46, 59, 85, 0.3);
}

.order-items-table td {
  padding: 0.5rem 0;
  font-size: 0.95rem;
}

.item-qty-col {
  width: 45px;
  font-weight: 800;
  color: var(--accent);
  font-size: 1.05rem;
}

.item-name-col {
  font-weight: 600;
  color: var(--text-main);
}

.item-item-note {
  font-size: 0.8rem;
  color: #fbbf24;
  font-style: italic;
  display: block;
}

.order-special-notes {
  margin-top: 0.8rem;
  padding: 0.6rem;
  background: rgba(245, 158, 11, 0.12);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  font-size: 0.85rem;
  color: #fde68a;
}

.order-card-footer {
  padding: 0.9rem 1.1rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.order-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.05rem;
}

.order-action-buttons {
  display: flex;
  gap: 0.5rem;
}

.order-btn-next {
  flex: 2;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-start-prep {
  background: #3b82f6;
  color: white;
}
.btn-start-prep:hover { background: #2563eb; }

.btn-mark-ready {
  background: #10b981;
  color: white;
}
.btn-mark-ready:hover { background: #059669; }

.btn-mark-delivered {
  background: #64748b;
  color: white;
}
.btn-mark-delivered:hover { background: #475569; }

.order-btn-cancel {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.order-btn-cancel:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* Admin Styles */
.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  overflow-x: auto;
}

.admin-tab {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.admin-tab.active {
  background: var(--accent);
  color: #0b0f19;
  border-color: var(--accent);
}

.admin-section {
  display: none;
}

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

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.admin-table th, .admin-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  background: var(--bg-surface);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.table-thumbnail {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.badge-status {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-available {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.badge-unavailable {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.switch-toggle {
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 600;
}

.switch-toggle:hover {
  border-color: var(--accent);
}

/* QR Code Table Card Preview */
.qr-preview-card {
  background: white;
  color: #1e293b;
  padding: 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  max-width: 320px;
  margin: 1.5rem auto;
  box-shadow: var(--shadow-lg);
}

.qr-preview-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.qr-preview-card p.subtitle {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.qr-code-box {
  background: white;
  padding: 1rem;
  display: inline-block;
  border-radius: 12px;
  border: 2px dashed #cbd5e1;
  margin-bottom: 1.25rem;
}

.qr-preview-card .table-highlight {
  font-size: 1.2rem;
  font-weight: 800;
  color: #d97706;
  margin-bottom: 0.25rem;
}

.qr-preview-card .instructions {
  font-size: 0.8rem;
  color: #64748b;
}

/* Image preview upload */
.image-upload-preview {
  width: 100%;
  height: 140px;
  background: var(--bg-surface);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0.5rem;
  cursor: pointer;
}

.image-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-upload-placeholder {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

/* Live Order Tracker Modal */
.order-tracker-card {
  text-align: center;
  padding: 1.5rem 1rem;
}

.tracker-icon-pulse {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.tracker-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 2rem 0;
}

.tracker-timeline::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 20px;
  right: 20px;
  height: 3px;
  background: var(--border-color);
  z-index: 1;
}

.timeline-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.step-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

.timeline-step.completed .step-dot {
  background: var(--accent);
  border-color: #fbbf24;
  color: #0b0f19;
}

.timeline-step.current .step-dot {
  background: #3b82f6;
  border-color: #60a5fa;
  color: white;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
}

.step-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.timeline-step.completed .step-label,
.timeline-step.current .step-label {
  color: var(--text-main);
}
