/* Custom styling based on AI Styling Specification */

:root {
  /* Color Variables */
  --bg-dark: #0b0c10;
  --bg-card: rgba(23, 25, 35, 0.85);
  --text-primary: #f7fafc;
  --text-secondary: #a0aec0;
  
  --primary: #e53e3e;     /* Terracotta Red */
  --primary-rgb: 229, 62, 62;
  --secondary: #dd6b20;   /* Spicy Orange */
  --gold: #ecc94b;        /* Plantain Gold */
  --success: #38a169;     /* Green */
  --warning: #ecc94b;
  
  --border-soft: rgba(255, 255, 255, 0.08);
  --glow-shadow: rgba(229, 62, 62, 0.18);
  
  /* Fonts */
  --font-headings: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Layout constraints */
  --max-width: 1200px;
}

/* Reset and Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  background-image: radial-gradient(circle at top, #1b1613 0%, #0b0c10 60%);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  padding-top: 80px; /* offset for fixed navbar */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.highlight-text {
  color: transparent;
  background: linear-gradient(135deg, var(--gold) 0%, var(--secondary) 50%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.text-accent {
  color: var(--secondary);
}

.text-highlight {
  color: var(--gold);
}

.text-success {
  color: var(--success);
}

.text-muted {
  color: var(--text-secondary);
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  box-shadow: 0 4px 15px var(--glow-shadow);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(229, 62, 62, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-soft);
}

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

.btn-large {
  padding: 14px 30px;
  font-size: 1.05rem;
}

.btn-small {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

/* Glassmorphism Containers */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s, transform 0.3s;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(11, 12, 16, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  z-index: 100;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-headings);
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.logo-location {
  font-size: 0.85rem;
  background: rgba(236, 201, 75, 0.15);
  color: var(--gold);
  padding: 2px 8px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 600;
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-menu a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

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

.cart-btn {
  background: rgba(229, 62, 62, 0.1);
  border: 1px solid rgba(229, 62, 62, 0.2);
  color: var(--primary);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
}

.cart-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.05);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--gold);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: calc(85vh - 80px);
  padding: 60px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
}

.hero-content {
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(221, 107, 32, 0.15);
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 35px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-delivery-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 50px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-soft);
  align-self: flex-start;
  padding: 12px 20px;
  border-radius: 12px;
}

.delivery-icon {
  font-size: 1.5rem;
  color: var(--gold);
}

.delivery-text {
  display: flex;
  flex-direction: column;
}

.delivery-text strong {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.delivery-text span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Menu Grid */
.menu-section {
  padding: 60px 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-tagline {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--secondary);
  letter-spacing: 0.15em;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 20px;
}

.category-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 15px;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border-soft);
  color: var(--text-secondary);
  padding: 8px 18px;
  font-family: var(--font-body);
  font-weight: 500;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 0;
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.loading-state i {
  margin-right: 8px;
  color: var(--primary);
}

/* Food Card styling */
.food-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.food-card:hover {
  transform: translateY(-5px);
  border-color: rgba(221, 107, 32, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.food-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #111;
}

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

.food-card:hover .food-image {
  transform: scale(1.08);
}

.food-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
}

.food-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.food-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.food-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.food-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
}

.food-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* About Section */
.about-section {
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(27, 22, 19, 0.4) 50%, rgba(0,0,0,0) 100%);
  padding: 80px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.about-text-card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-text-card p {
  margin-bottom: 16px;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.features-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 40px;
  margin-top: 30px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.feature-item i {
  color: var(--gold);
  font-size: 1.2rem;
}

/* Contact us form styling */
.contact-section {
  padding: 80px 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
}

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

.contact-info h2 {
  margin-bottom: 16px;
}

.contact-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 30px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.contact-detail-item i {
  background: rgba(229, 62, 62, 0.1);
  color: var(--primary);
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 1px solid rgba(229, 62, 62, 0.2);
}

.contact-detail-item h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-detail-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-form-container form {
  border: 1px solid var(--border-soft);
  max-width: 500px;
  margin: 0 auto;
}

.form-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  background: #13151f;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--font-body);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.3s;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(229, 62, 62, 0.15);
}

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

