/* FarmSource - Sophisticated Earthy Theme with Logo Integration */

/* ========== Color Variables ========== */
:root {
  /* Primary Brand Colors from Logo */
  --brand-green: #50870D;
  --brand-blue: #1A4A82;
  
  /* Sophisticated Earthy Palette */
  --sage-green: #9CAF88;
  --sage-light: #B8C5A8;
  --sage-lighter: #D4E0C8;
  --sage-lightest: #F2F5F0;
  
  --terracotta: #C65D07;
  --terracotta-light: #E8945F;
  --terracotta-lighter: #F4C2A1;
  
  --warm-beige: #F5F1EB;
  --soft-brown: #8B7765;
  --deep-cream: #FBF8F3;
  --muted-gold: #D4AF37;
  
  /* Neutral Sophisticated Tones */
  --neutral-100: #FAFAF9;
  --neutral-200: #F5F4F2;
  --neutral-300: #E8E6E3;
  --neutral-400: #D1CFC9;
  --neutral-500: #9B9892;
  --neutral-600: #6B6862;
  --neutral-700: #4A4640;
  --neutral-800: #2D2B26;
  --neutral-900: #1C1B17;
  
  /* Accent Colors */
  --accent-gold: #B8860B;
  --accent-gold-light: #DAA520;
  --red-brick: #A0522D;
  --red-brick-light: #CD853F;
}

/* Farm Portal CSS Variables */
:root {
  --farm-primary: #2563eb;
  --farm-secondary: #10b981;
}

/* ========== Base Styles ========== */
body { 
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin: 0;
  line-height: 1.6;
  color: var(--neutral-800);
  background: linear-gradient(135deg, var(--warm-beige) 0%, var(--deep-cream) 100%);
}

/* ========== Mode Switcher Styles ========== */
.mode-switcher-container {
  display: flex;
  gap: 16px;
  background: white;
  padding: 8px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--neutral-200);
}

.mode-btn {
  flex: 1;
  border: none;
  background: transparent;
  border-radius: 16px;
  padding: 20px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  outline: none;
}

.mode-btn-active {
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--sage-green) 100%);
  color: white;
  box-shadow: 0 6px 20px rgba(80, 135, 13, 0.25);
}

.mode-btn-active-blue {
  background: linear-gradient(135deg, var(--brand-blue) 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 6px 20px rgba(26, 74, 130, 0.25);
}

.mode-btn-inactive {
  background: var(--neutral-100);
  color: var(--neutral-600);
  border: 1px solid var(--neutral-200);
}

.mode-btn-inactive:hover {
  background: var(--neutral-200);
  color: var(--neutral-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mode-btn-content {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.mode-btn-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.mode-btn-active .mode-btn-icon {
  color: white;
}

.mode-btn-inactive .mode-btn-icon {
  color: var(--brand-green);
}

/* Marketplace button styles - always blue */
.mode-btn-marketplace {
  flex: 1;
  border: none;
  border-radius: 16px;
  padding: 20px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  outline: none;
}

.mode-btn-marketplace-active {
  background: linear-gradient(135deg, var(--brand-blue) 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 6px 20px rgba(26, 74, 130, 0.25);
}

.mode-btn-marketplace-inactive {
  background: rgba(26, 74, 130, 0.1);
  color: var(--brand-blue);
  border: 1px solid rgba(26, 74, 130, 0.2);
}

.mode-btn-marketplace-inactive:hover {
  background: rgba(26, 74, 130, 0.15);
  color: var(--brand-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 74, 130, 0.15);
}

.mode-btn-marketplace .mode-btn-icon {
  color: currentColor;
}

.mode-btn-text {
  flex: 1;
}

.mode-btn-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.mode-btn-subtitle {
  font-size: 14px;
  margin: 0;
  opacity: 0.85;
  line-height: 1.3;
}

.mode-btn-active .mode-btn-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.mode-btn-inactive .mode-btn-subtitle {
  color: var(--neutral-500);
}

/* ========== Mode Content Styles ========== */
.mode-content {
  transition: all 0.15s ease-in-out;
}

.mode-content-active {
  opacity: 1;
  display: block;
  transform: translateY(0);
}

.mode-content-hidden {
  opacity: 0;
  display: none;
  transform: translateY(-10px);
}

/* ========== AI Mode Container ========== */
.ai-mode-container {
  background: 
    radial-gradient(circle at 30% 20%, rgba(120, 140, 100, 0.5) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(60, 100, 8, 0.4) 0%, transparent 50%),
    linear-gradient(135deg, 
      rgba(35, 60, 5, 0.92) 0%,
      rgba(60, 100, 8, 0.88) 25%,
      rgba(45, 80, 12, 0.85) 50%,
      rgba(30, 55, 8, 0.82) 75%,
      rgba(35, 60, 5, 0.78) 100%
    );
  backdrop-filter: blur(24px) saturate(180%) contrast(120%);
  -webkit-backdrop-filter: blur(24px) saturate(180%) contrast(120%);
  border-radius: 28px;
  padding: 48px 32px;
  box-shadow: 
    0 40px 80px rgba(35, 60, 5, 0.3),
    0 20px 40px rgba(60, 100, 8, 0.25),
    0 10px 20px rgba(45, 80, 12, 0.2),
    0 4px 8px rgba(30, 55, 8, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.25),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  overflow: hidden;
}

.ai-mode-container::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: 
    linear-gradient(135deg, 
      rgba(255, 255, 255, 0.6) 0%,
      rgba(120, 140, 100, 0.5) 25%,
      rgba(60, 100, 8, 0.3) 50%,
      rgba(120, 140, 100, 0.4) 75%,
      rgba(255, 255, 255, 0.5) 100%
    );
  border-radius: 30px;
  z-index: -1;
}

.ai-mode-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.2) 0%, transparent 30%),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.15) 0%, transparent 35%),
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.1) 0%, transparent 25%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.05) 0%, transparent 60%),
    repeating-linear-gradient(90deg, 
      transparent 0px, 
      rgba(255, 255, 255, 0.02) 1px, 
      transparent 2px, 
      transparent 4px
    );
  mix-blend-mode: overlay;
  pointer-events: none;
}

