/* ==========================================================================
   STYLE NAME: styles.css
   LOCATION: scoops-app/styles.css
   JOB: The master design platform. Refreshed with a premium, smooth modern
        aesthetic, vibrant colors, soft shadows, and clean typography.
   ========================================================================== */

/* 1. GLOBAL DESIGN SYSTEM VARIABLES */
:root {
  --font-main: 'Outfit', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  
  /* Vibrant Pastel Funhouse Palette */
  --bg-creme: #faf8f5;
  --primary-purple: #5f27cd;
  --accent-pink: #ff6b6b;
  --soft-yellow: #feca57;
  --mint-green: #1dd1a1;
  --dark-slate: #222f3e;
  
  /* Text and Surfaces */
  --surface-white: #ffffff;
  --text-main: #222f3e;
  --text-muted: #57606f;
  --border-light: #eceff1;

  /* Missing Panel Dashboard Color Tokens */
  --kitchen-dark: #1e272e;
  --kitchen-card: #2f3640;
  --kitchen-text: #f5f6fa;
  --owner-navy: #0984e3;
  
  /* Smooth Modern Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(34, 47, 62, 0.08), 0 4px 6px -2px rgba(34, 47, 62, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(34, 47, 62, 0.1), 0 10px 10px -5px rgba(34, 47, 62, 0.04);
  
  /* Transitions */
  --bounce-transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --smooth-transition: all 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-creme);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* Prevents drawer container layout overflow bugs */
}

/* Helper Class to Toggle Display Modals via JS */
.hidden {
  display: none !important;
}

/* 3. STOREFRONT NAVIGATION BAR */
.navigation-bar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.logo span {
  color: var(--accent-pink);
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--smooth-transition);
}

.nav-links a:hover {
  color: var(--primary-purple);
}

.cart-toggle-btn {
  background: var(--primary-purple);
  color: white;
  border: none;
  padding: 12px 22px;
  font-family: var(--font-main);
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(95, 39, 205, 0.3);
  transition: var(--bounce-transition);
}

.cart-toggle-btn:hover {
  transform: scale(1.05);
  background: #4b14b5;
}

/* 4. PREMIUM HERO HERO BANNER */
.hero-header {
  max-width: 840px;
  margin: 80px auto 100px auto;
  text-align: center;
  padding: 0 24px;
}

.hero-header .badge {
  display: inline-block;
  background: rgba(255, 107, 107, 0.1);
  color: var(--accent-pink);
  padding: 6px 16px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero-header h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 24px;
  color: var(--dark-slate);
}

.hero-header p {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 36px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.action-btn {
  display: inline-block;
  background: var(--dark-slate);
  color: white;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(34, 47, 62, 0.15);
  transition: var(--smooth-transition);
}

.action-btn:hover {
  background: var(--accent-pink);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
  transform: translateY(-2px);
}

/* 5. VIBRANT CUSTOMER MENU PLATFORM */
.menu-wrapper {
  max-width: 1200px;
  margin: 0 auto 100px auto;
  padding: 0 24px;
}

.menu-wrapper h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 32px;
}

.category-tabs-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  overflow-x: auto;
  padding: 4px 4px 12px 4px;
}

.tab-select-btn {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  padding: 14px 28px;
  font-family: var(--font-main);
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 14px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--smooth-transition);
  white-space: nowrap;
}

.tab-select-btn:hover {
  border-color: var(--primary-purple);
  color: var(--primary-purple);
}

.tab-select-btn.active {
  background: var(--primary-purple);
  color: white;
  border-color: var(--primary-purple);
  box-shadow: 0 8px 16px rgba(95, 39, 205, 0.2);
}

/* Dynamic Product Presentation Grid */
.products-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

.menu-item-card {
  background: var(--surface-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: var(--bounce-transition);
  border: 1px solid rgba(0,0,0,0.02);
}

.menu-item-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-art-placeholder {
  background: linear-gradient(135deg, #ffeaa7 0%, #feca57 100%);
  padding: 40px;
  text-align: center;
  font-size: 3.5rem;
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-body h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--text-main);
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

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

.card-price-label {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-main);
}

.add-to-tray-btn {
  background: var(--accent-pink);
  color: white;
  border: none;
  padding: 10px 22px;
  font-weight: 600;
  font-family: var(--font-main);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--smooth-transition);
}

