/* ===== Luxury Premium Dark Theme ===== */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --primary-soft: rgba(99, 102, 241, 0.15);
  --secondary: #8b5cf6;
  --accent: #a78bfa;
  --gold: #fbbf24;
  --gold-soft: rgba(251, 191, 36, 0.15);
  --success: #10b981;
  --success-light: #34d399;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --dark-medium: #334155;
  --light: #f8fafc;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --border: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.2);
  --radius: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --sidebar-width: 280px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #0f172a 100%);
  --gradient-card: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
}

/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gradient-dark);
  color: var(--light);
  display: flex;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== Luxury Background ===== */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(139, 92, 246, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 40% 80%, rgba(251, 191, 36, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary-light), var(--accent));
}

/* ===== Sidebar ===== */
.sidebar {
  width: var(--sidebar-width);
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(20px);
  color: white;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 4px 0 40px rgba(0, 0, 0, 0.5);
}

.sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.03) 0%, transparent 30%);
  pointer-events: none;
}

.sidebar .logo {
  padding: 32px 28px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.sidebar .logo h1 {
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.3px;
}

.sidebar .logo::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.nav-menu {
  list-style: none;
  padding: 20px 16px;
  position: relative;
}

.nav-item {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
  border-radius: var(--radius);
  margin-bottom: 4px;
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-primary);
  transform: scaleY(0);
  transition: var(--transition);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 12px var(--primary-soft);
}

.nav-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.04));
  opacity: 0;
  transition: var(--transition);
  border-radius: var(--radius);
}

.nav-item:hover {
  color: rgba(255, 255, 255, 0.9);
  transform: translateX(6px);
}

.nav-item:hover::before {
  transform: scaleY(0.5);
}

.nav-item:hover::after {
  opacity: 1;
}

.nav-item.active {
  color: white;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.08));
  box-shadow: 
    0 4px 20px rgba(99, 102, 241, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-item.active::before {
  transform: scaleY(1);
}

.nav-item.active::after {
  opacity: 1;
}

.nav-item .icon {
  font-size: 1.4rem;
  width: 28px;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.nav-item:hover .icon {
  transform: scale(1.1);
}

.nav-item .text {
  font-size: 0.95rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
  letter-spacing: 0.3px;
}

/* ===== Main Content ===== */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.header {
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  padding: 20px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), rgba(251, 191, 36, 0.2), transparent);
}

.header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.3px;
}

.header-info {
  display: flex;
  gap: 24px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.88rem;
  font-weight: 500;
}

/* ===== Pages ===== */
.page {
  display: none;
  padding: 32px 36px;
  animation: pageIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pageIn {
  from { 
    opacity: 0; 
    transform: translateY(20px);
  }
  to { 
    opacity: 1; 
    transform: translateY(0);
  }
}

.page.active {
  display: block;
}

/* ===== Stats Grid ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 36px;
}

.stat-card {
  background: var(--gradient-card);
  backdrop-filter: blur(16px);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: 
    var(--shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.stat-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 
    var(--shadow-lg),
    var(--shadow-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
}

.stat-card:hover::after {
  opacity: 1;
}

.stat-card.warning {
  border-left: 3px solid var(--gold);
  box-shadow: 
    var(--shadow-md),
    0 0 30px rgba(251, 191, 36, 0.1);
}

.stat-icon {
  font-size: 2.4rem;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 4px 16px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.stat-card:hover .stat-icon {
  transform: scale(1.05) rotate(3deg);
}

.stat-info {
  position: relative;
  z-index: 1;
}

.stat-info h3 {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.stat-info p {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

/* ===== Dashboard Grid ===== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 28px;
}

.dashboard-section {
  background: var(--gradient-card);
  backdrop-filter: blur(16px);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-section h3 {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.3px;
}

/* ===== Data Table ===== */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table th,
.data-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.data-table th {
  background: rgba(255, 255, 255, 0.03);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.data-table th:first-child { border-radius: var(--radius) 0 0 0; }
.data-table th:last-child { border-radius: 0 var(--radius) 0 0; }

.data-table tr { transition: var(--transition-fast); }

.data-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.05);
}

.data-table td {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.data-table tr:last-child td { border-bottom: none; }

/* ===== Buttons ===== */
.btn {
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent 50%);
  opacity: 0;
  transition: var(--transition);
}

.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 
    0 4px 20px rgba(99, 102, 241, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 8px 30px rgba(99, 102, 241, 0.5),
    0 0 40px rgba(99, 102, 241, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: white;
}

.btn-success {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.5);
}

.btn-warning {
  background: var(--gradient-gold);
  color: #1a1a24;
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4);
}

.btn-warning:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(251, 191, 36, 0.5);
}

