/* ══════════════════════════════════════════════
   SPICY SPARK — Main Stylesheet v2
   Brand: #C0392B (red), #F4A261 (orange), Dark theme
══════════════════════════════════════════════ */

:root {
  --primary:       #C0392B;
  --primary-dark:  #922b21;
  --primary-light: #2a1a18;
  --accent:        #F4A261;
  --accent-dark:   #E85D04;
  --text-dark:     #f0f0f0;
  --text-muted:    #888;
  --bg:            #121212;
  --card-bg:       #1e1e1e;
  --border:        #2a2a2a;
  --white:         #1e1e1e;
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     16px;
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:     0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.5);
}

/* ─── Base ─── */
*, *::before, *::after { box-sizing: border-box; }

body {
  background-color: var(--bg);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  margin: 0;
}

a { text-decoration: none; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb { background: #C0392B; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #E85D04; }

/* ══════════════════════════════════════════════
   DROPDOWN MENU
══════════════════════════════════════════════ */
.ss-food-dropdown .ss-simple-menu {
  min-width: 260px;
  max-height: 480px;
  overflow-y: auto;
  border-radius: var(--radius-md) !important;
  border: 1px solid #333 !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 8px !important;
  background: #1e1e1e;
  margin-top: 8px !important;
}

.ss-simple-menu::-webkit-scrollbar { width: 4px; }
.ss-simple-menu::-webkit-scrollbar-thumb { background: #C0392B; border-radius: 10px; }

.ss-simple-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
  white-space: nowrap;
}
.ss-simple-item:hover {
  background: rgba(232,93,4,0.15);
  color: #F4A261;
  padding-left: 16px;
}

.ss-simple-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(192,57,43,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.15s;
}
.ss-simple-item:hover .ss-simple-icon {
  background: rgba(232,93,4,0.3);
  transform: scale(1.08);
}

.ss-simple-sep {
  height: 1px;
  background: #2a2a2a;
  margin: 6px 8px;
}

.ss-drop-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #888;
  padding: 8px 12px 4px;
}

/* ══════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, #1a0505 0%, #3d0e0e 50%, #C0392B 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 52px 36px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(192,57,43,0.3);
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: rgba(232,93,4,0.08);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -40px; left: 40px;
  width: 140px; height: 140px;
  background: rgba(192,57,43,0.06);
  border-radius: 50%;
}

/* ══════════════════════════════════════════════
   RESTAURANT CARDS
══════════════════════════════════════════════ */
.restaurant-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  border: 1px solid #2a2a2a !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  background: #1e1e1e;
}
.restaurant-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(192,57,43,0.2) !important;
  border-color: rgba(192,57,43,0.3) !important;
}
.restaurant-card .card-img-top {
  height: 185px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.restaurant-card:hover .card-img-top {
  transform: scale(1.03);
}

.open-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(25,135,84,0.15);
  color: #4ade80;
}
.open-pill::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ══════════════════════════════════════════════
   MENU CARDS
══════════════════════════════════════════════ */
.menu-card {
  border: 1px solid #2a2a2a !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: box-shadow 0.2s, border-color 0.2s;
  background: #1e1e1e;
}
.menu-card:hover {
  box-shadow: 0 4px 20px rgba(192,57,43,0.15) !important;
  border-color: rgba(192,57,43,0.25) !important;
}
.menu-card img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.btn-add-cart {
  background: rgba(192,57,43,0.15);
  color: #F4A261;
  border: 1.5px solid rgba(192,57,43,0.4);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 16px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-add-cart:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ══════════════════════════════════════════════
   CART
══════════════════════════════════════════════ */
.cart-item {
  border-bottom: 1px solid #2a2a2a;
  padding: 12px 0;
  transition: background 0.15s;
}
.cart-item:last-child { border-bottom: none; }

.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  background: transparent;
  color: #F4A261;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s, transform 0.1s;
  line-height: 1;
}
.qty-btn:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