.ai-mode-container > * {
  position: relative;
  z-index: 1;
}

/* ========== Marketplace Mode Container ========== */
.marketplace-mode-container {
  background: 
    radial-gradient(circle at 30% 20%, rgba(70, 130, 200, 0.5) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(15, 50, 90, 0.4) 0%, transparent 50%),
    linear-gradient(135deg, 
      rgba(10, 40, 80, 0.92) 0%,
      rgba(15, 50, 90, 0.88) 25%,
      rgba(20, 60, 110, 0.85) 50%,
      rgba(25, 70, 130, 0.82) 75%,
      rgba(10, 40, 80, 0.78) 100%
    );
  backdrop-filter: blur(24px) saturate(180%) contrast(120%);
  -webkit-backdrop-filter: blur(24px) saturate(180%) contrast(120%);
  border-radius: 28px;
  padding: 48px 32px;
  box-shadow: 
    0 40px 80px rgba(10, 40, 80, 0.3),
    0 20px 40px rgba(15, 50, 90, 0.25),
    0 10px 20px rgba(20, 60, 110, 0.2),
    0 4px 8px rgba(25, 70, 130, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.25),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  overflow: hidden;
}

.marketplace-mode-container::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: 
    linear-gradient(135deg, 
      rgba(255, 255, 255, 0.6) 0%,
      rgba(70, 130, 200, 0.5) 25%,
      rgba(15, 50, 90, 0.3) 50%,
      rgba(70, 130, 200, 0.4) 75%,
      rgba(255, 255, 255, 0.5) 100%
    );
  border-radius: 30px;
  z-index: -1;
}

.marketplace-mode-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.2) 0%, transparent 30%),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.15) 0%, transparent 35%),
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.1) 0%, transparent 25%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.05) 0%, transparent 60%),
    repeating-linear-gradient(90deg, 
      transparent 0px, 
      rgba(255, 255, 255, 0.02) 1px, 
      transparent 2px, 
      transparent 4px
    );
  mix-blend-mode: overlay;
  pointer-events: none;
}

.marketplace-mode-container > * {
  position: relative;
  z-index: 1;
}

/* ========== Enhanced Frosted Glass Texture ========== */
.ai-mode-container, .marketplace-mode-container {
  position: relative;
}

.ai-mode-container:before, .marketplace-mode-container:before {
  filter: blur(0.5px);
}

/* Add subtle frosted texture with CSS pattern */
.ai-mode-container .mode-content, .marketplace-mode-container .mode-content {
  position: relative;
}

