:root {
  --primary-color: #8B4513;
  --secondary-color: #D2B48C;
  --background-color: #f9f5f0;
  --text-color: #333;
  --card-bg: #fff;
  --border-color: #ddd;
  --header-bg: #fff;
  --footer-bg: #f5f5f5;
}

[data-theme="dark"] {
  --primary-color: #CD853F;
  --secondary-color: #8B7355;
  --background-color: #1a1a1a;
  --text-color: #f0f0f0;
  --card-bg: #2d2d2d;
  --border-color: #444;
  --header-bg: #2d2d2d;
  --footer-bg: #222;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.3s, color 0.3s;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  background-image: url('../images/background.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  position: relative;
}

/* Background Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(249, 245, 240, 0.9) 0%,
    rgba(210, 180, 140, 0.8) 100%
  );
  z-index: -1;
}

[data-theme="dark"] body::before {
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.9) 0%,
    rgba(45, 45, 45, 0.8) 100%
  );
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
header {
  background-color: var(--header-bg);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] header {
  background-color: rgba(45, 45, 45, 0.95);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
  background-color: var(--card-bg);
  padding: 2px;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 25px;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

nav ul li a:hover {
  background-color: var(--secondary-color);
  color: #fff;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: var(--text-color);
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.theme-toggle:hover {
  background-color: var(--secondary-color);
}

/* Authentication Links */
.auth-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 8px;
}

.auth-links .username {
  font-weight: 600;
  color: var(--text-color);
}

.login-link {
  display: inline-block;
  text-decoration: none;
  color: var(--primary-color);
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 600;
}

.login-link:hover {
  background-color: var(--secondary-color);
  color: #fff;
}

.btn-logout,
#header-logout {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.btn-logout:hover,
#header-logout:hover {
  background-color: var(--secondary-color);
  color: #fff;
  border-color: var(--secondary-color);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--text-color);
  padding: 6px 8px;
}

/* Main Content */
main {
  min-height: calc(100vh - 140px);
  padding: 30px 0;
}

.page-title {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-subtitle {
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-color);
  opacity: 0.8;
}

/* Logo Styles */
.logo-container {
  text-align: center;
  margin-bottom: 30px;
}

.main-logo {
  max-width: 300px;
  height: 300px;
  width: 300px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  background-color: var(--card-bg);
  padding: 10px;
}

.main-logo:hover {
  transform: scale(1.05);
}

/* Welcome Section */
.welcome-section {
  text-align: center;
  padding: 60px 40px;
  background-color: var(--card-bg);
  border-radius: 16px;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.welcome-section h2 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 2.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-section p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  opacity: 0.8;
}

