/* ===== MEGA ADMIN DASHBOARD - MODERN UI SYSTEM ===== */

/* RESET & BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #e91e63;
  --primary-dark: #ad1457;
  --primary-light: #fce4ec;
  --secondary: #2196f3;
  --success: #4caf50;
  --warning: #ff9800;
  --error: #f44336;
  --text-primary: #212121;
  --text-secondary: #757575;
  --background: linear-gradient(135deg, #e91e63 0%, #ad1457 100%);
  --surface: #ffffff;
  --border: #e0e0e0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --radius: 8px;
  --radius-lg: 12px;
  --spacing: 1rem;
  --spacing-sm: 0.5rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 14px;
  min-height: 100vh;
  transition: all 0.3s ease;
}

/* ===== DARK MODE STYLES ===== */
body.dark-mode {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  color: #e2e8f0;
}

body.dark-mode main {
  background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
}

/* Cards */
body.dark-mode .card,
body.dark-mode .menu-card,
body.dark-mode .order-card,
body.dark-mode .upgrade-card,
body.dark-mode .login-card,
body.dark-mode .modern-order-card {
  background: #4a5568;
  border-color: #718096;
  color: #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .modern-order-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

body.dark-mode .modern-order-card.order-working {
  border-color: #10b981;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
}

body.dark-mode .card-header,
body.dark-mode .card-top,
body.dark-mode .order-card-header,
body.dark-mode .upgrade-card-header,
body.dark-mode .card-footer,
body.dark-mode .order-card-footer {
  background: #2d3748;
  border-color: #718096;
}

body.dark-mode .order-total-section {
  background: rgba(233, 30, 99, 0.1);
  border-color: #718096;
}

body.dark-mode .order-actions-section,
body.dark-mode .order-notes-section,
body.dark-mode .order-comments-section {
  background: #2d3748;
  border-color: #718096;
}

body.dark-mode .comments-label {
  color: #e2e8f0;
}

body.dark-mode .comments-text {
  color: #a0aec0;
}

body.dark-mode .item-title {
  color: #e2e8f0;
}

body.dark-mode .item-details {
  color: #a0aec0;
}

body.dark-mode .total-label {
  color: #a0aec0;
}

body.dark-mode .total-amount {
  color: var(--primary);
}

body.dark-mode .order-number {
  color: #e2e8f0;
}

body.dark-mode .table-info,
body.dark-mode .customer-info {
  color: #a0aec0;
}

/* Inputs and Form Elements */
body.dark-mode .form-control,
body.dark-mode .item-name,
body.dark-mode .item-price,
body.dark-mode .item-desc,
body.dark-mode .size-input,
body.dark-mode .upgrade-select,
body.dark-mode .upgrade-name-input,
body.dark-mode .upgrade-price-input,
body.dark-mode .login-input {
  background: #2d3748;
  border-color: #718096;
  color: #e2e8f0;
}

body.dark-mode .form-control:focus,
body.dark-mode .item-name:focus,
body.dark-mode .item-price:focus,
body.dark-mode .item-desc:focus,
body.dark-mode .size-input:focus,
body.dark-mode .upgrade-select:focus,
body.dark-mode .upgrade-name-input:focus,
body.dark-mode .upgrade-price-input:focus,
body.dark-mode .login-input:focus {
  border-color: var(--primary);
  background: #4a5568;
}

/* Price Controls */
body.dark-mode .price-control,
body.dark-mode .upgrade-price,
body.dark-mode .price-input-wrapper {
  background: #2d3748;
  border-color: #718096;
}

/* Sections and Options */
body.dark-mode .drink-options,
body.dark-mode .upgrades-area,
body.dark-mode .menu-filter-bar {
  background: #2d3748;
  border-color: #718096;
}

/* Buttons */
body.dark-mode .filter-btn {
  background: #2d3748;
  border-color: #718096;
  color: #e2e8f0;
}

body.dark-mode .filter-btn.active {
  background: var(--primary);
  color: white;
}

body.dark-mode .filter-btn:hover:not(.active) {
  background: #4a5568;
}

/* Section Headers */
body.dark-mode .section-header {
  background: #4a5568;
  border-color: #718096;
}

body.dark-mode .order-count,
body.dark-mode .meta-item {
  background: #2d3748;
  color: #e2e8f0;
}

/* Order Notes */
body.dark-mode .order-notes {
  background: #744210;
  border-color: #d69e2e;
}

/* Milk Items */
body.dark-mode .milk-item:hover,
body.dark-mode .milk-checkbox:hover {
  background: #4a5568;
}

/* Order Items */
body.dark-mode .order-item {
  border-color: #4a5568;
}

body.dark-mode .item-comments {
  background: #744210;
  border-color: #d69e2e;
  color: #fbd38d;
}

/* Text Colors */
body.dark-mode .item-name,
body.dark-mode .order-id,
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4,
body.dark-mode .form-label,
body.dark-mode .size-name,
body.dark-mode .upgrade-name-input,
body.dark-mode .currency,
body.dark-mode .stock-label,
body.dark-mode .stock-status,
body.dark-mode .order-info h3,
body.dark-mode .section-header h3,
body.dark-mode .upgrade-icon,
body.dark-mode .history-header,
body.dark-mode .login-header h1,
body.dark-mode .login-header p {
  color: #e2e8f0 !important;
}

body.dark-mode .item-details,
body.dark-mode .text-secondary,
body.dark-mode .meta-item,
body.dark-mode .price-control span,
body.dark-mode .milk-item,
body.dark-mode .history-completed,
body.dark-mode .history-items {
  color: #a0aec0 !important;
}

/* Working Order Border - Keep Green */
body.dark-mode .order-card.order-working {
  border-color: #10b981;
}

body.dark-mode .working-header {
  border-left-color: #10b981;
}

body.dark-mode .working-header h3 {
  color: #10b981 !important;
}

/* Loading Spinner */
body.dark-mode .loading-spinner {
  background: #4a5568;
  color: #e2e8f0;
}

/* Category Headers */
body.dark-mode .category-header,
body.dark-mode .food-subcat-header {
  background: #2d3748;
  color: #e2e8f0;
}

/* Subcategory Select */
body.dark-mode .subcat-select {
  background: #2d3748;
  border-color: #718096;
  color: #e2e8f0;
}

/* Status Badges - adjust for dark mode */
body.dark-mode .status.available {
  background: #22543d;
  color: #68d391;
}

body.dark-mode .status.unavailable {
  background: #742a2a;
  color: #fc8181;
}

/* Badge adjustments */
body.dark-mode .badge-success {
  background: #22543d;
  color: #68d391;
}

body.dark-mode .badge-info {
  background: #2a4365;
  color: #63b3ed;
}

body.dark-mode .badge-secondary {
  background: #2d3748;
  color: #a0aec0;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

body.dark-mode ::-webkit-scrollbar-track {
  background: #2d3748;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

body.dark-mode ::-webkit-scrollbar-thumb {
  background: #4a5568;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
  background: #718096;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 0.375rem;
}

input[type="color"]::-moz-color-swatch {
  border: none;
  border-radius: 0.375rem;
}

#message-box {
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  z-index: 1000;
}

.message-enter {
  opacity: 0;
  transform: translateY(-20px);
}

.message-visible {
  opacity: 1;
  transform: translateY(0);
}

body.logged-in {
  background: #f8fafc;
}

/* ===== LAYOUT SYSTEM ===== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem var(--spacing) 0 var(--spacing);
}

.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { 
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 100%;
}
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

@media (max-width: 1400px) {
  .grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .grid-4 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

@media (max-width: 1200px) {
  .grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { 
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.flex {
  display: flex;
  gap: var(--spacing);
}

.flex-between { justify-content: space-between; }
.flex-center { justify-content: center; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: 2rem; font-weight: 700; color: var(--text-primary); margin-bottom: var(--spacing); }
h2 { font-size: 1.5rem; font-weight: 600; color: var(--text-primary); margin-bottom: var(--spacing); }
h3 { font-size: 1.25rem; font-weight: 600; color: var(--text-primary); margin-bottom: var(--spacing-sm); }
h4 { font-size: 1.1rem; font-weight: 500; color: var(--text-primary); margin-bottom: var(--spacing-sm); }

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-secondary); }
.text-center { text-align: center; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

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


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


.btn-success {
  background: var(--success);
  color: white;
}

.btn-warning {
  background: var(--warning);
  color: white;
}

.btn-danger {
  background: var(--error);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}


.btn-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 1rem 1.5rem;
  font-size: 1rem;
}

/* ===== CARDS ===== */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.5);
}