/* Enhanced glass lighting effect */
@keyframes glass-shimmer {
  0% {
    transform: translateX(-100%) skewX(-15deg);
  }
  100% {
    transform: translateX(200%) skewX(-15deg);
  }
}

.ai-mode-container::after, .marketplace-mode-container::after {
  animation: glass-shimmer 8s ease-in-out infinite;
}

/* Responsive adjustments for mode switcher */
@media (max-width: 768px) {
  .mode-switcher-container {
    flex-direction: column;
    gap: 8px;
  }
  
  .mode-btn {
    padding: 16px 20px;
  }
  
  .mode-btn-content {
    gap: 12px;
  }
  
  .mode-btn-icon {
    width: 24px;
    height: 24px;
  }
  
  .mode-btn-title {
    font-size: 16px;
  }
  
  .mode-btn-subtitle {
    font-size: 13px;
  }
  
  .ai-mode-container {
    padding: 32px 24px;
    border-radius: 24px;
  }
  
  .marketplace-mode-container {
    padding: 32px 24px;
    border-radius: 24px;
  }
}

/* ========== Header Design ========== */
header {
  position: relative;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--neutral-200);
  z-index: 20;
  height: 120px;
  overflow: visible;
}

header .max-w-7xl {
  height: 120px;
  display: flex;
  align-items: center;
  padding: 0 !important;
}

header .flex.items-center.justify-between {
  height: 100%;
  width: 100%;
  position: relative;
}

/* ========== Logo Styles ========== */
.logo-container {
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 30;
  position: relative;
  /* Constrain clickable area */
  width: auto;
  height: 80px;
  overflow: visible;
}

.logo-container:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.logo-main {
  height: 80px; /* Reduced from 240px to fit properly */
  width: auto;
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  /* Center the logo within the container */
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}

.logo-small {
  height: 28px;
  width: auto;
}

.logo-large {
  height: 48px;
  width: auto;
}

.logo-login {
  height: 200px;
  width: auto;
  max-width: 100%;
}

/* Login page specific logo container */
.login-page .logo-container {
  width: auto;
  height: auto;
  max-width: 280px;
  overflow: visible;
}

/* ========== Updated Gradient Backgrounds ========== */
.gradient-bg {
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--sage-green) 100%);
}

.gradient-bg-secondary {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--neutral-600) 100%);
}

.gradient-bg-accent {
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--red-brick) 100%);
}

