/* FoodPES Restaurant Theme - CSS Variables */
:root {
  /* FoodPES Restaurant Theme - Warm & Elegant */
  --background: hsl(45, 15%, 97%);
  --foreground: hsl(20, 14%, 12%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(20, 14%, 12%);
  --popover: hsl(0, 0%, 100%);
  --popover-foreground: hsl(20, 14%, 12%);
  
  /* Rich burgundy primary */
  --primary: hsl(355, 75%, 35%);
  --primary-foreground: hsl(0, 0%, 98%);
  --primary-hover: hsl(355, 75%, 30%);
  
  /* Warm gold secondary */
  --secondary: hsl(45, 85%, 60%);
  --secondary-foreground: hsl(20, 14%, 12%);
  --secondary-hover: hsl(45, 85%, 55%);
  
  --muted: hsl(45, 20%, 94%);
  --muted-foreground: hsl(20, 8%, 45%);
  
  /* Warm accent */
  --accent: hsl(25, 85%, 65%);
  --accent-foreground: hsl(20, 14%, 12%);
  
  --destructive: hsl(0, 84.2%, 60.2%);
  --destructive-foreground: hsl(0, 0%, 98%);
  
  --border: hsl(45, 15%, 88%);
  --input: hsl(45, 15%, 88%);
  --ring: hsl(355, 75%, 35%);
  
  /* Beautiful gradients */
  --gradient-primary: linear-gradient(135deg, hsl(355, 75%, 35%), hsl(355, 75%, 45%));
  --gradient-secondary: linear-gradient(135deg, hsl(45, 85%, 60%), hsl(45, 85%, 70%));
  --gradient-hero: linear-gradient(135deg, hsl(355, 75%, 35%), hsl(25, 85%, 50%));
  
  /* Elegant shadows */
  --shadow-elegant: 0 10px 30px -10px hsla(355, 75%, 35%, 0.2);
  --shadow-soft: 0 4px 20px -4px hsla(20, 14%, 12%, 0.1);
  --shadow-card: 0 8px 32px -8px hsla(20, 14%, 12%, 0.12);
  
  --radius: 0.75rem;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation Bar */
.navbar {
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

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

.logo-icon {
  background: var(--gradient-primary);
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.utensils-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary-foreground);
}

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

.logo-title {
  font-size: 1.5rem;
  font-weight: bold;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin: 0;
}

.cart-button {
  position: relative;
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-elegant);
  transition: all 0.3s ease;
}

.cart-button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.cart-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.cart-count {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background: var(--secondary);
  color: var(--secondary-foreground);
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}

/* Category Filter */
.category-filter {
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.category-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.category-btn {
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.category-btn:hover {
  background: var(--muted);
  box-shadow: var(--shadow-soft);
}

.category-btn.active {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-elegant);
  border: none;
}

/* Main Content */
.main-content {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

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

.menu-title {
  font-size: 1.875rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.menu-subtitle {
  color: var(--muted-foreground);
  font-size: 1rem;
}

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

.no-items {
  text-align: center;
  padding: 3rem 0;
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

/* Menu Card */
.menu-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

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

.card-image {
  position: relative;
  overflow: hidden;
  height: 12rem;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.menu-card:hover .card-image img {
  transform: scale(1.05);
}

.veg-indicator {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
}

.veg-indicator.veg {
  border-color: #10b981;
}

.veg-indicator.non-veg {
  border-color: #ef4444;
}

.veg-indicator::after {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

.veg-indicator.veg::after {
  background-color: #10b981;
}

.veg-indicator.non-veg::after {
  background-color: #ef4444;
}

.favorite-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.favorite-btn:hover {
  background: white;
}

.heart-icon {
  width: 1rem;
  height: 1rem;
  color: #6b7280;
  transition: all 0.3s ease;
}

.heart-icon.filled {
  fill: #ef4444;
  color: #ef4444;
}

.card-content {
  padding: 1rem;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--card-foreground);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaf-icon {
  width: 1rem;
  height: 1rem;
  color: #10b981;
}

.card-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.card-price {
  font-size: 1.25rem;
  font-weight: bold;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quantity-btn:hover {
  background: var(--muted);
}

.quantity-btn.primary {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  border: none;
  box-shadow: var(--shadow-elegant);
}

.quantity-btn.primary:hover {
  background: var(--primary-hover);
}

.quantity-btn.secondary {
  background: var(--gradient-secondary);
  color: var(--secondary-foreground);
}

.quantity-btn.secondary:hover {
  background: var(--secondary-hover);
}

.quantity-display {
  font-weight: 600;
  min-width: 2rem;
  text-align: center;
}

.plus-icon, .minus-icon {
  width: 0.75rem;
  height: 0.75rem;
}

/* Admin Link */
.admin-link {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 40;
}

.admin-button {
  background: var(--card);
  color: var(--foreground);
  border: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.admin-button:hover {
  background: var(--muted);
  transform: translateY(-1px);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--card);
  border-radius: var(--radius);
  max-width: 32rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-elegant);
}

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

.modal-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.shopping-bag-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted-foreground);
  padding: 0.25rem;
}

.modal-body {
  padding: 1.5rem;
}

.customer-info h4,
.order-items h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.form-group input {
  padding: 0.75rem;
  border: 1px solid var(--input);
  border-radius: 0.375rem;
  background: var(--background);
  color: var(--foreground);
  font-size: 0.875rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px hsla(355, 75%, 35%, 0.2);
}

.separator {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background: var(--muted);
  border-radius: 0.5rem;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.cart-item-details {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-item-price {
  font-weight: 600;
}

.remove-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
}

.remove-btn:hover {
  background: #fef2f2;
  color: #dc2626;
}

.trash-icon {
  width: 1rem;
  height: 1rem;
}

.order-total {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.total-amount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.125rem;
  font-weight: bold;
}

.total-price {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.order-actions {
  display: flex;
  gap: 0.75rem;
}

.clear-cart-btn,
.place-order-btn {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clear-cart-btn {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.clear-cart-btn:hover {
  background: var(--muted);
}

.place-order-btn {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  border: none;
  box-shadow: var(--shadow-elegant);
}

.place-order-btn:hover {
  background: var(--primary-hover);
}

/* Admin Styles */
.admin-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.header-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 0;
}

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

.admin-title h1 {
  font-size: 1.875rem;
  font-weight: bold;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.admin-title p {
  color: var(--muted-foreground);
  margin: 0;
}

.admin-content {
  padding: 2rem 0;
}

.orders-header {
  margin-bottom: 1.5rem;
}

.orders-header h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.orders-stats {
  color: var(--muted-foreground);
}

.orders-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.order-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.order-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.order-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.order-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
}

.order-badge.received {
  background: #3b82f6;
}

.order-badge.preparing {
  background: #eab308;
}

.order-badge.served {
  background: #10b981;
}

.order-id {
  font-weight: 600;
  margin-left: 0.5rem;
}

.order-date {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-align: right;
}

.order-content {
  padding: 1.5rem;
}

.customer-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1rem;
  background: var(--muted);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.customer-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.customer-info-icon {
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
}

.customer-info-text p:first-child {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.customer-info-text p:last-child {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

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

.order-items-list h4 {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  margin-bottom: 0.5rem;
}

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

.order-item-details {
  text-align: right;
}

.order-item-quantity {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.order-item-price {
  font-weight: 600;
}

.order-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.order-total-amount {
  font-size: 1.125rem;
  font-weight: bold;
}

.update-status-btn {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow-elegant);
  transition: all 0.3s ease;
}

.update-status-btn:hover {
  background: var(--primary-hover);
}

.no-orders {
  text-align: center;
  padding: 3rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.no-orders-icon {
  width: 4rem;
  height: 4rem;
  background: var(--muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.no-orders h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.no-orders p {
  color: var(--muted-foreground);
}

/* 404 Page */
.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
}

.not-found-content {
  text-align: center;
}

.not-found-title {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.not-found-message {
  font-size: 1.25rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.not-found-link {
  color: #3b82f6;
  text-decoration: underline;
  font-weight: 500;
}

.not-found-link:hover {
  color: #1d4ed8;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: var(--shadow-elegant);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 300px;
  animation: slideIn 0.3s ease;
}

.toast.success {
  border-left: 4px solid #10b981;
}

.toast.error {
  border-left: 4px solid #ef4444;
}

.toast-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.toast-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .menu-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .customer-info-grid {
    grid-template-columns: 1fr;
  }
  
  .order-actions {
    flex-direction: column;
  }
  
  .admin-button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }
  
  .category-buttons {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
  
  .category-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