.btn-info {
  background: linear-gradient(135deg, var(--info) 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.82rem;
  border-radius: 12px;
}

/* ===== Zone Filter ===== */
.zone-filter {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.zone-btn {
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition);
  color: rgba(255, 255, 255, 0.5);
}

.zone-btn:hover {
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--primary-light);
  background: rgba(99, 102, 241, 0.08);
}

.zone-btn.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

/* ===== Tables Grid ===== */
.tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 20px;
}

.table-card {
  background: var(--gradient-card);
  backdrop-filter: blur(12px);
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.table-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.table-card.available::before {
  background: linear-gradient(90deg, var(--success), var(--success-light));
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.table-card.occupied::before {
  background: linear-gradient(90deg, var(--danger), #f87171);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.table-card.reserved::before {
  background: var(--gradient-gold);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}

.table-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.table-card .table-number {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: white;
}

.table-card .table-capacity {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.82rem;
  font-weight: 500;
}

.table-card .table-status {
  margin-top: 12px;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-card.available .table-status {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success-light);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.table-card.occupied .table-status {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.table-card.reserved .table-status {
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.table-card.merged::before {
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.table-card.merged .table-status {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.table-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
  transform: translateY(-4px);
}

.table-card.selected::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  color: white;
}

/* ===== Order Form ===== */
.order-form {
  background: var(--gradient-card);
  backdrop-filter: blur(16px);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.menu-categories {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.category-btn {
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 28px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  color: rgba(255, 255, 255, 0.5);
}

.category-btn:hover {
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--primary-light);
}

.category-btn.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.menu-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 8px;
}

.menu-item-card {
  background: rgba(255, 255, 255, 0.04);
  padding: 20px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.menu-item-card:hover {
  border-color: rgba(99, 102, 241, 0.2);
  background: rgba(99, 102, 241, 0.08);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.menu-item-card .item-name {
  font-weight: 700;
  margin-bottom: 6px;
  color: white;
}

.menu-item-card .item-price {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
}

.order-summary {
  background: rgba(0, 0, 0, 0.3);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.order-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
}

.qty-btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.qty-btn:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-light);
  transform: scale(1.1);
}

.order-total {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid rgba(251, 191, 36, 0.3);
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
}

/* ===== Kitchen Display ===== */
.kitchen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.kitchen-card {
  background: var(--gradient-card);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.kitchen-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.kitchen-card.pending { border-top: 4px solid var(--gold); box-shadow: var(--shadow-md), 0 0 20px rgba(251, 191, 36, 0.15); }
.kitchen-card.preparing { border-top: 4px solid var(--info); box-shadow: var(--shadow-md), 0 0 20px rgba(59, 130, 246, 0.15); }
.kitchen-card.ready { border-top: 4px solid var(--success); box-shadow: var(--shadow-md), 0 0 20px rgba(16, 185, 129, 0.15); }

.kitchen-card-header {
  padding: 20px 24px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kitchen-card-header h4 { font-size: 1.05rem; font-weight: 700; color: white; }
.kitchen-card-body { padding: 20px 24px; }

.kitchen-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
}

.kitchen-item:last-child { border-bottom: none; }

.kitchen-card-footer {
  padding: 16px 24px;
  display: flex;
  gap: 12px;
  background: rgba(0, 0, 0, 0.15);
}

.kitchen-card-footer .btn { flex: 1; }

/* ===== Payments ===== */
.payments-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.payment-order-card {
  background: var(--gradient-card);
  backdrop-filter: blur(12px);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition);
  color: white;
}

.payment-order-card:hover {
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(99, 102, 241, 0.15);
  transform: translateY(-4px);
}

.payment-form {
  background: var(--gradient-card);
  backdrop-filter: blur(16px);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: white;
}

.payment-methods {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.payment-methods .btn { flex: 1; padding: 18px; font-size: 0.95rem; }

/* ===== Reservations ===== */
.reservations-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 28px;
}

.reservation-form {
  background: var(--gradient-card);
  backdrop-filter: blur(16px);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  height: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: white;
}

/* ===== Forms ===== */
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: var(--transition);
  background: rgba(0, 0, 0, 0.3);
  color: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255, 255, 255, 0.25); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), 0 0 20px rgba(99, 102, 241, 0.1);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ===== Inventory ===== */
.inventory-alerts { margin-bottom: 28px; }

.alert-item {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(251, 191, 36, 0.05));
  border: 1px solid rgba(251, 191, 36, 0.25);
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
  color: var(--gold);
}

/* ===== Reports ===== */
.report-filters {
  background: var(--gradient-card);
  backdrop-filter: blur(16px);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 28px;
}

.report-section {
  background: var(--gradient-card);
  backdrop-filter: blur(16px);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===== Modal ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal.active { display: flex; }

.modal-content {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(10, 10, 15, 0.98));
  backdrop-filter: blur(24px);
  padding: 36px;
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 540px;
  position: relative;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: white;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 1.5rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.4);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.close-modal:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

/* ===== Badges ===== */
.badge {
  padding: 8px 14px;
  border-radius: 24px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-pending { background: var(--gold-soft); color: var(--gold); border: 1px solid rgba(251, 191, 36, 0.3); }
.badge-preparing { background: rgba(59, 130, 246, 0.15); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-serving { background: rgba(139, 92, 246, 0.15); color: #c4b5fd; border: 1px solid rgba(139, 92, 246, 0.3); }
.badge-completed, .badge-paid { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-available { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-unavailable { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }

/* ===== Page Header ===== */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.page-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
}

.header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.table-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-dot.available { background: var(--success); box-shadow: 0 0 8px rgba(16, 185, 129, 0.5); }
.legend-dot.occupied { background: var(--danger); box-shadow: 0 0 8px rgba(239, 68, 68, 0.5); }
.legend-dot.reserved { background: var(--gold); box-shadow: 0 0 8px rgba(251, 191, 36, 0.5); }
.legend-dot.merged { background: var(--secondary); box-shadow: 0 0 8px rgba(139, 92, 246, 0.5); }

/* ===== Section Title ===== */
.section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===== Highlight ===== */
.highlight {
  color: var(--gold);
  font-weight: 700;
}

/* ===== Button Block ===== */
.btn-block {
  width: 100%;
  margin-top: 16px;
}

/* ===== Order Form Header ===== */
.order-form-header {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.order-form-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: white;
}

/* ===== Summary Title ===== */
.summary-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}

/* ===== Order Total ===== */
.order-total {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px solid rgba(251, 191, 36, 0.3);
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-total span {
  color: rgba(255, 255, 255, 0.6);
}

.order-total strong {
  color: var(--gold);
  font-size: 1.3rem;
}

/* ===== Table Container ===== */
.table-container {
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.table-container .data-table {
  margin: 0;
}

/* ===== Kitchen Status Bar ===== */
.kitchen-status-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.status-item {
  flex: 1;
  background: var(--gradient-card);
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: 3px solid transparent;
  transition: var(--transition);
}

.status-item:hover {
  transform: translateY(-3px);
}

.status-item.pending { border-top-color: var(--gold); }
.status-item.preparing { border-top-color: var(--info); }
.status-item.ready { border-top-color: var(--success); }

.status-count {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  line-height: 1;
  margin-bottom: 6px;
}

.status-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== Payment Form ===== */
.payment-form-header {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.payment-form-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
}

.payment-items-title,
.payment-methods-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  margin-top: 16px;
}

.payment-total {
  margin-top: 16px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
  border-radius: var(--radius);
  border: 1px solid rgba(99, 102, 241, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.payment-total span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.payment-total strong {
  color: var(--gold);
  font-size: 1.5rem;
}

/* ===== Form Actions ===== */
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

/* ===== Filter Row ===== */
.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}

.form-group-btn {
  display: flex;
  align-items: flex-end;
}

/* ===== Staff Form Container ===== */
.staff-form-container {
  background: var(--gradient-card);
  padding: 28px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===== Filter Bar ===== */
.filter-bar { margin-bottom: 20px; }

.filter-bar select {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  transition: var(--transition);
  cursor: pointer;
}

.filter-bar select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* ===== Table Select Grid ===== */
.table-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.table-select-card {
  background: var(--gradient-card);
  backdrop-filter: blur(12px);
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition);
  color: white;
}

.table-select-card:hover {
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: var(--shadow-md), 0 0 20px rgba(99, 102, 241, 0.15);
  transform: translateY(-4px);
}

.table-select-card.occupied { opacity: 0.35; cursor: not-allowed; }

/* ===== Merge Modal ===== */
.merge-tables-select {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  max-height: 300px;
  overflow-y: auto;
  padding: 4px;
}

.merge-table-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.merge-table-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.08);
}

.merge-table-card.selected {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.15);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.2);
}

.merge-table-card.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.merge-table-card .table-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.merge-table-card .table-cap {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.merge-summary {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 16px;
}

.merge-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.9rem;
}

.merge-info span:first-child {
  color: rgba(255, 255, 255, 0.6);
}

.merge-info span:last-child {
  color: white;
  font-weight: 600;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .sidebar { width: 72px; }
  .sidebar .logo h1, .nav-item .text { display: none; }
  .sidebar .logo { padding: 24px 12px; }
  .nav-item { justify-content: center; padding: 16px; }
  .main-content { margin-left: 72px; }
  .header { padding: 18px 24px; }
  .page { padding: 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .dashboard-grid, .reports-grid { grid-template-columns: 1fr; }
  .payments-layout, .reservations-layout { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .kitchen-status-bar { flex-direction: column; }
  .filter-row { grid-template-columns: 1fr; }
}