/* ========== Adaptive Food Selection Styles ========== */
.food-item {
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.food-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.food-item.selected {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.food-item.dragging {
  transform: rotate(5deg) scale(1.05);
  z-index: 1000;
}

.drop-zone {
  position: relative;
  transition: all 0.3s ease;
}

.drop-zone.drag-over {
  border-color: #3B82F6 !important;
  background-color: rgba(59, 130, 246, 0.05) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#drop-indicator {
  backdrop-filter: blur(2px);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

.suggestion-pill {
  position: relative;
  overflow: hidden;
}

.suggestion-pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transition: left 0.5s;
}

.suggestion-pill:hover::before {
  left: 100%;
}

/* Mode toggle animations */
.mode-toggle button {
  position: relative;
  overflow: hidden;
}

/* Smart suggestions enhancement */
.suggestion-pill {
  backdrop-filter: blur(10px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .grid.lg\\:grid-cols-4 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .food-item {
    padding: 1rem;
  }
}

/* ========== Comprehensive Color Override Classes ========== */
/* Background Colors */
.bg-blue-50, .bg-sky-50 { background-color: var(--sage-lightest) !important; }
.bg-blue-100, .bg-sky-100 { background-color: var(--sage-lighter) !important; }
.bg-blue-600 { background-color: var(--brand-green) !important; }
.bg-blue-700 { background-color: #3D6A09 !important; }
.bg-green-600 { background-color: var(--brand-green) !important; }
.bg-green-700 { background-color: #3D6A09 !important; }

/* Text Colors */
.text-blue-600 { color: var(--brand-blue) !important; }
.text-blue-700 { color: #15396B !important; }
.text-blue-800 { color: var(--neutral-700) !important; }
.text-green-600 { color: var(--brand-green) !important; }
.text-green-700 { color: #3D6A09 !important; }
.text-green-800 { color: var(--neutral-700) !important; }

/* Border Colors */
.border-blue-100, .border-sky-100 { border-color: var(--sage-lighter) !important; }
.border-blue-200, .border-sky-200 { border-color: var(--sage-light) !important; }
.border-green-200 { border-color: var(--sage-light) !important; }

/* Hover States */
.hover\:bg-blue-700:hover { background-color: #3D6A09 !important; }
.hover\:bg-green-700:hover { background-color: #3D6A09 !important; }
.hover\:text-blue-500:hover { color: var(--brand-blue) !important; }
.hover\:text-blue-800:hover { color: var(--neutral-700) !important; }
.hover\:text-green-500:hover { color: var(--brand-green) !important; }
.hover\:text-green-800:hover { color: var(--neutral-700) !important; }

/* Focus States */
.focus\:ring-blue-500:focus, .focus\:ring-green-500:focus { 
  --tw-ring-color: var(--sage-green) !important; 
  box-shadow: 0 0 0 3px rgba(156, 175, 136, 0.3) !important;
}
.focus\:border-blue-500:focus, .focus\:border-green-500:focus { 
  border-color: var(--sage-green) !important; 
}

/* ========== Enhanced Component Styles ========== */
.card-elegant {
  background: var(--neutral-100);
  border: 1px solid var(--neutral-300);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.card-elegant:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--sage-green) 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(80, 135, 13, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(80, 135, 13, 0.3);
  background: linear-gradient(135deg, #5A9710 0%, #A8BA94 100%);
}

.btn-secondary {
  background: var(--neutral-100);
  color: var(--neutral-700);
  border: 1px solid var(--neutral-300);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--neutral-200);
  border-color: var(--neutral-400);
  transform: translateY(-1px);
}

/* ========== Form Enhancements ========== */
input, textarea, select {
  border: 1px solid var(--neutral-300) !important;
  background: var(--neutral-100) !important;
  color: var(--neutral-800) !important;
  transition: all 0.3s ease !important;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--sage-green) !important;
  box-shadow: 0 0 0 3px rgba(156, 175, 136, 0.2) !important;
  background: white !important;
}

/* ========== Results Processing Animation ========== */
.results-item-card.processing {
  animation: processingPulse 1.5s ease-in-out infinite;
  border: 2px solid var(--brand-green);
  box-shadow: 0 0 20px rgba(80, 135, 13, 0.3);
}

/* ========== Price Display Fix ========== */
/* Ensure price containers have enough space and don't get squeezed by flex layout */
.results-item-grid .text-right {
  flex-shrink: 0;
  min-width: 85px;
}

/* Ensure price text doesn't wrap or get cut off */
[id^="price-"] {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  display: block;
}

/* Ensure the main flex container properly contains elements */
.results-item-card > div:first-child {
  width: 100%;
}

@keyframes processingPulse {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
    box-shadow: 0 0 20px rgba(80, 135, 13, 0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(80, 135, 13, 0.5);
  }
}

/* ========== Additional Color Overrides ========== */
/* Ensure all blue/green elements use our new colors */
.bg-blue-500 { background-color: var(--brand-green) !important; }
.bg-green-500 { background-color: var(--brand-green) !important; }
.text-blue-500 { color: var(--brand-blue) !important; }
.text-green-500 { color: var(--brand-green) !important; }

/* Button overrides */
button.bg-blue-600, button.bg-green-600 { 
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--sage-green) 100%) !important; 
}
button.bg-blue-600:hover, button.bg-green-600:hover { 
  background: linear-gradient(135deg, #5A9710 0%, #A8BA94 100%) !important; 
}

/* Background gradient overrides */
.bg-gradient-to-br.from-blue-50.to-sky-100 {
  background: linear-gradient(135deg, var(--warm-beige) 0%, var(--deep-cream) 100%) !important;
}

/* ========== Specific Element Overrides ========== */
/* All buttons with blue/green backgrounds */
button[class*="bg-blue-"], button[class*="bg-green-"] {
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--sage-green) 100%) !important;
}

/* All links with blue/green text */
a[class*="text-blue-"], a[class*="text-green-"] {
  color: var(--brand-blue) !important;
}

/* All borders with blue/green */
[class*="border-blue-"], [class*="border-green-"] {
  border-color: var(--sage-light) !important;
}

/* All backgrounds with blue/green */
[class*="bg-blue-"], [class*="bg-green-"] {
  background-color: var(--sage-lightest) !important;
}

/* ========== Sophisticated Button System ========== */

/* Button Color Variables */
:root {
  /* Professional Button Colors */
  --btn-primary-transaction: #B8651F;
  --btn-primary-transaction-hover: #C6731F;
  --btn-primary-transaction-shadow: 0 3px 8px rgba(184, 101, 31, 0.2);
  --btn-primary-transaction-hover-shadow: 0 4px 12px rgba(184, 101, 31, 0.25);
  
  --btn-primary-action: #50870D;
  --btn-primary-action-hover: #5A9710;
  --btn-primary-action-shadow: 0 3px 8px rgba(80, 135, 13, 0.2);
  --btn-primary-action-hover-shadow: 0 4px 12px rgba(80, 135, 13, 0.25);
  
  --btn-secondary: #F5F1EB;
  --btn-secondary-hover: #EFEBE4;
  --btn-secondary-shadow: 0 2px 6px rgba(139, 119, 101, 0.1);
  --btn-secondary-hover-shadow: 0 3px 8px rgba(139, 119, 101, 0.15);
  
  --btn-navigation: #1A4A82;
  --btn-navigation-hover: #215098;
  --btn-navigation-shadow: 0 3px 8px rgba(26, 74, 130, 0.2);
  --btn-navigation-hover-shadow: 0 4px 12px rgba(26, 74, 130, 0.25);
  
  /* Sophisticated Text Colors */
  --btn-text-primary: #FEFCF8;
  --btn-text-secondary: #50870D;
  --btn-text-navigation: #FEFCF8;
}

/* Base Button Styles */
.btn-sophisticated {
  font-weight: 600;
  letter-spacing: 0.025em;
  border: none;
  border-radius: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  position: relative;
  text-decoration: none;
  line-height: 1.2;
}

.btn-sophisticated:hover {
  transform: translateY(-1px);
}

.btn-sophisticated:active {
  transform: translateY(0);
}

.btn-sophisticated:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn-sophisticated:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(80, 135, 13, 0.3);
}

.btn-primary-transaction:focus {
  box-shadow: var(--btn-primary-transaction-shadow), 0 0 0 3px rgba(198, 93, 7, 0.3);
}

.btn-navigation:focus {
  box-shadow: var(--btn-navigation-shadow), 0 0 0 3px rgba(26, 74, 130, 0.3);
}

.btn-secondary:focus {
  box-shadow: var(--btn-secondary-shadow), 0 0 0 3px rgba(80, 135, 13, 0.3);
}

/* Primary Transaction Buttons (Place Order & Pay) */
.btn-primary-transaction {
  background: var(--btn-primary-transaction);
  color: var(--btn-text-primary);
  box-shadow: var(--btn-primary-transaction-shadow);
  padding: 1rem 3rem;
  font-size: 1.125rem;
  border-radius: 1rem;
}

.btn-primary-transaction:hover:not(:disabled) {
  background: var(--btn-primary-transaction-hover);
  box-shadow: var(--btn-primary-transaction-hover-shadow);
}

/* Primary Action Buttons (Add to Cart) */
.btn-primary-action {
  background: var(--btn-primary-action);
  color: var(--btn-text-primary);
  box-shadow: var(--btn-primary-action-shadow);
  padding: 1rem 3rem;
  font-size: 1.125rem;
  border-radius: 1rem;
}

.btn-primary-action:hover:not(:disabled) {
  background: var(--btn-primary-action-hover);
  box-shadow: var(--btn-primary-action-hover-shadow);
}

/* Secondary Buttons (New Meal Plan) */
.btn-secondary {
  background: var(--btn-secondary);
  color: var(--btn-text-secondary);
  box-shadow: var(--btn-secondary-shadow);
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border: 1px solid var(--sage-light);
  font-weight: 500;
  letter-spacing: 0.015em;
}

.btn-secondary:hover:not(:disabled) {
  background: var(--btn-secondary-hover);
  box-shadow: var(--btn-secondary-hover-shadow);
  border-color: var(--brand-green);
}

/* Navigation Buttons (View Order Details) */
.btn-navigation {
  background: var(--btn-navigation);
  color: var(--btn-text-navigation);
  box-shadow: var(--btn-navigation-shadow);
  padding: 1rem 3rem;
  font-size: 1.125rem;
  border-radius: 1rem;
}

.btn-navigation:hover:not(:disabled) {
  background: var(--btn-navigation-hover);
  box-shadow: var(--btn-navigation-hover-shadow);
}

/* Icon spacing within buttons */
.btn-sophisticated i {
  margin-right: 0.75rem;
  opacity: 0.9;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.btn-secondary i {
  margin-right: 0.5rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

/* ========== Utility Classes ========== */
.text-brand-green { color: var(--brand-green); }
.text-brand-blue { color: var(--brand-blue); }
.text-sage { color: var(--sage-green); }
.text-terracotta { color: var(--terracotta); }
.text-gold { color: var(--muted-gold); }

.bg-brand-green { background-color: var(--brand-green); }
.bg-brand-blue { background-color: var(--brand-blue); }
.bg-sage { background-color: var(--sage-green); }
.bg-sage-light { background-color: var(--sage-light); }
.bg-sage-lightest { background-color: var(--sage-lightest); }

/* ========== Legacy Support ========== */
label { display: block; margin-top: 10px; color: var(--neutral-700); font-weight: 500; }
button { margin-top: 10px; padding: 8px 16px; }

/* ========== Modern Modal Components ========== */
.form-group-modern {
    margin-bottom: 0;
}

.form-label-modern {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    letter-spacing: 0.025em;
}

.form-input-modern {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #1f2937;
    background-color: #ffffff;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.form-input-modern:focus {
    outline: none;
    border-color: #059669;
    background-color: #f9fafb;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1), 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.form-input-modern::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.form-input-modern[type="number"] {
    -moz-appearance: textfield;
}

.form-input-modern[type="number"]::-webkit-outer-spin-button,
.form-input-modern[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Modern Button Styles */
.btn-primary-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    min-height: 3rem;
    text-decoration: none;
}

.btn-primary-modern:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.15), 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary-modern:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.btn-secondary-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    background: #ffffff;
    color: #6b7280;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    min-height: 3rem;
    text-decoration: none;
}

.btn-secondary-modern:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #4b5563;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.btn-secondary-modern:active {
    transform: translateY(0);
    background: #f3f4f6;
}

/* Modal Animation */
#add-modal .relative {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile Optimizations */
@media (max-width: 640px) {
    .form-input-modern {
        padding: 1rem 0.875rem;
        font-size: 1rem; /* Prevents zoom on iOS */
    }
    
    .btn-primary-modern,
    .btn-secondary-modern {
        padding: 1.125rem 1.5rem;
        font-size: 1.125rem;
        min-height: 3.5rem;
    }
    
    .form-label-modern {
        font-size: 1rem;
        margin-bottom: 0.625rem;
    }
    
    #add-modal .relative {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }
    
    #add-modal .px-6 {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    
    .grid-cols-2 {
        gap: 1rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .form-input-modern {
        min-height: 3rem;
    }
    
    .btn-primary-modern,
    .btn-secondary-modern {
        min-height: 3.5rem;
        padding: 1.25rem 2rem;
    }
}

/* Edit Button Styles (Blue Theme) */
.btn-edit-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    min-height: 3rem;
    text-decoration: none;
}

.btn-edit-modern:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.15), 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-edit-modern:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

/* Modal Animation for Edit Modal */
#edit-modal .relative {
    animation: modalSlideIn 0.3s ease-out;
}

/* Focus visible for accessibility */
.form-input-modern:focus-visible,
.btn-primary-modern:focus-visible,
.btn-secondary-modern:focus-visible,
.btn-edit-modern:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* ========== Modern Marketplace Filters ========== */
.marketplace-filter-sidebar {
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.95) 0%,
        rgba(29, 78, 216, 0.92) 50%,
        rgba(30, 64, 175, 0.95) 100%
    );
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 4px 16px rgba(59, 130, 246, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.marketplace-filter-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 1;
}