/* ══════════════════════════════════════════════
   ORDER STATUS TIMELINE
══════════════════════════════════════════════ */
.status-timeline {
  position: relative;
  padding-left: 32px;
}
.status-timeline::before {
  content: '';
  position: absolute;
  left: 11px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), #2a2a2a);
}
.status-step {
  position: relative;
  margin-bottom: 22px;
}
.status-step .dot {
  position: absolute;
  left: -25px; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2.5px solid #333;
  background: #1e1e1e;
  transition: all 0.3s;
}
.status-step.done .dot {
  background: #4ade80;
  border-color: #4ade80;
  box-shadow: 0 0 0 3px rgba(74,222,128,0.15);
}
.status-step.active .dot {
  background: var(--primary);
  border-color: var(--primary);
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(192,57,43,0.4); }
  50%      { box-shadow: 0 0 0 7px rgba(192,57,43,0); }
}

/* ══════════════════════════════════════════════
   DASHBOARD STAT CARDS
══════════════════════════════════════════════ */
.stat-card {
  border-radius: var(--radius-md) !important;
  border: 1px solid #2a2a2a !important;
  background: #1e1e1e;
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(192,57,43,0.15) !important;
  border-color: rgba(192,57,43,0.3) !important;
}
.stat-card .icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}

/* ══════════════════════════════════════════════
   TABLES
══════════════════════════════════════════════ */
.table {
  border-collapse: separate;
  border-spacing: 0;
  color: rgba(255,255,255,0.82);
}
.table th {
  background: #252525;
  font-weight: 600;
  font-size: 13px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 2px solid #333 !important;
}
.table td {
  vertical-align: middle;
  font-size: 14px;
  border-bottom: 1px solid #252525 !important;
}
.table-hover tbody tr:hover {
  background-color: rgba(192,57,43,0.07);
}

/* ══════════════════════════════════════════════
   BADGES
══════════════════════════════════════════════ */
.badge {
  font-size: 0.75em;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 20px;
  letter-spacing: 0.2px;
}

