/**
 * Haryali Kitchen - Custom Style & App View Theme
 * Good Food . Happy Life
 */

:root {
  --primary: #1e824c;
  --primary-dark: #166534;
  --primary-light: #22c55e;
  --primary-subtle: #f0fdf4;
  --primary-border: #bbf7d0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --bg-page: #f8fafc;
  --card-bg: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(22, 101, 52, 0.08);
  --shadow-lg: 0 10px 25px -3px rgba(22, 101, 52, 0.12);
  --radius-app: 20px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  -webkit-tap-highlight-color: transparent;
  padding-bottom: 70px; /* Room for mobile bottom tab bar */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

/* App View Containers */
.app-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Leaf Logo Icon */
.haryali-leaf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
}

/* Glassmorphism Header */
.glass-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

/* Mobile Sticky Bottom App Bar */
.mobile-app-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 50;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  padding: 6px 12px;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
  color: var(--primary);
}

.mobile-nav-item.active svg {
  stroke: var(--primary);
  transform: translateY(-2px);
}

/* Veg Dot Badge */
.veg-indicator {
  width: 16px;
  height: 16px;
  border: 1.5px solid #22c55e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  background: #ffffff;
}

.veg-indicator-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
}

/* Non-Veg Badge */
.nonveg-indicator {
  width: 16px;
  height: 16px;
  border: 1.5px solid #dc2626;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  background: #ffffff;
}

.nonveg-indicator-dot {
  width: 8px;
  height: 8px;
  background-color: #dc2626;
  border-radius: 50%;
}

/* Category Horizontal Scroll (App View) */
.category-scroll-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 12px 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-scroll-container::-webkit-scrollbar {
  display: none;
}

.category-pill {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.2s ease;
}

.category-pill:hover {
  transform: translateY(-3px);
}

.category-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: all 0.2s ease;
}

.category-pill.active .category-icon-wrapper,
.category-pill:hover .category-icon-wrapper {
  border-color: var(--primary);
  background: var(--primary-subtle);
}

/* Card Styling */
.food-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.food-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #e2e8f0;
}

/* Add Button */
.btn-add-dish {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #86efac;
  font-weight: 600;
  border-radius: 10px;
  padding: 6px 16px;
  transition: all 0.2s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-add-dish:hover {
  background-color: #166534;
  color: #ffffff;
  border-color: #166534;
}

/* Quantity Stepper */
.quantity-stepper {
  display: inline-flex;
  align-items: center;
  background: #166534;
  color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  font-weight: 600;
}

.quantity-btn {
  padding: 6px 12px;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s;
}

.quantity-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Sliding Cart Drawer */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -6px 0 24px rgba(0, 0, 0, 0.15);
  z-index: 70;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.active {
  right: 0;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.haryali-toast {
  pointer-events: auto;
  background: #1e293b;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInToast 0.3s ease forwards;
}

.haryali-toast.success {
  background: #166534;
  border-left: 4px solid #4ade80;
}

.haryali-toast.error {
  background: #991b1b;
  border-left: 4px solid #f87171;
}

@keyframes slideInToast {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Custom Scrollbar for Panel & Modals */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