.marketplace-filter-sidebar > * {
    position: relative;
    z-index: 2;
}

/* Modern Filter Input Styling */
.filter-input-modern {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 0.75rem;
    font-size: 0.95rem;
    color: white;
    transition: all 0.2s ease-in-out;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-input-modern::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.filter-input-modern:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 0 0 3px rgba(255, 255, 255, 0.15),
        inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.filter-input-modern:hover:not(:focus) {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Modern Filter Labels */
.filter-label-modern {
    display: flex;
    align-items: center;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.025em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.filter-label-modern i {
    margin-right: 0.5rem;
    opacity: 0.9;
}

/* Modern Select Styling */
.filter-select-modern {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 0.75rem;
    font-size: 0.95rem;
    color: white;
    transition: all 0.2s ease-in-out;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.filter-select-modern:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 0 0 3px rgba(255, 255, 255, 0.15),
        inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.filter-select-modern:hover:not(:focus) {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
}

.filter-select-modern option {
    background: #1e40af;
    color: white;
    padding: 0.5rem;
}

/* Modern Price Slider Styling */
.price-slider-modern {
    position: relative;
    margin: 1rem 0;
}

.price-slider-modern .slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: transparent;
    cursor: pointer;
    position: absolute;
    width: 100%;
    z-index: 2;
}

.price-slider-modern .slider-thumb::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 22px;
    width: 22px;
    background: white;
    border-radius: 50%;
    border: 3px solid #3b82f6;
    cursor: pointer;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(59, 130, 246, 0.3);
    transition: all 0.2s ease;
}

.price-slider-modern .slider-thumb::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 0 2px rgba(59, 130, 246, 0.5);
}

.price-slider-modern .slider-thumb::-moz-range-thumb {
    height: 22px;
    width: 22px;
    background: white;
    border-radius: 50%;
    border: 3px solid #3b82f6;
    cursor: pointer;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(59, 130, 246, 0.3);
}

.price-slider-modern .slider-track {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    margin: 8px 0;
}

.price-slider-modern #slider-range {
    position: absolute;
    height: 6px;
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
    border-radius: 3px;
    transition: all 0.2s ease;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

/* Modern Button Styling for Filters */
.filter-btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    min-height: 2.5rem;
}