/* Footer styling */
.footer {
  background: #06070a;
  border-top: 1px solid var(--border-soft);
  padding: 60px 0 20px;
  margin-top: auto;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media(min-width: 768px) {
  .footer-container {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand .logo {
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-links h4, .footer-hours h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

.footer-hours p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--border-soft);
  padding-top: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Shopping Cart Drawer */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-left: 1px solid var(--border-soft);
  z-index: 1000;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-sidebar.open {
  right: 0;
}

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

.cart-header h3 {
  font-size: 1.35rem;
}

.close-cart-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.3s;
}

.close-cart-btn:hover {
  color: var(--primary);
}

.cart-items-container {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.empty-cart-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 80%;
  color: var(--text-secondary);
  text-align: center;
}

.empty-cart-state i {
  font-size: 3rem;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.05);
}

.empty-cart-state p {
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  gap: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-soft);
  padding: 12px;
  border-radius: 8px;
  align-items: center;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
}

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

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 700;
}

.cart-item-qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.qty-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-soft);
  color: var(--text-primary);
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
}

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

.qty-text {
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 16px;
  text-align: center;
}

.remove-item-btn {
  background: transparent;
  border: none;
  color: var(--primary);
  opacity: 0.7;
  cursor: pointer;
  padding: 6px;
  font-size: 1rem;
}

.remove-item-btn:hover {
  opacity: 1;
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--border-soft);
  background: rgba(0,0,0,0.2);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cart-total-amount {
  color: var(--gold);
}

.cart-delivery-note {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-delivery-note i {
  color: var(--gold);
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 5, 8, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-card {
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 16px;
  animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.pay-modal {
  max-width: 480px;
}

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

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

.modal-header h2 {
  font-size: 1.6rem;
}

.close-modal-btn {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.close-modal-btn:hover {
  color: var(--primary);
}

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

.order-summary-box {
  background: rgba(255,255,255,0.01);
  border: 1px solid var(--border-soft);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.order-summary-box h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary);
}

.summary-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.05);
}

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

.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 700;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid var(--border-soft);
  color: var(--gold);
}

.customer-info-box h3, .payment-method-box h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  border-left: 3px solid var(--primary);
  padding-left: 10px;
}

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

@media(min-width: 480px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

@media(min-width: 480px) {
  .payment-options {
    grid-template-columns: 1fr 1fr;
  }
}

.payment-option-card {
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.01);
  padding: 16px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.3s;
  position: relative;
}

.payment-option-card input[type="radio"] {
  width: auto;
  margin-top: 4px;
  accent-color: var(--primary);
}

