/* Import Google Fonts - Inter and Noto Sans Lao */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+Lao:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --primary: #ff5e62;
  --primary-gradient: linear-gradient(135deg, #ff9966 0%, #ff5e62 100%);
  --secondary: #ff9966;
  --success: #2ec4b6;
  --warning: #ffb703;
  --danger: #e63946;
  --info: #00b4d8;
  
  /* Light Theme Defaults (Adaptive styles below) */
  --bg-app: #f8f9fa;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: #ffffff;
  --border-color: rgba(0, 0, 0, 0.06);
  --text-main: #2b2d42;
  --text-muted: #6c757d;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --glass-blur: blur(12px);
  --glass-border: rgba(255, 255, 255, 0.4);
  
  /* Fonts */
  --font-family: 'Inter', 'Noto Sans Lao', sans-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);
}

/* Dark Mode Preference (optional toggle, but system default theme is light/clean) */
[data-theme="dark"] {
  --bg-app: #0f1016;
  --bg-card: rgba(30, 32, 45, 0.75);
  --bg-card-hover: rgba(35, 38, 55, 0.9);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-main: #f8f9fa;
  --text-muted: #a0aec0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
  --glass-border: rgba(255, 255, 255, 0.05);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 600px; /* Constrained width for customer-app simulating mobile screen on desktop */
  margin: 0 auto;
  padding: 0 16px 100px 16px; /* Space for bottom floating bar */
  position: relative;
}

.admin-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

/* Header & Banner Styles */
header {
  padding: 20px 0 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  font-size: 2.2rem;
  animation: float 4s ease-in-out infinite;
}

.brand-text h1 {
  font-size: 1.35rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.table-badge {
  background: var(--primary-gradient);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 4px 10px rgba(255, 94, 98, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
  animation: pulse-border 2s infinite;
}

/* Hero Section */
.hero {
  margin-top: 10px;
  margin-bottom: 24px;
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(255, 153, 102, 0.15) 0%, rgba(255, 94, 98, 0.15) 100%);
  border: 1px solid rgba(255, 94, 98, 0.1);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 94, 98, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.hero h2 {
  font-size: 1.4rem;
  margin-bottom: 6px;
  color: #d84315;
}

.hero p {
  font-size: 0.85rem;
  color: #e65100;
  opacity: 0.9;
}

/* Search Bar */
.search-container {
  position: relative;
  margin-bottom: 24px;
}

.search-input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  border-radius: 16px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: all var(--transition-fast);
  backdrop-filter: var(--glass-blur);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 94, 98, 0.15);
  background: var(--bg-card-hover);
}

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

/* Categories Scroller */
.categories-wrapper {
  margin: 0 -16px 24px -16px;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}

.categories-wrapper::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.categories {
  display: flex;
  gap: 12px;
  padding-bottom: 4px;
}

.category-btn {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  backdrop-filter: var(--glass-blur);
}

.category-btn:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.category-btn.active {
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(255, 94, 98, 0.3);
}

/* Product Section */
.section-title {
  font-size: 1.2rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Smoothie Product Card */
.product-card {
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: var(--glass-blur);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--card-gradient, var(--primary-gradient));
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  background: var(--bg-card-hover);
}

.product-card-popular {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--warning);
  color: #503e00;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  text-transform: uppercase;
}

.product-image-container {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.02);
  font-size: 4rem;
  position: relative;
  transition: transform var(--transition-normal);
}

.product-card:hover .product-image-container {
  transform: scale(1.08) rotate(4deg);
}

.product-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-main);
}

.product-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

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

.product-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}

.product-price span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 2px;
}

.add-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--primary-gradient);
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(255, 94, 98, 0.2);
  transition: all var(--transition-fast);
}

.product-card:hover .add-btn {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(255, 94, 98, 0.35);
}

/* Modal Customize Sheet */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  display: flex;
  justify-content: center;
  align-items: flex-end; /* Mobile drawer style default */
}