.filter-btn-modern:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
}

.filter-btn-modern:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Filter Section Spacing */
.filter-section-modern {
    margin-bottom: 1.5rem;
}

/* Filter Header Styling */
.filter-header-modern {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.filter-header-modern h3 {
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.filter-header-modern i {
    margin-right: 0.5rem;
    opacity: 0.9;
}

/* Price Display Styling */
.price-display-modern {
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Filter Indicator Styling */
.filter-indicator-modern {
    text-align: center;
    margin-top: 1rem;
}

.filter-indicator-modern .indicator-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-indicator-modern .indicator-text i {
    margin-right: 0.25rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .marketplace-filter-sidebar {
        margin-bottom: 2rem;
    }
    
    .filter-input-modern,
    .filter-select-modern {
        font-size: 1rem; /* Prevent zoom on iOS */
        min-height: 3rem;
    }
    
    .filter-btn-modern {
        min-height: 3rem;
        padding: 1rem 1.5rem;
    }
}

/* ========== Animations ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes logoGlow {
  from {
    filter: drop-shadow(0 0 5px rgba(80, 135, 13, 0.3));
  }
  to {
    filter: drop-shadow(0 0 15px rgba(80, 135, 13, 0.6));
  }
}

.logo-container:hover .logo-main {
  animation: logoGlow 0.3s ease-in-out;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
  header {
    height: 100px;
  }
  
  header .max-w-7xl {
    height: 100px;
  }
  
  .logo-container {
    width: 192px;
    height: 80px;
  }
  
  .logo-main {
    height: 192px; /* 20% increase from 160px */
  }
  
  .logo-large {
    height: 140px;
  }
  
  main {
    margin-top: 0;
  }
}

/* ========== Content Spacing ========== */
main {
  margin-top: 0;
}

/* ========== Breadcrumb Navigation ========== */
#breadcrumb-nav {
  position: relative;
  z-index: 5;
  margin-top: 0.5rem;
}