/* ══════════════════════════════════════════════
   FORMS
══════════════════════════════════════════════ */
.form-control, .form-select {
  border-radius: var(--radius-sm) !important;
  border: 1.5px solid #333 !important;
  font-size: 14px;
  padding: 9px 14px;
  background: #252525 !important;
  color: rgba(255,255,255,0.9) !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.2) !important;
  outline: none;
  background: #2a2a2a !important;
}
.form-control::placeholder { color: #666 !important; }
.form-label {
  font-size: 13px;
  font-weight: 600;
  color: #aaa;
  margin-bottom: 5px;
}

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.btn {
  border-radius: var(--radius-sm) !important;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s !important;
}
.btn-danger {
  background: linear-gradient(135deg, #C0392B, #E85D04) !important;
  border-color: #C0392B !important;
  color: #fff !important;
}
.btn-danger:hover {
  background: linear-gradient(135deg, #922b21, #C0392B) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(192,57,43,0.4);
}
.btn-outline-danger {
  border-color: var(--primary) !important;
  color: #F4A261 !important;
  background: transparent !important;
}
.btn-outline-danger:hover {
  background: linear-gradient(135deg, #C0392B, #E85D04) !important;
  color: #fff !important;
}

/* ══════════════════════════════════════════════
   CARDS — generic
══════════════════════════════════════════════ */
.card {
  border-radius: var(--radius-md) !important;
  border: 1px solid #2a2a2a !important;
  background: #1e1e1e !important;
  color: rgba(255,255,255,0.82);
}
.card.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.card.shadow    { box-shadow: var(--shadow-md) !important; }
.card-title, .card-text { color: rgba(255,255,255,0.82); }

/* ══════════════════════════════════════════════
   IMAGE PLACEHOLDER
══════════════════════════════════════════════ */
.img-placeholder {
  background: linear-gradient(135deg, #1a1a1a, #252525);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C0392B;
  font-size: 2.2rem;
}

/* ══════════════════════════════════════════════
   TOAST NOTIFICATION
══════════════════════════════════════════════ */
#fd-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, var(--primary), var(--accent-dark));
  color: white;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  z-index: 9999;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transition: opacity 0.35s ease, transform 0.35s ease;
  max-width: 300px;
}

/* ══════════════════════════════════════════════
   ALERT FLASH MESSAGES
══════════════════════════════════════════════ */
.alert {
  border-radius: var(--radius-md) !important;
  border: none !important;
  font-size: 14px;
  font-weight: 500;
}
.alert-success { background: rgba(74,222,128,0.1); color: #4ade80; border: 1px solid rgba(74,222,128,0.2) !important; }
.alert-danger  { background: rgba(192,57,43,0.15); color: #f87171; border: 1px solid rgba(192,57,43,0.3) !important; }
.alert-warning { background: rgba(244,162,97,0.1); color: #F4A261; border: 1px solid rgba(244,162,97,0.2) !important; }
.alert-info    { background: rgba(59,130,246,0.1); color: #60a5fa; border: 1px solid rgba(59,130,246,0.2) !important; }

/* ══════════════════════════════════════════════
   STICKY CART SIDEBAR
══════════════════════════════════════════════ */
.cart-sidebar {
  position: sticky;
  top: 80px;
  border-radius: var(--radius-md);
  background: #1e1e1e;
  box-shadow: var(--shadow-md);
  border: 1px solid #2a2a2a;
  padding: 20px;
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
footer {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%) !important;
  border-top: 2px solid #C0392B !important;
  margin-top: 60px !important;
}
footer p { font-size: 13px; color: #888; }
footer a { color: #F4A261 !important; }
footer a:hover { color: #fff !important; }

/* ══════════════════════════════════════════════
   SEARCH BAR
══════════════════════════════════════════════ */
.search-wrap .input-group {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.search-wrap .form-control {
  border-right: none !important;
  background: #252525 !important;
}
.search-wrap .btn {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
}

/* ══════════════════════════════════════════════
   NORMAL DROPDOWN (profile etc)
══════════════════════════════════════════════ */
.normal-drop {
  background: #1e1e1e !important;
  border: 1px solid #333 !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 6px !important;
  min-width: 160px;
}
.normal-drop .dropdown-item {
  border-radius: var(--radius-sm);
  font-size: 14px;
  padding: 8px 12px;
  color: rgba(255,255,255,0.82);
  transition: background 0.15s;
}
.normal-drop .dropdown-item:hover {
  background: rgba(232,93,4,0.15);
  color: #F4A261;
}

/* ══════════════════════════════════════════════
   LOADING SPINNER
══════════════════════════════════════════════ */
.spinner-sm { width: 1rem; height: 1rem; }

/* ══════════════════════════════════════════════
   SECTION HEADINGS
══════════════════════════════════════════════ */
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 40px; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 10px;
}

/* ══════════════════════════════════════════════
   CATEGORY FILTER PILLS
══════════════════════════════════════════════ */
.cat-pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid #333;
  color: #888;
  cursor: pointer;
  transition: all 0.2s;
  background: #1e1e1e;
  text-decoration: none;
}
.cat-pill:hover, .cat-pill.active {
  background: linear-gradient(135deg, #C0392B, #E85D04);
  border-color: #C0392B;
  color: white;
  box-shadow: 0 3px 10px rgba(192,57,43,0.35);
}

/* ══════════════════════════════════════════════
   RESPONSIVE TWEAKS
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero { padding: 32px 20px; }
  .hero h1 { font-size: 1.8rem; }
  .stat-card .icon { width: 40px; height: 40px; font-size: 18px; }
  .restaurant-card .card-img-top { height: 150px; }
  .section-title { font-size: 17px; }
}

@media (max-width: 576px) {
  .cart-sidebar { position: static; }
}