@media (min-width: 480px) {
  .modal-overlay {
    align-items: center; /* Desktop centered style */
  }
}

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

.modal-sheet {
  width: 100%;
  max-width: 500px;
  background: var(--bg-app);
  border-radius: 28px 28px 0 0;
  padding: 24px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(100%);
  transition: transform var(--transition-normal);
  position: relative;
}

@media (min-width: 480px) {
  .modal-sheet {
    border-radius: 24px;
    transform: translateY(50px);
  }
}

.modal-overlay.active .modal-sheet {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title h3 {
  font-size: 1.25rem;
}

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

.close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
}

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

.modal-body {
  margin-bottom: 24px;
}

.customize-group {
  margin-bottom: 24px;
}

.customize-group-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.required-badge {
  font-size: 0.7rem;
  background: rgba(255, 94, 98, 0.1);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}

/* Size Options & Sweetness Options */
.options-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.option-pill {
  position: relative;
}

.option-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pill-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border: 2px solid var(--border-color);
  border-radius: 14px;
  background: var(--bg-card);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  transition: all var(--transition-fast);
}

.option-pill input[type="radio"]:checked + .pill-label {
  border-color: var(--primary);
  background: rgba(255, 94, 98, 0.05);
  color: var(--primary);
}

.pill-label span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 4px;
}

.option-pill input[type="radio"]:checked + .pill-label span {
  color: var(--primary);
}

/* Sweetness levels - horizontal scroll or grid */
.sweetness-options {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.sweetness-options::-webkit-scrollbar {
  display: none;
}

.sweetness-pill {
  flex-shrink: 0;
}

.sweetness-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.sweetness-label {
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-card);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  display: block;
  transition: all var(--transition-fast);
}

.sweetness-pill input[type="radio"]:checked + .sweetness-label {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 10px rgba(255, 94, 98, 0.2);
}

/* Toppings list */
.topping-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.topping-item:hover {
  background-color: var(--bg-card-hover);
}

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

.topping-checkbox-wrapper {
  position: relative;
  width: 20px;
  height: 20px;
}

.topping-checkbox-wrapper input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.custom-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  display: block;
  transition: all var(--transition-fast);
  position: relative;
}

.topping-checkbox-wrapper input[type="checkbox"]:checked + .custom-checkbox {
  border-color: var(--primary);
  background-color: var(--primary);
}

.topping-checkbox-wrapper input[type="checkbox"]:checked + .custom-checkbox::after {
  content: '✓';
  color: white;
  font-size: 0.75rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
}

.topping-name {
  font-size: 0.9rem;
  font-weight: 500;
}

.topping-price {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

/* Quantity Selector */
.quantity-control-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

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

.qty-number {
  font-size: 1.1rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

/* Modal Footer */
.modal-footer {
  margin-top: 24px;
}

.action-btn {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  border: none;
  background: var(--primary-gradient);
  color: white;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 94, 98, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-normal);
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 94, 98, 0.4);
}

/* Floating Bottom Bar (Cart Summary Trigger) */
.floating-cart-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  width: calc(100% - 32px);
  max-width: 568px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 12px 16px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 90;
  transition: transform var(--transition-normal) ease-out;
}

[data-theme="dark"] .floating-cart-bar {
  background: rgba(30, 32, 45, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.floating-cart-bar.active {
  transform: translateX(-50%) translateY(0);
}

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

.cart-icon-badge {
  position: relative;
  background: rgba(255, 94, 98, 0.1);
  color: var(--primary);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.badge-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--primary);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.cart-bar-info {
  display: flex;
  flex-direction: column;
}

.cart-bar-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cart-bar-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.view-cart-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 12px;
  background: var(--primary-gradient);
  color: white;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(255, 94, 98, 0.2);
}

/* Cart Drawer Sheet */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  display: flex;
  justify-content: flex-end; /* slide out from right on desktop */
}