.breadcrumb-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--neutral-200);
  border-radius: 1rem;
  margin: 0.75rem auto 1rem auto;
  max-width: 56rem;
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.breadcrumb-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 120px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.breadcrumb-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  right: -45px;
  width: 30px;
  height: 2px;
  background: var(--neutral-300);
  transition: all 0.3s ease;
}

.breadcrumb-step.active:not(:last-child)::after,
.breadcrumb-step.completed:not(:last-child)::after {
  background: var(--brand-green);
}

.breadcrumb-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  border: 2px solid var(--neutral-300);
  background: white;
  transition: all 0.3s ease;
}

.breadcrumb-step.completed .breadcrumb-icon {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: white;
}

.breadcrumb-step.active .breadcrumb-icon {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: white;
  box-shadow: 0 0 0 4px rgba(26, 74, 130, 0.1);
}

.breadcrumb-step.pending .breadcrumb-icon {
  background: var(--neutral-100);
  border-color: var(--neutral-300);
  color: var(--neutral-500);
}

.breadcrumb-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--neutral-700);
  margin-bottom: 0.25rem;
}

.breadcrumb-step.active .breadcrumb-title {
  color: var(--brand-blue);
}

.breadcrumb-step.completed .breadcrumb-title {
  color: var(--brand-green);
}