.card-header {
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  font-weight: 600;
}

.card-body {
  padding: var(--spacing-lg);
}

.card-footer {
  padding: var(--spacing);
  border-top: 1px solid var(--border);
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: var(--spacing);
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing);
}

.form-inline {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success { background: #e8f5e8; color: #2e7d32; }
.badge-warning { background: #fff3e0; color: #f57c00; }
.badge-error { background: #ffebee; color: #c62828; }
.badge-info { background: #e3f2fd; color: #1565c0; }
.badge-secondary { background: #f5f5f5; color: #616161; }

/* ===== HEADER & NAVIGATION ===== */
header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  padding: 0 var(--spacing-xl);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .header-content {
    padding: 0 1rem;
    justify-content: space-between;
  }
}

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

@media (max-width: 768px) {
  .logo {
    gap: 0.5rem;
  }
  
  .header-content {
    gap: 1rem;
  }
}

.logo h1 {
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dark-mode-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  color: white;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dark-mode-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.8s ease;
  z-index: 1;
}

.dark-mode-toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: 0;
}

.dark-mode-toggle:hover::before {
  left: 100%;
}

.dark-mode-toggle:hover::after {
  width: 200px;
  height: 200px;
}

.dark-mode-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.dark-mode-toggle:active {
  transform: translateY(-1px) scale(1.02);
  transition: transform 0.15s ease;
}

.dark-mode-toggle span {
  position: relative;
  z-index: 2;
}

.logo h1:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
  .logo h1 {
    font-size: 1.4rem;
  }
  
  nav a {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
}

nav ul {
  display: flex;
  list-style: none;
  gap: var(--spacing-sm);
}

nav a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  color: white;
  text-decoration: none;
  border-radius: var(--radius-lg);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

nav a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-1px);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}



nav a.active {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  box-shadow: var(--shadow);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

nav a.active::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

#burger-icon {
  width: 48px;
  height: 48px;
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  -o-transform: translate3d(0, 0, 0);
  -ms-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

#burger-icon path {
  fill: none;
  -webkit-transition: stroke-dashoffset 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25), stroke-dasharray 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25);
  -moz-transition: stroke-dashoffset 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25), stroke-dasharray 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25);
  -o-transition: stroke-dashoffset 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25), stroke-dasharray 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25);
  -ms-transition: stroke-dashoffset 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25), stroke-dasharray 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25);
  transition: stroke-dashoffset 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25), stroke-dasharray 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25);
  stroke-width: 40px;
  stroke-linecap: round;
  stroke: white;
  stroke-dashoffset: 0px;
}