@media (max-width: 480px) {
  .cart-drawer-overlay {
    align-items: flex-end; /* slide from bottom on mobile */
  }
}

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

.cart-drawer {
  width: 100%;
  max-width: 450px;
  height: 100%;
  background: var(--bg-app);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
}

@media (max-width: 480px) {
  .cart-drawer {
    height: 85vh;
    border-radius: 28px 28px 0 0;
    transform: translateY(100%);
  }
}

.cart-drawer-overlay.active .cart-drawer {
  transform: translateX(0);
}

@media (max-width: 480px) {
  .cart-drawer-overlay.active .cart-drawer {
    transform: translateY(0);
  }
}

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

.cart-items-list {
  flex-grow: 1;
  overflow-y: auto;
  margin-bottom: 20px;
  padding-right: 4px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-detail {
  flex-grow: 1;
}

.cart-item-name {
  font-size: 0.95rem;
  font-weight: 600;
}

.cart-item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.cart-item-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 4px;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}

.cart-remove-btn {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
}

.cart-summary {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.summary-row.total {
  border-top: 1px dashed var(--border-color);
  padding-top: 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0;
}

.total-price {
  color: var(--primary);
}

/* Empty Cart State */
.empty-cart-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 60%;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* Order Complete Overlay Screen */
.confirmation-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-app);
  z-index: 150;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.confirmation-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(46, 196, 182, 0.1);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: 24px;
  animation: scale-up 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.confirmation-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.confirmation-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 320px;
  margin-bottom: 30px;
  line-height: 1.5;
}

.order-id-badge {
  background: var(--border-color);
  padding: 8px 16px;
  border-radius: 12px;
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 30px;
}

/* --- ADMIN PANEL SPECIFIC STYLES --- */
.admin-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  background: var(--bg-card);
  padding: 16px 24px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  backdrop-filter: var(--glass-blur);
}

.admin-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-title h2 {
  font-size: 1.4rem;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

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

.stat-card {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

.stat-content p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Board columns layout for orders */
.board-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 992px) {
  .board-columns {
    grid-template-columns: repeat(4, 1fr);
  }
}

.board-col {
  background: rgba(0, 0, 0, 0.02);
  border-radius: 20px;
  padding: 16px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] .board-col {
  background: rgba(255, 255, 255, 0.02);
}

.col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
}

.col-title {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.col-count {
  background: var(--border-color);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

/* Column specific headers color */
.col-new .col-header { border-bottom-color: var(--info); }
.col-prep .col-header { border-bottom-color: var(--warning); }
.col-ready .col-header { border-bottom-color: var(--success); }
.col-done .col-header { border-bottom-color: var(--text-muted); }

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
  overflow-y: auto;
  max-height: 600px;
}

/* Admin Order Card */
.order-card {
  background: var(--bg-card);
  border-radius: 14px;
  border: 1px solid var(--border-color);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.order-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--bg-card-hover);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.order-table-label {
  background: var(--border-color);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.order-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.order-items-preview {
  font-size: 0.85rem;
  margin-bottom: 12px;
  color: var(--text-main);
  line-height: 1.4;
  white-space: pre-line;
}

.order-total-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px dashed var(--border-color);
  font-size: 0.85rem;
}

.order-total-price {
  font-weight: 700;
  color: var(--primary);
}

/* Dashboard Side Panel (QR Generator / Simulator) */
.admin-side-pane {
  margin-top: 30px;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--border-color);
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.qr-card {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.qr-card:hover {
  border-color: var(--primary);
  background: rgba(255, 94, 98, 0.02);
}

.qr-card-icon {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.qr-card span {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(255, 94, 98, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(255, 94, 98, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 94, 98, 0); }
}

@keyframes scale-up {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Notification Badge Pulse for New Orders */
.pulse-badge {
  background-color: var(--info);
  border-radius: 50%;
  height: 8px;
  width: 8px;
  display: inline-block;
  animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 180, 216, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 180, 216, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 180, 216, 0); }
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