.option-content {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.option-content i {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.option-content div {
  display: flex;
  flex-direction: column;
}

.option-content strong {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.option-content span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.payment-option-card:hover {
  background: rgba(255,255,255,0.03);
  border-color: rgba(221,107,32,0.3);
}

.payment-option-card.active {
  border-color: var(--primary);
  background: rgba(229, 62, 62, 0.05);
}

.payment-option-card.active i {
  color: var(--primary);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}

/* Security Icon in simulated card modal */
.security-icon {
  font-size: 3rem;
  margin: 10px auto 20px;
  display: block;
}

.payment-desc {
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.card-inputs {
  background: rgba(0,0,0,0.15);
  border: 1px solid var(--border-soft);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.card-input-wrapper {
  position: relative;
}

.card-input-wrapper i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.card-input-wrapper input {
  padding-left: 44px;
}

.payment-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(236, 201, 75, 0.08);
  border: 1px solid rgba(236, 201, 75, 0.2);
  color: var(--gold);
  padding: 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  text-align: left;
}

.payment-notice i {
  margin-top: 2px;
  font-size: 1rem;
}

/* Sidebar Backdrop overlay */
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.sidebar-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Toast notifications system styles */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.toast {
  background: #171923;
  border: 1px solid var(--border-soft);
  color: var(--text-primary);
  padding: 16px 24px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  min-width: 300px;
  max-width: 450px;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.toast-success {
  border-left: 4px solid var(--success);
}

.toast-success i {
  color: var(--success);
}

.toast-error {
  border-left: 4px solid var(--primary);
}

.toast-error i {
  color: var(--primary);
}

@keyframes toastSlideIn {
  from {
    transform: translateX(100px) translateY(0);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* Order status page specific styling */
.status-page-content {
  padding: 40px 20px;
}

.status-header {
  text-align: center;
  margin-bottom: 40px;
}

.status-title {
  font-size: 2.25rem;
  margin-bottom: 6px;
}

.status-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

.progress-card {
  margin-bottom: 40px;
}

/* Progress stepper */
.stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 30px;
}

.stepper::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 5%;
  right: 5%;
  height: 4px;
  background: rgba(255,255,255,0.06);
  z-index: 0;
}

.step-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20%;
  text-align: center;
}

.step-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #1a1c24;
  border: 2px solid rgba(255,255,255,0.08);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 12px;
  transition: all 0.4s;
}

.step-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.4s;
}

/* Active steps */
.step-item.active .step-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-color: var(--secondary);
  color: #fff;
  box-shadow: 0 0 15px rgba(229, 62, 62, 0.4);
}

.step-item.active .step-label {
  color: var(--text-primary);
}

/* Active connection lines between completed steps (simulated in CSS via stepper active states) */
.step-item.active ~ .step-item::after {
  background: var(--primary);
}

.demo-controls {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-soft);
  padding: 16px 20px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

@media(min-width: 768px) {
  .demo-controls {
    flex-direction: row;
    justify-content: space-between;
  }
}

.demo-controls-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.demo-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Status details layout grids */
.status-details {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 780px;
}

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

.order-items-table th, .order-items-table td {
  padding: 12px 16px;
  text-align: left;
}

.order-items-table th {
  border-bottom: 2px solid var(--border-soft);
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-family: var(--font-body);
}

.order-items-table td {
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.95rem;
}

.order-items-table tr:last-child td {
  border-bottom: none;
}

.order-pricing-summary {
  margin-top: 24px;
  border-top: 2px solid var(--border-soft);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: flex-end;
  width: 100%;
  max-width: 350px;
  margin-left: auto;
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.grand-total-row {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  border-top: 1px dashed var(--border-soft);
  padding-top: 10px;
  margin-top: 4px;
}

.details-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.details-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  border-bottom: 1px dashed rgba(255,255,255,0.03);
  padding-bottom: 8px;
}

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

.detail-label {
  color: var(--text-secondary);
}

.detail-val {
  font-weight: 500;
  text-align: right;
  max-width: 60%;
}

.badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
}

.badge-success {
  background: rgba(56, 161, 105, 0.15);
  color: var(--success);
  border: 1px solid rgba(56, 161, 105, 0.25);
}

.badge-warning {
  background: rgba(236, 201, 75, 0.15);
  color: var(--gold);
  border: 1px solid rgba(236, 201, 75, 0.25);
}

/* Simulated Live Logs Console (Terminal Style) */
.terminal-card {
  border: 1px solid #1a202c;
  background: #090a0f;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 480px;
  overflow: hidden;
}

.terminal-header {
  background: #14161f;
  border-bottom: 1px solid var(--border-soft);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.terminal-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-dots .dot.red { background-color: #ff5f56; }
.terminal-dots .dot.yellow { background-color: #ffbd2e; }
.terminal-dots .dot.green { background-color: #27c93f; }

.terminal-title {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-indicator-small {
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: 50%;
  animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.6; box-shadow: 0 0 0 0 rgba(56, 161, 105, 0.5); }
  50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 8px 2px rgba(56, 161, 105, 0.7); }
  100% { transform: scale(0.9); opacity: 0.6; box-shadow: 0 0 0 0 rgba(56, 161, 105, 0.5); }
}

.terminal-body {
  padding: 20px;
  flex-grow: 1;
  overflow-y: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.terminal-line {
  word-break: break-all;
}

.terminal-log-block {
  border-left: 2px solid rgba(255,255,255,0.05);
  padding-left: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.terminal-body .indent {
  padding-left: 16px;
}

/* Category grid rendering sizing */
.menu-grid .loading-state {
  color: var(--text-secondary);
}

/* Media Query Adaptations */
@media(max-width: 768px) {
  body {
    padding-top: 70px;
  }
  .navbar {
    height: 70px;
  }
  .nav-menu {
    display: none; /* simple collapse for demo */
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-actions {
    flex-direction: column;
  }
  .stepper {
    flex-wrap: wrap;
    gap: 20px 0;
  }
  .step-item {
    width: 50%;
  }
  .stepper::before {
    display: none;
  }
}