.add-to-tray-btn:hover {
  background: #ff4757;
  transform: translateY(-1px);
}

/* 6. MODAL SYSTEM & DRAWER ARCHITECTURES */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34, 47, 62, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.dialog-box {
  background: var(--surface-white);
  border-radius: 24px;
  padding: 36px;
  max-width: 520px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.dialog-box h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.input-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.input-stack input, .input-stack textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #dcdde1;
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  background: #f8f9fa;
  transition: var(--smooth-transition);
}

.input-stack textarea {
  min-height: 100px;
  resize: vertical;
}

.form-section-header {
  font-weight: 700;
  color: var(--text-main);
  margin: 24px 0 12px 0;
  font-size: 1.1rem;
}

.form-helper-alert {
  background: #f0edf8;
  color: var(--primary-purple);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.toppings-selection-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 8px;
  margin-bottom: 20px;
}

.radio-checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f8f9fa;
  border-radius: 10px;
  font-weight: 500;
  transition: var(--smooth-transition);
}

.radio-checkbox-row:hover {
  background: #f1f2f6;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.confirm-action-btn {
  flex-grow: 2;
  background: var(--primary-purple);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: var(--smooth-transition);
}

.confirm-action-btn:hover { background: #4b14b5; }

.cancel-action-btn {
  flex-grow: 1;
  background: #f1f2f6;
  color: var(--text-muted);
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
}

/* Slide Drawer Custom Basket */
.drawer-shade {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34, 47, 62, 0.3);
  backdrop-filter: blur(4px);
  z-index: 140;
}

.cart-drawer-container {
  position: fixed; 
  top: 0; 
  right: -460px; /* Accounted for extra spacing */
  width: 440px; 
  max-width: 100%;
  height: 100%;
  background: var(--surface-white); 
  box-shadow: var(--shadow-lg); 
  z-index: 150;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); 
  display: flex; 
  flex-direction: column;
}

.cart-drawer-container.open { 
  transform: translateX(-460px); 
}

.drawer-header { 
  padding: 24px; 
  border-bottom: 1px solid var(--border-light); 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
}

.drawer-header h3 { 
  font-family: var(--font-display); 
  font-size: 1.5rem; 
}

.drawer-close-x { 
  background: none; 
  border: none; 
  font-size: 1.8rem; 
  cursor: pointer; 
  color: var(--text-muted); 
}

.drawer-content-scroll {
  padding: 24px;
  flex-grow: 1;
  overflow-y: auto;
}