#burger-icon path#top,
#burger-icon path#bottom {
  stroke-dasharray: 240px 950px;
}

#burger-icon path#middle {
  stroke-dasharray: 240px 240px;
}

.mobile-menu-toggle.cross #burger-icon path#top,
.mobile-menu-toggle.cross #burger-icon path#bottom {
  stroke-dashoffset: -650px;
}

.mobile-menu-toggle.cross #burger-icon path#middle {
  stroke-dashoffset: -115px;
  stroke-dasharray: 1px 220px;
}

.mobile-nav {
  position: fixed;
  top: 90px;
  left: 0;
  right: 0;
  width: calc(100vw - 2rem);
  max-width: 350px;
  margin: 0 auto;
  transform: translateY(-20px);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 
              0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav ul li {
  border-radius: 12px;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.mobile-nav ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: rgba(255, 255, 255, 0.2);
  transition: width 0.3s ease;
  border-radius: 12px;
}

.mobile-nav ul li:hover::before {
  width: 100%;
}

.mobile-nav ul li:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mobile-nav ul li a {
  display: block;
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 1rem 1.5rem;
  transition: all 0.3s ease;
  border-radius: 12px;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.mobile-nav ul li:hover a {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  font-weight: 600;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing);
  border-bottom: 1px solid var(--border);
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
}

.mobile-nav.active {
  left: 0;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
  display: none;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===== MAIN CONTENT ===== */
main {
  padding: 200rem;
  margin-top: 2rem;
  min-height: calc(100vh - 70px);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

section {
  display: none;
}

section.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

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



section h2 {
  color: var(--text-primary);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
}

/* ===== LOGIN ===== */
#login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--spacing);
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 420px;
  width: 100%;
  animation: slideUp 0.6s ease;
}

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

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.login-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin: 0;
}

.login-form .form-group {
  margin-bottom: 1.5rem;
}

.login-input {
  padding: 1rem;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.login-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.btn-login {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}



/* Notification button styling */
#notificationForm button[type="submit"] {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0.25rem;
}



.login-error {
  color: var(--error);
  background: rgba(239, 68, 68, 0.1);
  padding: 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  display: none;
  border-left: 4px solid var(--error);
}

/* ===== ORDERS SECTIONS ===== */
.orders-section {
  margin-bottom: 3rem;
}

.orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

@media (max-width: 768px) {
  .orders-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== MODERN ORDER CARDS - UPDATED ===== */
.modern-order-card {
  padding: 1.5rem;
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.order-info-left {
  flex: 1;
}

.order-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.order-email {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.order-table {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.order-separator {
  height: 1px;
  background: #e5e7eb;
  margin: 0.75rem 0;
}

.order-comments {
  margin: 0.75rem 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.order-items-list {
  margin-bottom: 1rem;
}

.simple-item {
  margin-bottom: 0.75rem;
}

.simple-item:last-child {
  margin-bottom: 0;
}

.item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.item-text {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.item-amount {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}

.item-upgrades {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-left: 1rem;
  font-style: italic;
}

.order-tax {
  text-align: right;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.order-total-simple {
  text-align: right;
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1rem;
}

.order-button-section {
  margin-top: auto;
}

.order-button-section .modern-btn {
  width: 100%;
}

/* Dark Mode Support */
body.dark-mode .order-separator {
  background: #ffffff;
}

body.dark-mode .order-comments {
  color: #a0aec0;
}

body.dark-mode .item-text,
body.dark-mode .order-number {
  color: #e2e8f0;
}

body.dark-mode .item-upgrades,
body.dark-mode .order-email,
body.dark-mode .order-table {
  color: #a0aec0;
}

body.dark-mode .order-tax {
  color: #a0aec0;
}

body.dark-mode .order-total-simple {
  color: var(--primary);
}

/* History specific styling */
.history-completion {
  text-align: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
}

body.dark-mode .history-completion {
  border-top-color: #4a5568;
}

.history-filters {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.history-filters .filter-buttons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.custom-date-range {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.custom-date-range input[type="date"] {
  padding: 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

body.dark-mode .history-filters {
  background: #4a5568;
  border-color: #718096;
}

body.dark-mode .custom-date-range input[type="date"] {
  background: #2d3748;
  border-color: #718096;
  color: #e2e8f0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.75rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  background: white;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.working-header {
  border-left: 4px solid #10b981;
}

.working-header h3 {
  color: #10b981;
}

.new-header {
  border-left: 4px solid var(--primary);
}

.new-header h3 {
  color: var(--primary);
}

.section-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.order-count {
  background: #f3f4f6;
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 1.1rem;
  min-width: 44px;
  text-align: center;
}



/* ===== MODERN ORDER CARDS ===== */
.modern-order-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  min-width: 320px;
  width: 100%;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.order-card-content {
  flex: 1;
}

.modern-order-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.modern-order-card.order-working {
  position: relative;
  border-color: #10b981;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
  animation: workingBorderPulse 3s ease-out infinite;
}

@keyframes workingBorderPulse {
  0% {
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
  }
  30% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  31%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.order-card-header {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.order-info .order-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.order-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.table-info, .customer-info {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modern-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-new {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #3b82f6;
}

.badge-working {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
}

.badge-complete {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #22c55e;
}

.order-total-section {
  background: var(--primary-light);
  padding: 1rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}

.total-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.total-amount {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}

.order-items-section {
  padding: 1.5rem;
}

.modern-item {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.modern-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.item-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.item-info {
  flex: 1;
}

.item-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.item-details {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

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

.order-comments-section {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.875rem;
}

.comments-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.comments-text {
  color: var(--text-secondary);
  line-height: 1.4;
}

.order-notes-section {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.875rem;
}

.order-actions-section {
  padding: 1.5rem;
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
}

.modern-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modern-btn-primary {
  background: var(--secondary);
  color: white;
}

.modern-btn-primary:hover {
  background: #1976d2;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.modern-btn-success {
  background: var(--success);
  color: white;
}

.modern-btn-success:hover {
  background: #388e3c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}



.order-card-header {
  background: #fafbfc;
  padding: 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.order-info h3.order-id {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
}

.order-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.meta-item {
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: #f3f4f6;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-weight: 500;
}

.order-status {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.order-status-new {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #3b82f6;
}

.order-status-working {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
}

.order-status-complete {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #22c55e;
}

.order-card-body {
  padding: 1.25rem;
}

.order-total {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: var(--primary-light);
  border-radius: 8px;
  text-align: center;
}

.order-items-list {
  margin-bottom: 1rem;
}

.order-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
}

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

.item-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}



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

.item-details {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.item-upgrades {
  font-size: 0.8rem;
  color: var(--success);
  font-weight: 500;
  margin-top: 0.25rem;
}

.item-comments {
  font-size: 0.8rem;
  color: var(--warning);
  font-weight: 500;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: #fff3cd;
  border-radius: 4px;
  border-left: 3px solid var(--warning);
}

.order-notes {
  background: #fef3c7;
  padding: 0.75rem;
  border-radius: 8px;
  border-left: 4px solid #f59e0b;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.order-card-footer {
  padding: 1.25rem;
  background: #fafbfc;
  border-top: 1px solid #e5e7eb;
}

.order-btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  min-height: 44px;
}

.order-btn-start {
  background: var(--secondary);
  color: white;
}

.order-btn-complete {
  background: var(--success);
  color: white;
}



.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing);
}

.order-id {
  font-weight: 600;
  color: var(--text-primary);
}

.order-details {
  margin-bottom: var(--spacing);
}

.order-meta {
  display: flex;
  gap: var(--spacing);
  margin-bottom: var(--spacing-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.order-total {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: var(--spacing);
}

.order-items {
  margin-bottom: var(--spacing);
}

.item-list {
  list-style: none;
}

.item-list li {
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.item-name {
  font-weight: 500;
}

.item-options {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.order-actions {
  display: flex;
  gap: var(--spacing-sm);
}

/* ===== MENU CARDS ===== */
.menu-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  animation: fadeInScale 0.5s ease;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.card-top {
  background: #fafbfc;
  padding: 1.25rem;
  border-bottom: 1px solid #e5e7eb;
}

.item-info {
  margin-bottom: 1rem;
}

.item-name {
  width: 100%;
  font-size: 1.1rem;
  font-weight: 600;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  transition: all 0.2s;
  background: white;
}

.item-name:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}



.item-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.price-control {
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.75rem;
  gap: 0.5rem;
  transition: border-color 0.2s;
}

.price-control:focus-within {
  border-color: var(--primary);
}

.price-control span {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 1rem;
}

.item-price {
  border: none;
  width: 80px;
  text-align: right;
  font-weight: 600;
  font-size: 1rem;
  background: transparent;
}

.stock-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 0.75rem;
}

.stock-toggle input {
  display: none;
}

.toggle {
  width: 44px;
  height: 24px;
  background: #cbd5e1;
  border-radius: 12px;
  position: relative;
  transition: background 0.3s;
}

.toggle::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.stock-toggle input:checked + .toggle {
  background: var(--success);
}

.stock-toggle input:checked + .toggle::before {
  transform: translateX(20px);
}

.card-body {
  padding: 1.25rem;
}

.item-desc {
  width: 100%;
  min-height: 80px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.75rem;
  resize: vertical;
  margin-bottom: 1.25rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.item-desc:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.drink-options {
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.drink-options h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sizes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.size-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.size-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.size-input {
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.2s;
}

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

.milk-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.milk-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.milk-item:hover {
  background: #e5e7eb;
}

.upgrades-area {
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.upgrades-area h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.upgrades-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.upgrade-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--primary);
}

.upgrade-pill.out-of-stock-upgrade {
  background: #ffebee;
  color: var(--error);
  border-color: var(--error);
  opacity: 0.8;
}

.remove-upgrade {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-weight: bold;
  padding: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.remove-upgrade:hover {
  background: rgba(255, 255, 255, 0.3);
}

.upgrade-select {
  border: 2px solid #e5e7eb;
  border-radius: 20px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s;
}

.upgrade-select:focus {
  border-color: var(--primary);
  outline: none;
}

.card-footer {
  padding: 1.25rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafbfc;
}

.delete-btn {
  background: var(--error);
  color: white;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.delete-btn:hover {
  background: #d32f2f;
  transform: translateY(-1px);
}

.status {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status.available {
  background: #dcfce7;
  color: var(--success);
  border: 1px solid var(--success);
}

.status.unavailable {
  background: #fecaca;
  color: var(--error);
  border: 1px solid var(--error);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .card-top {
    flex-direction: column;
    gap: 1rem;
  }
  
  .item-controls {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  
  .sizes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sizes-grid {
    grid-template-columns: 1fr;
  }
  
  .milk-grid {
    grid-template-columns: 1fr;
  }
  
  .upgrades-content {
    flex-direction: column;
    align-items: stretch;
  }
  
  .upgrade-pill {
    justify-content: space-between;
  }
  
  .menu-card {
    min-width: 0;
    overflow: hidden;
  }
  
  .item-name, .item-price, .item-desc {
    min-width: 0;
    width: 100%;
  }
}

/* Prevent horizontal scroll */
body {
  overflow-x: hidden;
}

.container {
  max-width: 100%;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

* {
  max-width: 100%;
}

.item-title-section {
  flex: 1;
}

.item-name-input {
  width: 100%;
  font-size: 1.1rem;
  font-weight: 600;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  padding: 0.75rem;
  border-radius: 8px;
  transition: all 0.2s;
  min-height: 44px;
}

.item-name-input:focus {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.category-badge {
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-stock-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  min-width: 120px;
}

.price-input-wrapper {
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.5rem;
  transition: border-color 0.2s;
}

.price-input-wrapper:focus-within {
  border-color: var(--primary);
}

.currency {
  font-weight: 600;
  color: var(--text-secondary);
  margin-right: 0.25rem;
}

.item-price-input {
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  width: 80px;
  text-align: right;
}

.stock-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.stock-switch input {
  display: none;
}

.slider {
  width: 36px;
  height: 20px;
  background: #cbd5e1;
  border-radius: 10px;
  position: relative;
  transition: background 0.3s;
}

.slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.stock-switch input:checked + .slider {
  background: var(--success);
}

.stock-switch input:checked + .slider::before {
  transform: translateX(16px);
}

.stock-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.menu-card-body {
  padding: 1.5rem;
}

.menu-card-body > div {
  margin-bottom: 1.5rem;
}

.menu-card-body > div:last-child {
  margin-bottom: 0;
}

.menu-card-body label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.item-description-input {
  width: 100%;
  min-height: 80px;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  resize: vertical;
  margin-bottom: var(--spacing);
  font-family: inherit;
  transition: border-color 0.2s;
}

.item-description-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.drink-sizes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.size-input-group {
  display: flex;
  flex-direction: column;
}

.size-input-group label {
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
}

.size-price-input {
  padding: 0.5rem;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  font-weight: 600;
  transition: border-color 0.2s;
}

.size-price-input:focus {
  border-color: var(--primary);
}

.milk-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.milk-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: #f8fafc;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
}

.milk-checkbox:hover {
  background: var(--primary-light);
}

.milk-checkbox input:checked + span {
  color: var(--primary);
}

.upgrades-content {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.upgrade-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.upgrade-tag.out-of-stock-upgrade {
  background: #ffebee;
  color: var(--error);
  opacity: 0.7;
}

.remove-upgrade {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-weight: bold;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-upgrade-select {
  padding: 0.5rem 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 20px;
  font-size: 0.75rem;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s;
}

.add-upgrade-select:focus {
  border-color: var(--primary);
}

.menu-card-footer {
  background: #f8fafc;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e5e7eb;
}

.btn-danger-outline {
  background: transparent;
  border: 2px solid var(--error);
  color: var(--error);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-danger-outline:hover {
  background: var(--error);
  color: white;
}

.stock-indicator {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
}

.stock-indicator.in-stock {
  background: #dcfce7;
  color: #166534;
}

.stock-indicator.out-stock {
  background: #fecaca;
  color: #991b1b;
}

.menu-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing);
}

.menu-card-title {
  flex: 1;
}

.menu-card-title input {
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  background: transparent;
  width: 100%;
  margin-bottom: var(--spacing-sm);
}

.item-category {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.menu-card-price-stock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--spacing-sm);
}

.item-price-input {
  width: 80px;
  text-align: right;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--spacing-sm);
}

.stock-toggle {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 0.875rem;
}

.menu-card-body {
  margin-bottom: var(--spacing);
}

.item-description-input {
  width: 100%;
  min-height: 60px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--spacing-sm);
  resize: vertical;
  margin-bottom: var(--spacing);
}

.sizes-section,
.milk-options-section {
  margin-bottom: var(--spacing);
}

.sizes-section h5,
.milk-options-section h5 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.sizes-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: var(--spacing-sm);
}

.size-row {
  display: flex;
  flex-direction: column;
}

.size-row label {
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 2px;
}

.size-price-input {
  padding: var(--spacing-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
}

.milk-options-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing);
}

.milk-options-list label {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 0.875rem;
  cursor: pointer;
}

.menu-upgrades {
  margin-bottom: var(--spacing);
}

.assigned-upgrade {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  margin-right: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.remove-upgrade {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-weight: bold;
  padding: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-upgrade-select {
  padding: var(--spacing-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
}

.menu-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== UPGRADE CARDS ===== */
.upgrade-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transition: all 0.3s ease;
}

.upgrade-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.upgrade-card-header {
  background: #fafbfc;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .upgrade-card-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .upgrade-title {
    width: 100%;
  }
  
  .upgrade-price {
    justify-content: center;
  }
}

.upgrade-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.upgrade-icon {
  font-size: 1.2rem;
  color: var(--primary);
}

.upgrade-name-input {
  background: white;
  border: 2px solid #e5e7eb;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  flex: 1;
  transition: all 0.2s;
}

.upgrade-name-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.upgrade-price {
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid #e5e7eb;
  padding: 0.75rem;
  border-radius: 8px;
  gap: 0.5rem;
  transition: border-color 0.2s;
}

.upgrade-price:focus-within {
  border-color: var(--primary);
}

.upgrade-price .currency {
  font-weight: 600;
  color: var(--text-secondary);
}

.upgrade-price-input {
  background: transparent;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  width: 80px;
  text-align: right;
}

.upgrade-card-body {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .upgrade-card-body {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .stock-control {
    justify-content: center;
  }
  
  .delete-upgrade {
    width: 100%;
  }
}

.stock-control {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--success);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

.stock-status {
  font-weight: 600;
  font-size: 0.9rem;
}

.stock-status.in-stock {
  color: var(--success);
}

.stock-status.out-stock {
  color: var(--error);
}

.stock-status.updating {
  color: var(--warning);
  font-style: italic;
}

.delete-btn {
  background: var(--error);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.delete-btn:hover {
  background: #d32f2f;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

/* ===== HISTORY CARDS ===== */
.history-card {
  border-left: 4px solid var(--success);
}

.history-header {
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.history-total {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--spacing-sm);
}

.history-completed {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing);
}

.history-items {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ===== MENU FILTER BAR ===== */
.menu-filter-bar {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid #e5e7eb;
  background: white;
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 44px;
}

.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.filter-btn:hover:not(.active) {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.food-subcat-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.food-subcat-filter label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.subcat-select {
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  color: var(--text-primary);
  font-weight: 500;
  cursor: pointer;
  min-width: 200px;
  transition: border-color 0.2s;
}

.subcat-select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.menu-items-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1200px) {
  .menu-items-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-items-grid {
    grid-template-columns: 1fr;
  }
}

.loading-spinner {
  text-align: center;
  padding: 3rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ===== CATEGORY SECTIONS ===== */
.category-section,
.food-subcat-group {
  margin-bottom: 3rem;
}

.category-header,
.food-subcat-header {
  color: var(--text-primary);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  
  .menu-card-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .price-stock-section {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width: 1120px) {
  nav { display: none !important; }
  .mobile-menu-toggle { display: block !important; }
  .mobile-nav { display: block !important; }
  .mobile-nav-overlay { display: block !important; }
  
  header { position: relative; z-index: 1000; }
  
  main { padding: 1rem; }
  .header-content { padding: 0 1rem; }
  
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  
  .section-header {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .filter-bar {
    flex-wrap: wrap;
    padding: 1rem;
  }
  
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  
  .modern-menu-card .menu-card-header {
    padding: 1rem;
  }
  
  .modern-menu-card .menu-card-body {
    padding: 1rem;
  }
  
  .drink-sizes {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .milk-options {
    grid-template-columns: 1fr;
  }
  
  .upgrades-content {
    flex-direction: column;
    align-items: stretch;
  }
  
  .upgrade-tag {
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .login-card { padding: 2rem 1.5rem; }
  
  .section-header h3 { font-size: 1.2rem; }
  
  .modern-menu-card .item-name-input {
    font-size: 1rem;
  }
  
  .category-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }
}

/* ===== ANIMATIONS ===== */
.order-anim-working {
  animation: workingPulse 0.6s ease;
}

.order-anim-complete {
  animation: completeFade 0.6s ease;
}

@keyframes workingPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); background: #e8f5e8; }
  100% { transform: scale(1); }
}

@keyframes completeFade {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.98); }
  100% { opacity: 0; transform: scale(0.95); }
}

@keyframes moveToWorking {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }
  50% {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.3);
  }
  100% {
    transform: scale(0.95) translateY(-30px);
    opacity: 0.5;
  }
}

.order-moving-to-working {
  animation: moveToWorking 0.8s ease-out forwards;
  z-index: 10;
  position: relative;
}

/* ===== UTILITY CLASSES ===== */
.hidden { display: none !important; }
.visible { display: block !important; }
.text-bold { font-weight: 600; }
.text-light { font-weight: 300; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--spacing-sm) !important; }
.mb-2 { margin-bottom: var(--spacing) !important; }
.mb-3 { margin-bottom: var(--spacing-lg) !important; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--spacing-sm) !important; }
.mt-2 { margin-top: var(--spacing) !important; }
.mt-3 { margin-top: var(--spacing-lg) !important; }

/* ===== UPGRADE CHECKBOXES ===== */
.upgrades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-sm);
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--spacing);
}

.upgrade-checkbox {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.upgrade-checkbox:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

.upgrade-checkbox input[type="checkbox"] {
  margin: 0;
}

.upgrade-name {
  flex: 1;
  font-weight: 500;
}

.upgrade-price {
  font-weight: 600;
  color: var(--primary);
}

/* ===== ADD ITEM WIZARD ===== */
.add-item-header {
  text-align: center;
  margin-bottom: 2rem;
}

.add-item-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.add-item-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.add-item-wizard {
  max-width: 800px;
  margin: 0 auto;
}

.wizard-steps {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  position: relative;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 25%;
  right: 25%;
  height: 2px;
  background: #e5e7eb;
  z-index: 1;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  cursor: pointer;
  transition: all 0.3s ease;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.step.active .step-number,
.step.completed .step-number {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.step-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.step.active .step-label {
  color: var(--primary);
  font-weight: 600;
}

.wizard-form {
  position: relative;
  min-height: 500px;
}

.wizard-step {
  display: none;
  animation: fadeInUp 0.5s ease;
}

.wizard-step.active {
  display: block;
}

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

.step-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  margin-bottom: 2rem;
}

.step-header {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  padding: 2rem;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}

.step-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.step-header p {
  color: var(--text-secondary);
  margin: 0;
}

.step-content {
  padding: 2rem;
}

.input-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.modern-label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.modern-input,
.modern-textarea,
.modern-select {
  width: 100%;
  padding: 1rem 3rem 1rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.modern-input:focus,
.modern-textarea:focus,
.modern-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.1);
  outline: none;
}

.input-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  pointer-events: none;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.category-option {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-option:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.category-option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(233, 30, 99, 0.2);
}

.category-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.category-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.category-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.subcategory-section {
  margin-top: 2rem;
}

.options-grid {
  display: grid;
  gap: 1.5rem;
}

.option-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
}

.option-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.upgrades-container {
  position: relative;
}

.help-text {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.review-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
}

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

.review-section:last-child {
  margin-bottom: 0;
}

.review-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.review-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}

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

.review-label {
  font-weight: 500;
  color: var(--text-secondary);
}

.review-value {
  font-weight: 600;
  color: var(--text-primary);
}

.wizard-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

.wizard-navigation .btn {
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.wizard-navigation .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Dark Mode */
body.dark-mode .step-card,
body.dark-mode .option-card,
body.dark-mode .review-card {
  background: #4a5568;
  border-color: #718096;
}

body.dark-mode .step-header {
  background: #2d3748;
  border-color: #718096;
}

body.dark-mode .modern-input,
body.dark-mode .modern-textarea,
body.dark-mode .modern-select {
  background: #2d3748;
  border-color: #718096;
  color: #e2e8f0;
}

body.dark-mode .category-option {
  background: #2d3748;
  border-color: #718096;
}

body.dark-mode .category-option.selected {
  background: rgba(233, 30, 99, 0.2);
}

body.dark-mode .modern-label,
body.dark-mode .category-name,
body.dark-mode .review-label,
body.dark-mode .review-value {
  color: #e2e8f0;
}

body.dark-mode .category-desc,
body.dark-mode .help-text {
  color: #a0aec0;
}

@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
  
  .wizard-steps {
    margin-bottom: 2rem;
  }
  
  .step-content {
    padding: 1rem;
  }
  
  .wizard-navigation {
    flex-direction: column;
    gap: 1rem;
  }
  
  .wizard-navigation .btn {
    width: 100%;
  }
}

/* Add a CSS rule to hide steps */
.hidden-step {
  display: none !important;
}