.breadcrumb-description {
  font-size: 0.75rem;
  color: var(--neutral-500);
  line-height: 1.3;
}

@media (max-width: 768px) {
  .breadcrumb-nav {
    gap: 1rem;
  }
  
  .breadcrumb-step {
    min-width: 80px;
  }
  
  .breadcrumb-step:not(:last-child)::after {
    right: -30px;
    width: 20px;
  }
  
  .breadcrumb-icon {
    width: 32px;
    height: 32px;
  }
  
  .breadcrumb-title {
    font-size: 0.75rem;
  }
  
  .breadcrumb-description {
    font-size: 0.625rem;
  }
}

/* Order Details Header Banner */
.order-header-banner {
  background: linear-gradient(90deg, var(--brand-green) 0%, var(--sage-green) 100%);
  color: var(--neutral-900);
  padding: 2rem 2rem 1.5rem 2rem;
  border-bottom-left-radius: 1.25rem;
  border-bottom-right-radius: 1.25rem;
  box-shadow: 0 4px 16px rgba(80, 135, 13, 0.08);
}

/* Timeline Styles */
.order-timeline-event {
  position: relative;
  margin-bottom: 2rem;
}
.order-timeline-event:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 2.5rem;
  width: 2px;
  height: calc(100% - 2.5rem);
  background: var(--sage-light);
  z-index: 0;
}
.timeline-icon-bg {
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(80, 135, 13, 0.12);
  border: 2px solid white;
  z-index: 1;
}
.status-payment_pending {
  background: #f97316; /* orange-500 for payment processing */
}
.status-payment_failed {
  background: var(--red-brick);
}
.status-payment_completed {
  background: var(--brand-green);
}
.status-pending {
  background: var(--muted-gold);
}
.status-confirmed {
  background: var(--brand-blue);
}
.status-label_generated {
  background: #7C3AED;
}

/* Address validation field styles */
.field-error {
  animation: slideIn 0.2s ease-in-out;
}

.field-success-icon {
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Enhanced input field styles for validation */
input.border-green-300,
select.border-green-300 {
  border-color: #86efac !important;
  box-shadow: 0 0 0 1px #86efac;
}

input.border-red-300,
select.border-red-300 {
  border-color: #fca5a5 !important;
  box-shadow: 0 0 0 1px #fca5a5;
}

input.border-orange-300,
select.border-orange-300 {
  border-color: #fdba74 !important;
  box-shadow: 0 0 0 1px #fdba74;
}

.status-shipped {
  background: var(--terracotta);
}
.status-delivered {
  background: var(--brand-green);
}
.status-cancelled {
  background: var(--red-brick);
}

/* ========== Farm Portal Styles ========== */
.farm-info-window {
  font-family: 'Inter', sans-serif;
  color: #374151;
}

.farm-info-window img {
  border-radius: 8px;
  object-fit: cover;
}

.farm-option {
  transition: all 0.2s ease;
}

.farm-option:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.farm-option.border-green-500 {
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

/* Progress bar animation */
#completion-bar {
  transition: width 0.5s ease-in-out;
}

/* AI generation progress indicator */
.ai-progress {
  backdrop-filter: blur(8px);
  animation: slideInRight 0.3s ease;
}

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

/* Farm portal button styling */
.btn-primary {
  background: var(--farm-primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}

.btn-success {
  background: var(--farm-secondary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-success:hover {
  background: #059669;
}

.btn-success:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

/* Input field styling */
.input-field {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field:focus {
  outline: none;
  border-color: var(--farm-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Enhanced farm display styling */
.enhanced-farm-display {
  background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 100%);
  border: 1px solid #d1fae5;
  border-radius: 0.75rem;
  padding: 1rem;
  transition: all 0.2s ease;
}

.enhanced-farm-display:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Specialty tags styling */
.specialty-tag {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  display: inline-block;
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

/* Responsive farm portal */
@media (max-width: 768px) {
  .farm-option {
    padding: 0.75rem;
  }
  
  .farm-info-window {
    max-width: 280px;
  }
  
  .specialty-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }
}