/* Featured Section */
.featured-section {
  margin-top: 40px;
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
  font-size: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* About Us Section */
.about-section {
  margin: 40px 0;
  padding: 40px 30px;
  background-color: var(--card-bg);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-description {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  text-align: center;
  color: var(--text-color);
  opacity: 0.9;
}

.vision-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-top: 30px;
}

.vm-card {
  background-color: rgba(0, 0, 0, 0.02);
  padding: 25px;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

.vm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.vm-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.vm-card p {
  line-height: 1.7;
  color: var(--text-color);
  opacity: 0.85;
}

/* Menu Categories */
.menu-category {
  margin-bottom: 60px;
  padding: 30px;
  background-color: var(--card-bg);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.category-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
}

.category-title {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-description {
  font-size: 1.1rem;
  color: var(--text-color);
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

/* Menu Grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.menu-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.menu-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.item-image {
  height: auto;
  position: relative;
  overflow: hidden;
  background: var(--secondary-color);
}

.item-image img {
  width: 100%;
  height: auto;
}

.item-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
}

.item-details {
  padding: 20px;
}

.item-name {
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 18px;
  color: var(--text-color);
}

.item-category {
  font-size: 12px;
  color: var(--text-color);
  opacity: 0.7;
  margin: 5px 0;
  text-transform: capitalize;
}

.item-price {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 20px;
  margin: 10px 0;
  line-height: 1.4;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background-color: var(--border-color);
  color: var(--text-color);
}

.btn-secondary:hover {
  background-color: var(--secondary-color);
  color: white;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
}

.add-to-cart {
  width: 100%;
  margin-top: 10px;
  background-color: var(--primary-color);
  border: none;
  padding: 12px;
  border-radius: 6px;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-to-cart:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

/* Form Styles */
.form-container {
  max-width: 500px;
  margin: 0 auto;
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--card-bg);
  color: var(--text-color);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

/* Password toggle inside input */
.password-field {
  position: relative;
}

.password-field .password-input {
  padding-right: 42px; /* room for eye icon */
}

.toggle-password-btn {
  position: absolute;
  right: 10px;
  top: calc(60% + 8px); /* lowered to sit visually at the middle */
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 4px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text-color);
  opacity: 0.7;
}

.toggle-password-btn:hover {
  opacity: 1;
  color: var(--primary-color);
}

.form-links {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

/* Auth action area on login */
.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.link-button {
  background: transparent;
  border: none;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 0;
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.link-button:hover,
.link-button:focus {
  text-decoration: underline;
  opacity: 0.85;
}

/* Ghost (outline) button variant */
.btn-ghost {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-ghost:hover {
  background: var(--primary-color);
  color: #fff;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.5s ease-in;
}

/* Authentication Forms */
#register-form .form-group {
  margin-bottom: 15px;
}

.password-requirements {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

.form-note {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
  color: var(--text-color);
}

.form-description {
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-color);
  opacity: 0.8;
}

.validation-message {
  margin-top: 5px;
  font-size: 14px;
  font-weight: 500;
}

/* Progress Steps */
.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
}

.progress-steps::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 10%;
  right: 10%;
  height: 4px;
  background-color: var(--border-color);
  z-index: 1;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.step.active {
  opacity: 1;
}

.step-icon {
  width: 50px;
  height: 50px;
  background-color: var(--card-bg);
  border: 3px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.step.active .step-icon {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.step-label {
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 5px;
}

.step-time {
  font-size: 12px;
  color: var(--text-color);
  opacity: 0.7;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 8px;
  transition: all 0.3s;
}

.step.active .step-number {
  background-color: var(--primary-color);
  color: white;
}

.step-connector {
  flex: 1;
  height: 2px;
  background-color: var(--border-color);
  margin: 0 10px;
  align-self: center;
}

/* Messages */
.success-message {
  background-color: #d4edda;
  color: #155724;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 20px;
  text-align: center;
  border: 1px solid #c3e6cb;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 20px;
  text-align: center;
  border: 1px solid #f5c6cb;
}

/* Toast / Notification */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 4px;
  z-index: 1000;
  color: #fff;
  max-width: 320px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  animation: notifIn 0.25s ease;
}
.notification.success { background: var(--primary-color); }
.notification.error { background: #dc3545; }

@keyframes notifIn {
  from { transform: translateY(-8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes notifOut {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(-8px); opacity: 0; }
}

/* Completed button styles (used by DeliveryTracker) */
.completed-button-container { margin-top: 20px; text-align: center; }
.complete-order-btn { padding: 12px 30px; font-size: 16px; }

/* Loading State */
.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: var(--card-bg);
  margin: 5% auto;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: modalSlideIn 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--secondary-color) var(--border-color);
}

.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-track {
  background: var(--border-color);
  border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-modal {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-color);
  transition: color 0.3s;
}

.close-modal:hover {
  color: var(--primary-color);
}

.modal-content h3 {
  margin-bottom: 20px;
  color: var(--primary-color);
  text-align: center;
}

/* Modal Form Elements */
.size-options,
.burger-options {
  margin-bottom: 20px;
}

.size-option,
.burger-option {
  display: flex;
  align-items: center;
  padding: 12px;
  margin-bottom: 10px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.size-option:hover,
.burger-option:hover {
  border-color: var(--primary-color);
}

.size-option input[type="radio"],
.burger-option input[type="radio"] {
  margin-right: 10px;
}

.size-option label,
.burger-option label {
  cursor: pointer;
  font-weight: 500;
  flex-grow: 1;
}

.quantity-selector {
  margin-bottom: 25px;
}

.quantity-selector label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
}

.quantity-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.quantity-controls input {
  width: 60px;
  text-align: center;
  padding: 8px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--card-bg);
  color: var(--text-color);
  font-size: 16px;
}

.quantity-btn {
  background-color: var(--secondary-color);
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
}

.quantity-btn:hover {
  background-color: var(--primary-color);
  transform: scale(1.1);
}

.quantity {
  margin: 0 5px;
  font-weight: bold;
  min-width: 30px;
  text-align: center;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Cart Selection Styles */
.cart-item {
  display: grid;
  grid-template-columns: auto 2fr 1fr 1fr auto;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--card-bg);
  margin-bottom: 15px;
  border-radius: 12px;
  gap: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.cart-item.selected {
  border-color: var(--primary-color);
  background-color: rgba(139, 69, 19, 0.05);
}

.item-checkbox {
  display: flex;
  align-items: center;
}

.item-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.item-info h3 {
  margin-bottom: 5px;
  color: var(--text-color);
}

.item-total {
  text-align: center;
  font-weight: bold;
  color: var(--text-color);
}

.item-actions {
  display: flex;
  justify-content: flex-end;
}

.delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.delete-btn:hover {
  opacity: 1;
  background-color: rgba(255, 0, 0, 0.1);
  transform: scale(1.1);
}

.empty-cart {
  text-align: center;
  padding: 40px;
  color: var(--text-color);
  opacity: 0.7;
  font-size: 18px;
}

.cart-summary,
.order-summary {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.cart-actions {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.cart-actions .btn {
  padding: 10px 16px;
  font-size: 14px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.summary-row.summary-total {
  border-bottom: none;
  border-top: 2px solid var(--border-color);
  font-weight: bold;
  font-size: 18px;
  margin-top: 10px;
  padding-top: 15px;
}

.shipping-fee {
  color: var(--primary-color);
  font-weight: 500;
}

/* Delivery Tracking */
.tracking-section {
  margin-bottom: 40px;
}

.tracking-card {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tracking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
}

.tracking-header h3 {
  color: var(--primary-color);
  margin: 0;
}

.order-number {
  font-weight: bold;
  color: var(--text-color);
  background-color: var(--secondary-color);
  padding: 8px 16px;
  border-radius: 20px;
  color: white;
}

/* Order Details */
.order-details {
  margin-bottom: 25px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 12px;
}

.order-details h4 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.order-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.order-item:last-child {
  border-bottom: none;
}

.order-total {
  text-align: right;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px solid var(--border-color);
  font-size: 18px;
}

/* ETA Section */
.eta-section {
  margin-bottom: 25px;
}

.eta-card {
  display: flex;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 12px;
  color: white;
}

.eta-icon {
  font-size: 32px;
  margin-right: 15px;
}

.eta-label {
  font-size: 14px;
  opacity: 0.9;
}

.eta-time {
  font-size: 20px;
  font-weight: bold;
}

/* Delivery Info */
.delivery-info {
  margin-bottom: 25px;
}

.delivery-info h4 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
}

.info-label {
  font-weight: 500;
  color: var(--text-color);
  opacity: 0.8;
}

/* Order History */
.order-history {
  margin-top: 40px;
}

.order-history h2 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.order-history-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--primary-color);
}

.order-history-card.cancelled {
  border-left-color: #dc3545;
  opacity: 0.7;
}

.history-card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.order-id {
  font-weight: bold;
  color: var(--primary-color);
}

.order-date {
  color: var(--text-color);
  opacity: 0.7;
  font-size: 14px;
}

.history-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.history-item {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 14px;
}

.more-items {
  color: var(--primary-color);
  font-size: 14px;
  font-style: italic;
}

.history-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-status {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.order-status.delivered {
  background-color: #d4edda;
  color: #155724;
}

.order-status.completed {
  background-color: #cce5ff;
  color: #004085;
}

.order-status.cancelled {
  background-color: #f8d7da;
  color: #721c24;
}

.order-history-card.completed {
  border-left: 4px solid #007bff;
}

/* No Orders Message */
.no-orders-message {
  text-align: center;
  padding: 60px 20px;
}

.no-orders-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.no-orders-message h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.no-orders-message p {
  color: var(--text-color);
  opacity: 0.7;
  margin-bottom: 20px;
}

/* Payment Options */
.payment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

.payment-option {
  display: flex;
  align-items: center;
}

.payment-option input {
  margin-right: 10px;
}

/* Payment Fields */
.payment-fields {
  margin-top: 20px;
  padding: 20px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 15px;
}

.payment-note {
  margin-top: 15px;
  padding: 10px;
  background-color: rgba(52, 152, 219, 0.1);
  border-left: 3px solid var(--primary-color);
  border-radius: 4px;
}

.payment-note p {
  margin: 0;
  font-size: 14px;
  color: var(--text-color);
}

/* Admin Styles */
.add-item-header {
  text-align: right;
  margin-bottom: 30px;
}

.add-item-header .btn {
  font-size: 18px;
  padding: 15px 30px;
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

.form-actions .btn {
  min-width: 100px;
}

.price-type-section {
  margin: 15px 0;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: rgba(0,0,0,0.02);
}

.price-type-options {
  margin: 10px 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.price-type-options label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.variation-row {
  display: flex;
  gap: 10px;
  margin: 8px 0;
  align-items: center;
}

.variation-row input {
  flex: 1;
}

.add-variation-btn {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 5px;
  transition: all 0.3s ease;
}

.add-variation-btn:hover {
  background-color: var(--primary-color);
  transform: translateY(-1px);
}

.remove-variation-btn,
.remove-image-btn {
  background-color: #dc3545 !important;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.remove-variation-btn:hover,
.remove-image-btn:hover {
  background-color: #c82333 !important;
  transform: scale(1.05);
}

.category-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.category-tab {
  padding: 10px 20px;
  background-color: var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.category-tab:hover {
  background-color: var(--secondary-color);
  color: white;
}

.category-tab.active {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.category-section {
  display: none;
  animation: fadeIn 0.5s ease-in;
}

.category-section.active {
  display: block;
}

.admin-controls {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.admin-controls .btn {
  padding: 8px 16px;
  font-size: 14px;
}

.delete-btn {
  background-color: #dc3545 !important;
}

.delete-btn:hover {
  background-color: #c82333 !important;
}

/* Image Upload */
.image-upload-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.image-file-name {
  font-size: 14px;
  color: var(--text-color);
  opacity: 0.7;
}

.image-preview {
  text-align: center;
  margin-top: 10px;
  padding: 10px;
  border: 2px dashed var(--border-color);
  border-radius: 8px;
}

.image-preview img {
  max-width: 200px;
  max-height: 150px;
  border-radius: 6px;
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  padding: 30px 0;
  text-align: center;
  backdrop-filter: blur(10px);
  background-color: rgba(245, 245, 245, 0.9);
}

[data-theme="dark"] footer {
  background-color: rgba(34, 34, 34, 0.9);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 15px;
  margin: 15px 0;
}

.social-links a {
  color: var(--text-color);
  font-size: 20px;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-color);
}

/* Contact Section */
.contact-section {
  background-color: var(--footer-bg);
  padding: 18px 0;
}

.contact-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 6px 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-color);
  font-weight: 500;
}

.contact-item a {
  color: var(--primary-color);
  text-decoration: none;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--primary-color);
}

/* Staff Order Management Styles */
.staff-orders-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.order-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

.order-card.active {
  border-left-color: #28a745;
  background-color: rgba(40, 167, 69, 0.05);
}

.order-card.cancelled {
  border-left-color: #dc3545;
  opacity: 0.7;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.order-info h3 {
  margin: 0 0 5px 0;
  color: var(--primary-color);
}

.order-time {
  color: var(--text-color);
  opacity: 0.7;
  font-size: 14px;
}

.order-status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.status-placed { background-color: #ffc107; color: #000; }
.status-preparing { background-color: #17a2b8; color: #fff; }
.status-ready { background-color: #28a745; color: #fff; }
.status-pickedup { background-color: #007bff; color: #fff; }
.status-delivered { background-color: #6c757d; color: #fff; }
.status-cancelled { background-color: #dc3545; color: #fff; }

.order-items {
  margin-bottom: 20px;
}

.order-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.order-item:last-child {
  border-bottom: none;
}

.order-total {
  text-align: right;
  margin-bottom: 20px;
  padding-top: 15px;
  border-top: 2px solid var(--border-color);
  font-size: 18px;
}

.customer-info {
  background-color: rgba(0, 0, 0, 0.02);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-label {
  font-weight: 500;
  color: var(--text-color);
  opacity: 0.8;
}

.status-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.status-select {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--card-bg);
  color: var(--text-color);
  min-width: 150px;
}

.no-orders {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-color);
  opacity: 0.7;
  font-size: 18px;
}

/* Animations */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 900px) {
  .container { padding: 0 16px; }
  .header-container { padding: 12px 0; }
  nav ul { gap: 10px; }
  .logo { font-size: 22px; }
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: inline-block; }
  
  header nav { display: none; width: 100%; }
  body.nav-open header nav { display: block; }
  header nav ul { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; }
  header nav ul li { margin-left: 0; }
  header nav ul li a { display: inline-block; padding: 10px 12px; width: 100%; }
  
  .header-container { flex-direction: column; align-items: flex-start; gap: 10px; }
  nav ul { margin-top: 15px; flex-wrap: wrap; justify-content: center; }
  nav ul li { margin: 5px; }
  
  .main-logo { max-width: 200px; }
  .welcome-section { padding: 40px 20px; }
  .welcome-section h2 { font-size: 2rem; }
  
  .vision-mission { grid-template-columns: 1fr; gap: 20px; }
  .about-section { padding: 30px 20px; }
  
  .menu-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
  
  .menu-category { padding: 20px; margin-bottom: 40px; }
  .category-title { font-size: 2rem; }
  
  .tracking-header { flex-direction: column; gap: 15px; text-align: center; }
  .progress-steps { flex-direction: column; gap: 20px; }
  .progress-steps::before { display: none; }
  .step { flex-direction: row; text-align: left; gap: 15px; }
  .step-icon { margin-bottom: 0; }
  .step-info { flex: 1; }
  
  .info-item { flex-direction: column; gap: 5px; }
  .history-card-header { flex-direction: column; gap: 5px; }
  
  .cart-item { grid-template-columns: 1fr; text-align: center; gap: 10px; }
  .quantity-controls { justify-content: center; }
  .item-actions { justify-content: center; }
  .item-checkbox { justify-content: center; }
  
  .cart-actions { flex-direction: column; }
  .cart-actions .btn { width: 100%; }
  
  .modal-content { margin: 2% auto; max-height: 90vh; }
  
  .contact-item { font-size: 14px; }
  .contact-icon svg { width: 18px; height: 18px; }
  
  .category-tabs { gap: 5px; }
  .category-tab { padding: 8px 12px; font-size: 14px; }
  .variation-row { flex-direction: column; gap: 5px; }
  .variation-row input { width: 100%; }
  .admin-controls { flex-direction: column; }
  .admin-controls .btn { width: 100%; }
  
  .image-upload-container { flex-direction: column; align-items: flex-start; }
  .image-preview img { max-width: 150px; }
  
  .auth-links { display: none; }
  #header-logout { margin-left: 4px; padding: 6px 8px; }
  
  /* Staff page responsive */
  .order-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .status-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .status-select {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .main-logo { max-width: 150px; }
  .welcome-section h2 { font-size: 1.8rem; }
  .page-title { font-size: 1.4rem; }
  
  .menu-category { padding: 15px; margin-bottom: 30px; }
  .category-title { font-size: 1.8rem; }
  .menu-grid { grid-template-columns: 1fr; gap: 15px; }
  
  .modal-content { margin: 1% auto; padding: 20px; width: 95%; max-height: 95vh; }
  .modal-actions { flex-direction: column; }
  .modal-actions .btn { width: 100%; }
  
  .contact-container { flex-direction: column; align-items: flex-start; }
  .contact-item { font-size: 13px; }
  
  .category-tabs { flex-direction: column; }
  .category-tab { text-align: center; }
  .price-type-section { padding: 10px; }
  .price-type-options { flex-direction: column; gap: 10px; }
  
  body { background-attachment: scroll; }
}

/* Staff Order Management - Additional Styles */
.order-card.needs-rider {
    border-left-color: #ffc107;
    background-color: rgba(255, 193, 7, 0.05);
}

.customer-name {
    display: block;
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.7;
    margin-top: 4px;
}

.rider-info {
    background-color: rgba(40, 167, 69, 0.1);
    padding: 8px;
    border-radius: 6px;
    border-left: 3px solid #28a745;
}

.rider-assignment {
    background-color: rgba(255, 193, 7, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.rider-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--card-bg);
    color: var(--text-color);
    min-width: 200px;
    margin: 0 10px;
}

.assignment-help {
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.7;
    margin-top: 8px;
    font-style: italic;
}

.rider-assigned-notice {
    background-color: rgba(40, 167, 69, 0.1);
    padding: 10px;
    border-radius: 6px;
    color: #28a745;
    font-weight: 500;
    margin-top: 10px;
    text-align: center;
}

.status-update-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Responsive styles for staff controls */
@media (max-width: 768px) {
    .rider-assignment {
        padding: 10px;
    }
    
    .rider-select {
        min-width: auto;
        margin: 10px 0;
        width: 100%;
    }
    
    .status-update-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .status-select {
        width: 100%;
    }
}

/* Staff Order Management - Additional Styles */
.order-card.needs-rider {
    border-left-color: #ffc107;
    background-color: rgba(255, 193, 7, 0.05);
}

.customer-name {
    display: block;
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.7;
    margin-top: 4px;
}

.rider-info {
    background-color: rgba(40, 167, 69, 0.1);
    padding: 8px;
    border-radius: 6px;
    border-left: 3px solid #28a745;
}

.rider-assignment {
    background-color: rgba(255, 193, 7, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.rider-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--card-bg);
    color: var(--text-color);
    min-width: 200px;
    margin: 0 10px;
}

.assignment-help {
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.7;
    margin-top: 8px;
    font-style: italic;
}

.rider-assigned-notice {
    background-color: rgba(40, 167, 69, 0.1);
    padding: 10px;
    border-radius: 6px;
    color: #28a745;
    font-weight: 500;
    margin-top: 10px;
    text-align: center;
}

.status-update-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Admin Management Styles */
.admin-management {
    margin-top: 30px;
}

.management-section {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.management-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.user-list, .menu-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-item, .menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.user-info, .menu-info {
    flex: 1;
}

.user-name, .menu-name {
    font-weight: bold;
    color: var(--text-color);
}

.user-details, .menu-details {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.7;
    margin-top: 5px;
}

.user-role {
    display: inline-block;
    padding: 2px 8px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}

.admin-actions {
    display: flex;
    gap: 10px;
}

.add-item-form {
    background-color: rgba(0, 0, 0, 0.02);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Responsive styles for staff controls */
@media (max-width: 768px) {
    .rider-assignment {
        padding: 10px;
    }
    
    .rider-select {
        min-width: auto;
        margin: 10px 0;
        width: 100%;
    }
    
    .status-update-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .status-select {
        width: 100%;
    }
    
    .user-item, .menu-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .admin-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}