.tray-item-row { background: #f8f9fa; padding: 16px; border-radius: 14px; margin-bottom: 16px; }
.tray-meta-line { display: flex; justify-content: space-between; font-weight: 600; font-size: 1.05rem; }
.tray-sub-details { font-size: 0.85rem; color: var(--text-muted); margin: 6px 0; }
.remove-row-btn { background: none; border: none; color: #ff4757; font-weight: 600; cursor: pointer; margin-top: 4px; }

.drawer-footer-checkout { padding: 24px; border-top: 1px solid var(--border-light); background: #fafbfc; }
.drawer-footer-checkout label { font-size: 0.85rem; font-weight: 600; color: var(--text-main); }
.total-row { display: flex; justify-content: space-between; font-size: 1.3rem; font-weight: 700; margin: 16px 0; }

.checkout-btn { width: 100%; background: var(--mint-green); color: white; border: none; padding: 16px; font-weight: 700; font-size: 1.1rem; border-radius: 12px; cursor: pointer; box-shadow: 0 4px 12px rgba(29, 209, 161, 0.3); transition: var(--smooth-transition); }
.checkout-btn:hover { background: #10ac84; transform: translateY(-1px); }

/* Receipt Success Modal Accent */
.success-box { text-align: center; }
.checkmark-icon { width: 60px; height: 60px; background: rgba(29, 209, 161, 0.1); color: var(--mint-green); font-size: 2rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; margin: 0 auto 20px auto; font-weight: 700; }
.ticket-id-display { background: #f1f2f6; padding: 12px; border-radius: 10px; font-family: monospace; font-size: 1.4rem; font-weight: 700; color: var(--primary-purple); margin: 16px 0; }

/* Public Utility Widgets Grid */
.utility-section { max-width: 1200px; margin: 0 auto 60px auto; padding: 0 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.utility-card { background: white; padding: 32px; border-radius: 20px; box-shadow: var(--shadow-md); border: 1px solid var(--border-light); display: flex; flex-direction: column; justify-content: space-between; }
.utility-card h3 { font-family: var(--font-display); margin-bottom: 12px; font-size: 1.5rem; }
.utility-card p { color: var(--text-muted); margin-bottom: 20px; flex-grow: 1; }
.secondary-btn { background: #f1f2f6; border: none; padding: 12px 24px; font-weight: 600; border-radius: 10px; cursor: pointer; font-family: var(--font-main); color: var(--text-main); transition: var(--smooth-transition); align-self: flex-start; }
.secondary-btn:hover { background: #dfe4ea; }

/* 7. STAFF LIVE KITCHEN MONITOR */
.staff-body-theme { background-color: var(--kitchen-dark); color: var(--kitchen-text); }
.staff-navigation-bar { background: var(--kitchen-card); padding: 20px 32px; border-bottom: 1px solid #3d4a56; }
.staff-nav-container { max-width: 1600px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.staff-logo { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: white; }
.staff-logo span { color: var(--soft-yellow); }
.live-status-indicator { display: flex; align-items: center; font-size: 0.9rem; color: #a4b0be; }

.kitchen-viewport-wrapper { max-width: 1600px; margin: 40px auto; padding: 0 24px; }
.kitchen-tickets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 32px; }

.kitchen-ticket-card { background: var(--kitchen-card); border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.15); border: 1px solid rgba(255,255,255,0.04); }
.ticket-header-strip { background: rgba(255,255,255,0.05); padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
.ticket-identity { display: flex; align-items: center; gap: 12px; }
.id-badge { background: var(--soft-yellow); color: var(--kitchen-dark); padding: 4px 10px; border-radius: 6px; font-family: monospace; font-weight: 700; font-size: 1.1rem; }
.customer-callout-name { font-family: var(--font-display); font-size: 1.25rem; color: white; }
.timestamp-tag { color: #a4b0be; font-size: 0.85rem; }

.ticket-items-ordered-list { padding: 24px; list-style: none; flex-grow: 1; }
.kitchen-item-row { margin-bottom: 18px; border-bottom: 1px dashed rgba(255,255,255,0.08); padding-bottom: 14px; }
.kitchen-item-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.item-title-txt { font-size: 1.15rem; color: white; font-weight: 600; }
.item-customizations-line { font-size: 0.9rem; color: #ced6e0; margin-top: 6px; font-style: italic; background: rgba(0,0,0,0.15); padding: 6px 12px; border-radius: 8px; display: inline-block; width: 100%; }

.complete-ticket-btn { background: var(--mint-green); color: white; width: 100%; border: none; padding: 18px; font-weight: 700; cursor: pointer; font-size: 1.05rem; font-family: var(--font-main); transition: var(--smooth-transition); }
.complete-ticket-btn:hover { background: #10ac84; }
.kitchen-idle-state { grid-column: 1 / -1; text-align: center; padding: 100px 20px; color: #a4b0be; }
.kitchen-idle-state .idle-icon { font-size: 4rem; margin-bottom: 16px; }

/* 8. PRIVACY PROPRIETOR VAULT */
.owner-body-theme { background-color: #f5f6fa; }
.owner-navigation-bar { background: white; border-bottom: 1px solid var(--border-light); padding: 18px 32px; box-shadow: var(--shadow-sm); }
.owner-logo { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--text-main); }
.owner-logo span { color: var(--owner-navy); }
.nav-view-link { color: var(--owner-navy); text-decoration: none; font-weight: 600; margin-left: 24px; font-size: 0.9rem; transition: var(--smooth-transition); }
.nav-view-link:hover { color: var(--primary-purple); }

.owner-dashboard-grid { max-width: 1600px; margin: 40px auto; padding: 0 24px; display: grid; grid-template-columns: 360px 1fr; gap: 40px; }
@media (max-width: 900px) {
  .owner-dashboard-grid { grid-template-columns: 1fr; }
}
.manager-sidebar-card { background: white; border-radius: 16px; padding: 28px; box-shadow: var(--shadow-md); border: 1px solid var(--border-light); height: fit-content; }
.manager-sidebar-card h3 { font-family: var(--font-display); margin-bottom: 8px; font-size: 1.4rem; }
.sidebar-helper-text { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; }

.input-unit { margin-bottom: 20px; }
.input-unit label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; color: var(--text-main); }
.input-unit input, .input-unit select, .input-unit textarea { width: 100%; padding: 12px; border: 1px solid #dcdde1; border-radius: 10px; font-family: var(--font-main); font-size: 0.95rem; background: #f8f9fa; transition: var(--smooth-transition); }
.input-unit input:focus, .input-unit select:focus, .input-unit textarea:focus { background: white; border-color: var(--owner-navy); outline: none; }
.owner-confirm-btn { width: 100%; background: var(--owner-navy); color: white; border: none; padding: 14px; border-radius: 10px; font-size: 1rem; font-weight: 600; box-shadow: 0 4px 12px rgba(9, 132, 227, 0.2); cursor: pointer; }
.owner-confirm-btn:hover { background: #0b72c4; }

.arena-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.arena-header-row h2 { font-family: var(--font-display); font-size: 2rem; }
.global-save-vault-btn { background: var(--mint-green); color: white; border: none; padding: 14px 28px; font-weight: 700; border-radius: 12px; cursor: pointer; box-shadow: 0 6px 16px rgba(29, 209, 161, 0.25); font-family: var(--font-main); transition: var(--bounce-transition); }
.global-save-vault-btn:hover { transform: translateY(-1px); background: #10ac84; }

.management-category-card-block { background: white; border-radius: 16px; padding: 28px; margin-bottom: 32px; box-shadow: var(--shadow-md); border: 1px solid var(--border-light); overflow-x: auto; }
.management-category-card-block h3 { font-family: var(--font-display); font-size: 1.4rem; border-bottom: 2px solid var(--bg-creme); padding-bottom: 12px; margin-bottom: 12px; }
.owner-inventory-data-table { width: 100%; border-collapse: collapse; }
.owner-inventory-data-table th { text-align: left; padding: 14px; border-bottom: 1px solid var(--border-light); font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.owner-inventory-data-table td { padding: 18px 14px; border-bottom: 1px solid var(--bg-creme); }

.badge-tag-type { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 0.8rem; font-weight: 600; }
.badge-tag-type.gray { background: #f1f2f6; color: var(--text-muted); }
.badge-tag-type.orange { background: #ffeaa7; color: #e58e26; }

.manager-price-override-field { width: 100px; padding: 6px 10px; border: 1px solid #dcdde1; border-radius: 6px; font-family: var(--font-main); font-weight: 600; text-align: center; }
.product-purge-btn { background: rgba(255, 118, 117, 0.1); color: #ff7675; border: none; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-weight: 600; transition: var(--smooth-transition); }
.product-purge-btn:hover { background: #ff7675; color: white; }

/* 9. UTILITY FOOTER STAMP */
.shop-footer { text-align: center; padding: 40px 24px; background: var(--surface-white); border-top: 1px solid var(--border-light); color: var(--text-muted); font-size: 0.9rem; margin-top: 80px; }
.dev-tag { font-family: var(--font-display); font-weight: 700; font-size: 0.75rem; color: #b2bec3; letter-spacing: 1px; margin-top: 8px; }