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

body, html {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: #e4f8e9;
  overflow-x: hidden;
}

/* Background Image */
.bg-image {
  position: fixed;
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(76, 175, 80, 0.1) 0%, 
    rgba(56, 142, 60, 0.15) 50%,
    rgba(27, 94, 32, 0.2) 100%),
    url('https://images.unsplash.com/photo-1464207687429-7505649dae38?auto=format&fit=crop&w=1920&q=80') center center/cover no-repeat;
  z-index: -1;
  filter: blur(1px) brightness(1.1);
}

/* Header Styles */
.brand-home-bar {
  max-width: 1200px;
  margin: 20px auto 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px 16px 0 0;
  padding: 20px 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  position: relative;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.home-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2e7d32;
  letter-spacing: -0.5px;
}

.header-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.notification-btn, .profile-avatar {
  background: #4caf50;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.notification-btn:hover, .profile-avatar:hover {
  background: #388e3c;
  transform: scale(1.05);
}

/* Navigation Bar */
.top-navbar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 0 0 16px 16px;
  padding: 15px 30px;
  gap: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  position: relative;
  z-index: 99;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2e7d32;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 25px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  background: #e8f5e8;
  color: #1b5e20;
  transform: translateY(-2px);
}

.nav-icon {
  font-size: 1.1rem;
}

.cart-badge, .orders-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #f44336;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Login Section */
.login-container {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
}
.login-glass {
  width: 395px;
  margin: 60px 0 0 0;
  padding: 44px 38px 40px 38px;
  border-radius: 25px;
  background: rgba(40, 56, 36, 0.45);
  box-shadow: 0 4px 32px 0 rgba(55,76,63,0.17);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(100, 130, 98, 0.13);
  display: flex;
  flex-direction: column;
  align-items: center;
}
h1 {
  margin: 0 0 14px 0;
  text-align: center;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
}
.welcome { color: #fff; font-size: 1.45rem; font-weight: 600; }
.brand { color: #8df525; font-size: 2.08rem; font-weight: 700; letter-spacing: 2px; }
.subtitle {
  color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,0.10);
  font-size: 1.13rem;
  text-align: center;
  margin-bottom: 25px;
}
form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.input {
  width: 99%;
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: 28px;
  border: none;
  background: #fff;
  color: #444;
  font-size: 1.18rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  box-shadow: 0 2px 14px 0 rgba(50,90,55,0.09);
  outline: none;
  transition: box-shadow 0.2s, background 0.2s;
}
.input:focus {
  box-shadow: 0 0 0 2px #4caf50;
  background: #f5fff0;
}
.misc {
  width: 100%;
  text-align: center;
  margin-bottom: 14px;
}
.no-account {
  font-family: 'Dancing Script', cursive, 'Segoe UI', Arial;
  font-size: 1.13rem;
  color: #e8ffee;
  margin-right: 2px;
  font-style: italic;
}
.forgot {
  color: #fff;
  font-weight: bold;
  letter-spacing: 1px;
  text-decoration: none;
  font-size: 0.99rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.login-btn {
  width: 100%;
  margin-top: 12px;
  padding: 16px 0;
  font-size: 1.19rem;
  border-radius: 30px;
  background: linear-gradient(90deg, #81c784 35%, #388e3c 100%);
  color: #181e16;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  border: none;
  box-shadow: 0 1px 10px rgba(73,114,75,0.10);
  cursor: pointer;
  letter-spacing: 1px;
  transition: background 0.2s, color 0.2s;
}
.login-btn:hover {
  background: linear-gradient(90deg, #388e3c 10%, #8df525 85%);
  color: #fff;
}


/* Choose Section */
.choose-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  z-index: 10;
}

.choose-bg {
  width: 100%;
  max-width: 800px;
  padding: 40px 30px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.choose-select {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  color: #1b5e20;
  margin-bottom: 15px;
  letter-spacing: -1px;
}

.choose-subtitle {
  text-align: center;
  color: #4caf50;
  font-size: 1.1rem;
  margin-bottom: 40px;
  line-height: 1.5;
}

.choose-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.choose-card {
  background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e8 100%);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.choose-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(76, 175, 80, 0.2);
  border-color: #4caf50;
}

.choose-img {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 15px;
  background-color: #fff;
}

.family-img {
  background: url('https://www.freeiconspng.com/uploads/family-icon-5.png') center/cover;
}

.farmer-img {
  background: url('https://cdn-icons-png.flaticon.com/512/353/353778.png') center/cover;
}

.choose-label {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1b5e20;
  margin-bottom: 10px;
}

.choose-desc {
  color: #4caf50;
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.4;
}

.choose-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature {
  background: rgba(76, 175, 80, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #2e7d32;
}

/* Home Container */
.home-container {
  width: 100%;
  min-height: 100vh;
  background: #f8fffe;
  padding-bottom: 60px;
}

/* Main Content Cards */
.families-home-card, .farmer-home-card, .farmer-inventory-card, 
.farmer-orders-card, .farmer-analytics-card, .farmer-tasks-card,
.farmer-profile-card, .cart-card, .checkout-card, .profile-card {
  max-width: 1200px;
  margin: 20px auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 30px;
  position: relative;
  z-index: 10;
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e8f5e8;
}

.back-btn {
  background: #4caf50;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: #388e3c;
  transform: scale(1.05);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1b5e20;
  flex: 1;
  text-align: center;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.header-actions button {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  background: #e8f5e8;
  color: #2e7d32;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-actions button:hover {
  background: #4caf50;
  color: white;
}

/* Location Bar */
.location-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 15px 20px;
  background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 100%);
  border-radius: 15px;
}

.location-emoji {
  font-size: 1.3rem;
}

.location-info {
  flex: 1;
}

.location-link {
  font-weight: 700;
  color: #2e7d32;
  text-decoration: none;
}

.location-subtext {
  color: #4caf50;
  font-size: 0.9rem;
}

.change-location-btn, .weather-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  background: #4caf50;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.change-location-btn:hover, .weather-btn:hover {
  background: #388e3c;
}

/* Search Row */
.search-row {
  margin-bottom: 25px;
}

.search-container {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-radius: 25px;
  padding: 15px 20px;
  gap: 15px;
  max-width: 600px;
}

.search-icon {
  color: #4caf50;
  font-size: 1.2rem;
}

.search-bar {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1rem;
  outline: none;
  color: #333;
}

.filter-btn {
  background: #4caf50;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: #388e3c;
}

/* Banner Offers */
.banner-offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #4caf50 0%, #81c784 100%);
  color: white;
  border-radius: 20px;
  padding: 25px 30px;
  margin-bottom: 30px;
}

.offer-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.offer-sign {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  width: fit-content;
}

.offer-text {
  font-size: 1.8rem;
  font-weight: 800;
}

.offer-subtext {
  font-size: 1rem;
  opacity: 0.9;
}

.claim-offer-btn {
  background: white;
  color: #4caf50;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.claim-offer-btn:hover {
  background: #f1f8e9;
  transform: scale(1.05);
}

.farmer-banner {
  background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
}

.quick-stats {
  display: flex;
  gap: 20px;
}

.quick-stat {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  border-radius: 15px;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 800;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Categories */
.categories-section {
  margin-bottom: 40px;
}

.categories-section h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1b5e20;
  margin-bottom: 20px;
}

.see-all {
  color: #4caf50;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.see-all:hover {
  text-decoration: underline;
}

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

.category-card {
  background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e8 100%);
  border-radius: 15px;
  padding: 25px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(76, 175, 80, 0.15);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.category-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1b5e20;
  margin-bottom: 5px;
}

.category-count {
  color: #4caf50;
  font-size: 0.9rem;
}

/* Product Lists */
.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.product-card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #f44336;
  color: white;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.product-badge.fresh {
  background: #4caf50;
}

.product-badge.premium {
  background: #ff9800;
}

.product-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
  border-radius: 10px;
}

.product-rating {
  color: #ff9800;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1b5e20;
  margin-bottom: 10px;
  line-height: 1.3;
}

.small-g {
  font-size: 0.9rem;
  color: #666;
  font-weight: 400;
}

.product-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #2e7d32;
}

.original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 0.9rem;
  font-weight: 400;
}

.product-add, .product-edit {
  background: #4caf50;
  color: white;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-add:hover, .product-edit:hover {
  background: #388e3c;
  transform: scale(1.1);
}

/* Farmer specific product cards */
.farmer-card {
  background: linear-gradient(135deg, #f8fff8 0%, #f1f8e9 100%);
}

.product-status {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.product-status.active {
  background: #e8f5e8;
  color: #2e7d32;
}

.product-status.low-stock {
  background: #fff3e0;
  color: #f57c00;
}

.product-status.out-of-stock {
  background: #ffebee;
  color: #d32f2f;
}

.product-sales {
  color: #4caf50;
  font-size: 0.9rem;
  margin-top: 5px;
}

/* Farm Statistics */
.farm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.stat-card {
  background: linear-gradient(135deg, #f8fff8 0%, #f1f8e9 100%);
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
  border-left: 5px solid #4caf50;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.stat-icon {
  font-size: 2.5rem;
}

.stat-trend {
  background: #e8f5e8;
  color: #2e7d32;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.stat-title {
  font-size: 1rem;
  color: #4caf50;
  margin-bottom: 10px;
  font-weight: 600;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1b5e20;
  margin-bottom: 8px;
}

.stat-change {
  color: #4caf50;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Orders */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.order-card {
  background: #f8fff8;
  border-radius: 15px;
  padding: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 5px solid #4caf50;
}

.order-card:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.order-card.priority {
  border-left-color: #f44336;
  background: linear-gradient(135deg, #fff8f8 0%, #fff1f1 100%);
}

.order-card.urgent {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(244, 67, 54, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0); }
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.order-info {
  display: flex;
  gap: 15px;
  align-items: center;
}

.order-id {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1b5e20;
}

.order-time {
  color: #666;
  font-size: 0.9rem;
}

.order-status {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.order-status.pending {
  background: #fff3e0;
  color: #f57c00;
}

.order-status.confirmed {
  background: #e3f2fd;
  color: #1976d2;
}

.order-status.delivered {
  background: #e8f5e8;
  color: #2e7d32;
}

.order-customer {
  margin-bottom: 15px;
  font-weight: 600;
  color: #1b5e20;
}

.customer-location {
  color: #4caf50;
  font-size: 0.9rem;
  margin-left: 10px;
}

.order-items {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  color: #666;
}

.order-total {
  font-weight: 700;
  color: #2e7d32;
  font-size: 1.1rem;
}

.order-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.action-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.action-btn.accept {
  background: #4caf50;
  color: white;
}

.action-btn.decline {
  background: #f44336;
  color: white;
}

.action-btn.prepare {
  background: #2196f3;
  color: white;
}

.action-btn:hover {
  transform: scale(1.05);
}

/* Quick Actions Grid */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.action-card {
  background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e8 100%);
  border: none;
  border-radius: 15px;
  padding: 25px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.action-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(76, 175, 80, 0.2);
}

.action-icon {
  font-size: 2.5rem;
  color: #4caf50;
}

.action-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1b5e20;
}

.action-subtitle {
  color: #4caf50;
  font-size: 0.9rem;
}

/* Inventory Management */
.inventory-controls {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
  align-items: center;
}

.control-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.control-btn.primary {
  background: #4caf50;
  color: white;
}

.control-btn.secondary {
  background: #e0e0e0;
  color: #333;
}

.control-btn:hover {
  transform: translateY(-2px);
}

.inventory-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-item {
  background: #f8fff8;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  border-left: 5px solid #4caf50;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1b5e20;
}

.stat-value.warning {
  color: #f57c00;
}

.stat-value.danger {
  color: #f44336;
}

/* Inventory Table */
.inventory-table {
  background: #f8fff8;
  border-radius: 15px;
  overflow: hidden;
}

.table-header {
  background: #4caf50;
  color: white;
  padding: 15px 0;
}

.table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
  gap: 20px;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #e8f5e8;
}

.table-row.header {
  font-weight: 700;
  border-bottom: none;
}

.table-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.product-thumbnail {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: contain;
}

.product-name {
  font-weight: 600;
  color: #1b5e20;
}

.product-category {
  color: #4caf50;
  font-size: 0.9rem;
}

.stock-cell {
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.stock-amount {
  font-weight: 600;
  color: #1b5e20;
}

.stock-status {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.stock-status.healthy {
  background: #e8f5e8;
  color: #2e7d32;
}

.stock-status.low {
  background: #fff3e0;
  color: #f57c00;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.active {
  background: #e8f5e8;
  color: #2e7d32;
}

.actions-cell {
  gap: 8px;
}

.action-btn-small {
  padding: 6px 12px;
  border: none;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn-small.edit {
  background: #2196f3;
  color: white;
}

.action-btn-small.update {
  background: #ff9800;
  color: white;
}

.action-btn-small.restock {
  background: #f44336;
  color: white;
}

.action-btn-small:hover {
  transform: scale(1.05);
}

/* Orders Filter */
.orders-filter {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  border: 2px solid #4caf50;
  background: transparent;
  color: #4caf50;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.filter-btn.active, .filter-btn:hover {
  background: #4caf50;
  color: white;
}

/* Orders Summary */
.orders-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.summary-card {
  background: #f8fff8;
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  border-left: 5px solid #4caf50;
}

.summary-title {
  font-size: 1rem;
  color: #4caf50;
  margin-bottom: 10px;
  font-weight: 600;
}

.summary-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1b5e20;
  margin-bottom: 5px;
}

.summary-amount {
  color: #2e7d32;
  font-weight: 600;
}

.summary-subtitle {
  color: #666;
  font-size: 0.9rem;
}

/* Detailed Orders */
.detailed-orders {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.detailed-order-card {
  background: #f8fff8;
  border-radius: 20px;
  padding: 30px;
  border-left: 5px solid #4caf50;
  position: relative;
}

.detailed-order-card.urgent {
  border-left-color: #f44336;
  background: linear-gradient(135deg, #fff8f8 0%, #fff1f1 100%);
}

.order-priority-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: #f44336;
  color: white;
  padding: 5px 15px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.order-customer-info {
  background: rgba(76, 175, 80, 0.05);
  padding: 20px;
  border-radius: 15px;
  margin: 20px 0;
}

.customer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.customer-type {
  background: #4caf50;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.customer-rating {
  color: #ff9800;
}

.customer-details {
  line-height: 1.6;
  color: #2e7d32;
}

.order-items-list {
  margin: 20px 0;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #e8f5e8;
}

.item-image {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: contain;
}

.item-info {
  flex: 1;
}

.item-name {
  font-weight: 600;
  color: #1b5e20;
  margin-bottom: 5px;
}

.item-details {
  color: #4caf50;
  font-size: 0.9rem;
}

.order-total {
  background: rgba(46, 125, 50, 0.1);
  padding: 15px;
  border-radius: 10px;
  margin-top: 15px;
}

.total-breakdown {
  text-align: right;
  line-height: 1.6;
  color: #2e7d32;
}

.total-amount {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1b5e20;
}

.order-actions-detailed {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn-accept, .btn-negotiate, .btn-decline,
.btn-prepare, .btn-message, .btn-track {
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 120px;
}

.btn-accept.primary {
  background: #4caf50;
  color: white;
}

.btn-negotiate {
  background: #ff9800;
  color: white;
}

.btn-decline {
  background: #f44336;
  color: white;
}

.btn-prepare.primary {
  background: #2196f3;
  color: white;
}

.btn-message {
  background: #9c27b0;
  color: white;
}

.btn-track {
  background: #607d8b;
  color: white;
}

.order-timer {
  margin-top: 15px;
  text-align: center;
  padding: 10px;
  background: rgba(244, 67, 54, 0.1);
  border-radius: 10px;
  color: #f44336;
  font-weight: 600;
}

/* Analytics */
.analytics-period {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  align-items: center;
}

.period-btn {
  padding: 10px 20px;
  border: 2px solid #4caf50;
  background: transparent;
  color: #4caf50;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.period-btn.active, .period-btn:hover {
  background: #4caf50;
  color: white;
}

.custom-date {
  padding: 10px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 20px;
  outline: none;
  font-weight: 500;
}

.custom-date:focus {
  border-color: #4caf50;
}

.analytics-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.overview-card {
  background: linear-gradient(135deg, #f8fff8 0%, #f1f8e9 100%);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  border-left: 5px solid #4caf50;
  transition: all 0.3s ease;
}

.overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.overview-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #4caf50;
}

.overview-title {
  font-size: 1rem;
  color: #4caf50;
  margin-bottom: 10px;
  font-weight: 600;
}

.overview-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1b5e20;
  margin-bottom: 10px;
}

.overview-change {
  font-size: 0.9rem;
  font-weight: 500;
}

.overview-change.positive {
  color: #4caf50;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.analytics-card {
  background: #f8fff8;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.analytics-card h4 {
  color: #1b5e20;
  margin-bottom: 25px;
  font-size: 1.3rem;
  font-weight: 700;
}

.chart-container {
  margin: 20px 0;
}

.chart-placeholder {
  background: rgba(76, 175, 80, 0.05);
  border-radius: 15px;
  padding: 40px 20px;
  text-align: center;
  position: relative;
}

.chart-bars {
  display: flex;
  justify-content: space-around;
  align-items: end;
  height: 200px;
  margin-bottom: 20px;
}

.bar {
  background: linear-gradient(to top, #4caf50, #81c784);
  width: 40px;
  border-radius: 5px 5px 0 0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.bar:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

.bar.active {
  background: linear-gradient(to top, #2e7d32, #4caf50);
}

.chart-labels {
  display: flex;
  justify-content: space-around;
  font-size: 0.9rem;
  color: #666;
}

.top-products-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.top-product {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(76, 175, 80, 0.05);
  border-radius: 15px;
}

.product-rank {
  background: #4caf50;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.product-thumb {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: contain;
}

.product-details {
  flex: 1;
}

.product-name {
  font-weight: 600;
  color: #1b5e20;
  margin-bottom: 5px;
}

.product-revenue {
  color: #4caf50;
  font-size: 0.9rem;
}

.product-trend {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.product-trend.up {
  background: #e8f5e8;
  color: #2e7d32;
}

.product-trend.down {
  background: #ffebee;
  color: #d32f2f;
}

.customer-metrics {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.metric {
  background: rgba(76, 175, 80, 0.05);
  padding: 20px;
  border-radius: 15px;
}

.metric-label {
  font-weight: 600;
  color: #1b5e20;
  margin-bottom: 8px;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 10px;
}

.metric-bar {
  background: #e0e0e0;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.metric-fill {
  background: #4caf50;
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.metric-stars {
  color: #ff9800;
  font-size: 1.2rem;
}

.metric-change {
  color: #4caf50;
  font-size: 0.9rem;
  font-weight: 500;
}

.delivery-stats {
  display: flex;
  justify-content: space-around;
  gap: 20px;
}

.delivery-stat {
  text-align: center;
  flex: 1;
}

.stat-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
}

.stat-circle.on-time {
  background: linear-gradient(135deg, #4caf50, #81c784);
}

.stat-circle.quality {
  background: linear-gradient(135deg, #ff9800, #ffb74d);
}

.stat-circle.distance {
  background: linear-gradient(135deg, #2196f3, #64b5f6);
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 600;
}

/* Tasks */
.tasks-overview {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 25px;
  margin-bottom: 30px;
}

.task-summary-card {
  background: #f8fff8;
  padding: 25px;
  border-radius: 20px;
  border-left: 5px solid #4caf50;
}

.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.tasks-count {
  background: #4caf50;
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 600;
}

.task-progress {
  margin-top: 15px;
}

.progress-bar {
  background: #e0e0e0;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  background: #4caf50;
  height: 100%;
  border-radius: 5px;
  transition: width 0.3s ease;
}

.progress-text {
  color: #4caf50;
  font-size: 0.9rem;
  font-weight: 600;
}

.weather-card {
  background: linear-gradient(135deg, #81c784 0%, #4caf50 100%);
  color: white;
  padding: 25px;
  border-radius: 20px;
  text-align: center;
}

.weather-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.weather-temp {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.weather-desc {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.weather-details {
  display: flex;
  justify-content: space-around;
  font-size: 0.9rem;
  opacity: 0.9;
}

.tasks-categories {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.task-category {
  padding: 10px 20px;
  border: 2px solid #4caf50;
  background: transparent;
  color: #4caf50;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.task-category.active, .task-category:hover {
  background: #4caf50;
  color: white;
}

.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.task-card {
  background: #f8fff8;
  border-radius: 20px;
  padding: 25px;
  border-left: 5px solid #4caf50;
  transition: all 0.3s ease;
}

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

.task-card.urgent {
  border-left-color: #f44336;
  background: linear-gradient(135deg, #fff8f8 0%, #fff1f1 100%);
}

.task-card.completed {
  border-left-color: #4caf50;
  background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e8 100%);
  opacity: 0.8;
}

.task-card.scheduled {
  border-left-color: #2196f3;
  background: linear-gradient(135deg, #f3f8ff 0%, #e3f2fd 100%);
}

.task-priority {
  background: #f44336;
  color: white;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 15px;
}

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  gap: 15px;
}

.task-info h4 {
  color: #1b5e20;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.task-info p {
  color: #4caf50;
  line-height: 1.4;
  margin: 0;
}

.task-status {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.task-status.pending {
  background: #fff3e0;
  color: #f57c00;
}

.task-status.in-progress {
  background: #e3f2fd;
  color: #1976d2;
}

.task-status.completed {
  background: #e8f5e8;
  color: #2e7d32;
}

.task-status.scheduled {
  background: #f3e5f5;
  color: #7b1fa2;
}

.task-details {
  margin-bottom: 20px;
}

.task-field, .task-time, .task-resources, .task-notes {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #2e7d32;
}

.field-icon, .time-icon, .resource-icon, .notes-icon {
  font-size: 1.1rem;
}

.overdue {
  color: #f44336;
  font-weight: 600;
  margin-left: 10px;
}

.task-progress {
  margin: 15px 0;
}

.progress-bar.small {
  height: 8px;
}

.task-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.task-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.task-btn.complete {
  background: #4caf50;
  color: white;
}

.task-btn.postpone {
  background: #ff9800;
  color: white;
}

.task-btn.details, .task-btn.view {
  background: #2196f3;
  color: white;
}

.task-btn.update {
  background: #9c27b0;
  color: white;
}

.task-btn.start-early {
  background: #4caf50;
  color: white;
}

.task-btn.reschedule {
  background: #607d8b;
  color: white;
}

.task-btn:hover {
  transform: scale(1.05);
}

/* Task Analytics */
.task-analytics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.analytics-card.task-completion {
  text-align: center;
}

.completion-chart {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 20px;
}

.chart-circle {
  position: relative;
  width: 120px;
  height: 120px;
}

.circle-progress {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(#4caf50 0% var(--progress), #e0e0e0 var(--progress) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.circle-progress::before {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
}

.percentage {
  position: relative;
  z-index: 2;
  font-size: 1.8rem;
  font-weight: 700;
  color: #1b5e20;
}

.completion-details {
  flex: 1;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #e8f5e8;
}

.detail-label {
  color: #666;
}

.detail-value {
  font-weight: 600;
  color: #1b5e20;
}

.field-health {
  background: #f8fff8;
}

.field-status-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.field-status {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-radius: 15px;
  transition: all 0.2s ease;
}

.field-status.healthy {
  background: rgba(76, 175, 80, 0.05);
  border-left: 4px solid #4caf50;
}

.field-status.warning {
  background: rgba(255, 152, 0, 0.05);
  border-left: 4px solid #ff9800;
}

.field-status.excellent {
  background: rgba(76, 175, 80, 0.1);
  border-left: 4px solid #2e7d32;
}

.status-icon {
  font-size: 2rem;
}

.status-info {
  flex: 1;
}

.field-name {
  font-weight: 600;
  color: #1b5e20;
  margin-bottom: 5px;
}

.health-score {
  color: #4caf50;
  font-weight: 600;
  margin-bottom: 3px;
}

.last-check {
  color: #666;
  font-size: 0.9rem;
}

/* Farmer Profile */
.farmer-profile-header {
  margin-bottom: 40px;
}

.profile-cover {
  height: 200px;
  background: linear-gradient(135deg, #4caf50 0%, #81c784 100%);
  border-radius: 20px 20px 0 0;
  position: relative;
  overflow: hidden;
}

.cover-image {
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1200&q=80') center/cover;
  opacity: 0.3;
}

.change-cover-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
}

.profile-main {
  display: flex;
  align-items: end;
  gap: 30px;
  padding: 30px;
  background: #f8fff8;
  border-radius: 0 0 20px 20px;
  margin-top: -50px;
  position: relative;
  z-index: 2;
}

.profile-avatar-section {
  text-align: center;
}

.profile-avatar-large {
  position: relative;
  display: inline-block;
}

.avatar-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 5px solid white;
  object-fit: cover;
}

.change-photo-btn {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: #4caf50;
  color: white;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
}

.profile-verification {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.verified-badge, .certification {
  background: #e8f5e8;
  color: #2e7d32;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
}

.certification {
  background: #fff3e0;
  color: #f57c00;
}

.profile-info-section {
  flex: 1;
}

.profile-name {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1b5e20;
  margin-bottom: 5px;
}

.farm-name {
  font-size: 1.3rem;
  color: #4caf50;
  margin-bottom: 20px;
  font-weight: 600;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-item {
  text-align: center;
  background: rgba(76, 175, 80, 0.05);
  padding: 15px;
  border-radius: 15px;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1b5e20;
  margin-bottom: 5px;
}

.stat-label {
  color: #4caf50;
  font-size: 0.9rem;
  font-weight: 600;
}

.profile-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.profile-section h4 {
  color: #1b5e20;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8f5e8;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.info-item {
  background: #f8fff8;
  padding: 20px;
  border-radius: 15px;
}

.info-item.full-width {
  grid-column: 1 / -1;
}

.info-item label {
  display: block;
  color: #4caf50;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.info-value {
  color: #1b5e20;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.4;
}

.certification-badge {
  background: #4caf50;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 8px;
  display: inline-block;
  margin-bottom: 5px;
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.specialty-card {
  background: #f8fff8;
  padding: 25px 20px;
  border-radius: 15px;
  text-align: center;
  border-left: 4px solid #4caf50;
  transition: all 0.3s ease;
}

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

.specialty-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.specialty-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1b5e20;
  margin-bottom: 10px;
}

.specialty-desc {
  color: #4caf50;
  line-height: 1.4;
}

.performance-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.performance-card {
  background: linear-gradient(135deg, #f8fff8 0%, #f1f8e9 100%);
  padding: 30px 25px;
  border-radius: 20px;
  text-align: center;
  border-left: 5px solid #4caf50;
}

.performance-title {
  color: #4caf50;
  font-weight: 600;
  margin-bottom: 15px;
}

.performance-score {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1b5e20;
  margin-bottom: 10px;
}

.performance-detail {
  color: #666;
  font-size: 0.9rem;
}

.profile-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #e8f5e8;
}

.profile-action-btn {
  padding: 15px 30px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.profile-action-btn.primary {
  background: #4caf50;
  color: white;
}

.profile-action-btn.secondary {
  background: #e0e0e0;
  color: #333;
}

.profile-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Cart */
.cart-items {
  margin-bottom: 30px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f8fff8;
  border-radius: 15px;
  margin-bottom: 15px;
  border-left: 4px solid #4caf50;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: contain;
}

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

.cart-item-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1b5e20;
  margin-bottom: 5px;
}

.cart-item-details {
  color: #4caf50;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.cart-item-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2e7d32;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(76, 175, 80, 0.1);
  padding: 10px 15px;
  border-radius: 25px;
}

.qty-btn {
  background: #4caf50;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-display {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1b5e20;
  min-width: 20px;
  text-align: center;
}

.remove-item-btn {
  background: #f44336;
  color: white;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-summary {
  background: #f8fff8;
  padding: 25px;
  border-radius: 20px;
  margin-bottom: 25px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e8f5e8;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row.total {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1b5e20;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px solid #4caf50;
}

.summary-row.discount {
  color: #4caf50;
  font-weight: 600;
}

.delivery-fee {
  color: #ff9800;
}

.cart-actions {
  display: flex;
  gap: 15px;
}

.continue-shopping-btn {
  flex: 1;
  padding: 15px;
  border: 2px solid #4caf50;
  background: transparent;
  color: #4caf50;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.continue-shopping-btn:hover {
  background: #4caf50;
  color: white;
}

.checkout-btn {
  flex: 2;
  padding: 15px;
  border: none;
  background: #4caf50;
  color: white;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.checkout-btn:hover {
  background: #388e3c;
  transform: translateY(-2px);
}

/* Checkout */
.checkout-steps {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  position: relative;
}

.checkout-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 25%;
  right: 25%;
  height: 2px;
  background: #e0e0e0;
  z-index: -1;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.step.active .step-number {
  background: #4caf50;
}

.step-label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 600;
}

.step.active .step-label {
  color: #4caf50;
}

.checkout-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.delivery-address h4,
.delivery-time h4,
.order-summary h4 {
  color: #1b5e20;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.address-card {
  background: #f8fff8;
  padding: 20px;
  border-radius: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 15px;
}

.address-card.selected {
  border-color: #4caf50;
  background: rgba(76, 175, 80, 0.05);
}

.address-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.address-type {
  background: #4caf50;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.default-badge {
  background: #ff9800;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.address-name {
  font-weight: 700;
  color: #1b5e20;
  margin-bottom: 8px;
}

.address-details {
  color: #4caf50;
  line-height: 1.5;
}

.edit-address-btn {
  background: #2196f3;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
}

.add-address-btn {
  background: transparent;
  border: 2px dashed #4caf50;
  color: #4caf50;
  padding: 15px;
  border-radius: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.add-address-btn:hover {
  background: rgba(76, 175, 80, 0.05);
}

.time-slots {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.time-slot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fff8;
  padding: 15px 20px;
  border-radius: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.time-slot.selected {
  border-color: #4caf50;
  background: rgba(76, 175, 80, 0.05);
}

.slot-time {
  font-weight: 600;
  color: #1b5e20;
}

.slot-price {
  font-weight: 700;
  color: #4caf50;
}

.checkout-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.checkout-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #e8f5e8;
}

.item-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: contain;
}

.item-details {
  flex: 1;
}

.item-name {
  font-weight: 600;
  color: #1b5e20;
  margin-bottom: 5px;
}

.item-quantity {
  color: #4caf50;
  font-size: 0.9rem;
}

.item-price {
  font-weight: 700;
  color: #2e7d32;
}

.bill-details {
  background: rgba(76, 175, 80, 0.05);
  padding: 20px;
  border-radius: 15px;
}

.bill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e8f5e8;
}

.bill-row:last-child {
  border-bottom: none;
}

.bill-row.total {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1b5e20;
  margin-top: 10px;
  padding-top: 15px;
  border-top: 2px solid #4caf50;
}

.bill-row.discount {
  color: #4caf50;
  font-weight: 600;
}

.checkout-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fff8;
  padding: 20px 30px;
  border-radius: 20px;
  margin-top: 30px;
}

.total-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1b5e20;
}

.place-order-btn {
  background: #4caf50;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.place-order-btn:hover {
  background: #388e3c;
  transform: scale(1.05);
}

/* Profile Page */
.profile-header {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
  background: #f8fff8;
  padding: 30px;
  border-radius: 20px;
}

.profile-info {
  flex: 1;
}

.profile-member {
  color: #4caf50;
  margin-bottom: 15px;
  font-weight: 600;
}

.profile-menu {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: #f8fff8;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-item:hover {
  background: rgba(76, 175, 80, 0.1);
  transform: translateX(5px);
}

.menu-item.logout {
  background: #fff1f1;
  color: #f44336;
}

.menu-item.logout:hover {
  background: #ffebee;
}

.menu-icon {
  font-size: 1.3rem;
  margin-right: 15px;
}

.menu-text {
  flex: 1;
  font-weight: 600;
  font-size: 1.1rem;
}

.menu-arrow {
  color: #4caf50;
  font-weight: 700;
}

/* Farms List */
.farms-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.farm-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f8fff8;
  padding: 25px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 5px solid #4caf50;
}

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

.farm-image {
  width: 120px;
  height: 120px;
  background: url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=400&q=80') center/cover;
  border-radius: 15px;
  flex-shrink: 0;
}

.farm-info {
  flex: 1;
}

.farm-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1b5e20;
  margin-bottom: 8px;
}

.farm-location, .farm-rating, .farm-speciality {
  color: #4caf50;
  margin-bottom: 5px;
}

.visit-farm-btn {
  background: #4caf50;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.visit-farm-btn:hover {
  background: #388e3c;
  transform: scale(1.05);
}

/* Footer */
.main-footer {
  background: #1b5e20;
  color: white;
  margin-top: 60px;
  padding: 40px 0 20px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-section h4 {
  color: #81c784;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.footer-section p {
  line-height: 1.6;
  opacity: 0.9;
}

.footer-link {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #81c784;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .brand-home-bar, .top-navbar, .families-home-card, 
  .farmer-home-card, .farmer-inventory-card, 
  .farmer-orders-card, .farmer-analytics-card, 
  .farmer-tasks-card, .farmer-profile-card, 
  .cart-card, .checkout-card, .profile-card {
    margin: 10px 15px;
    padding: 20px;
  }
  
  .header-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .home-brand {
    font-size: 1.4rem;
  }
  
  .top-navbar {
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
  }
  
  .nav-link {
    font-size: 0.9rem;
    padding: 8px 12px;
  }
  
  .search-container {
    max-width: 100%;
  }
  
  .banner-offer {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .quick-stats {
    flex-direction: column;
    gap: 10px;
  }
  
  .categories-grid, .product-list, .farm-stats,
  .quick-actions-grid, .inventory-stats,
  .orders-summary, .analytics-overview,
  .analytics-grid, .tasks-overview,
  .performance-cards, .info-grid,
  .specialties-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .table-row {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: left;
  }
  
  .table-cell {
    justify-content: flex-start;
  }
  
  .profile-main {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .profile-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .cart-item {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .cart-actions, .profile-actions {
    flex-direction: column;
    gap: 15px;
  }
  
  .checkout-footer {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .farm-card {
    flex-direction: column;
    text-align: center;
  }
  
  .farm-image {
    width: 100%;
    height: 150px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .login-glass, .choose-bg {
    margin: 20px 15px;
    padding: 30px 25px;
  }
  
  .choose-select {
    font-size: 2rem;
  }
  
  .choose-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .order-actions-detailed, .task-actions {
    flex-direction: column;
  }
  
  .detailed-order-card {
    padding: 20px;
  }
  
  .profile-name {
    font-size: 2rem;
  }
  
  .overview-amount, .stat-value {
    font-size: 2rem;
  }
  
  .overview-icon, .stat-icon {
    font-size: 2rem;
  }
}
.ai-recommendation-card {
  background: #fff;
  padding: 24px;
  border-radius: 20px;
  max-width: 420px;
  margin: 32px auto;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}
.ai-header, .ai-weather-summary { display: flex; align-items: center; justify-content: space-between; }
.ai-weather-summary { flex-direction: column; align-items: flex-start; margin: 16px 0; }
.ai-weather-temp { font-size: 36px; font-weight: 600; }
.ai-weather-status { font-size: 16px; margin-bottom: 4px; }
.ai-weather-details { font-size: 14px; color: #888; }
.ai-banner { margin: 16px 0; background: #e0fbe7; padding: 12px; border-radius: 12px; display: flex; align-items: center; justify-content: space-between;}
.ai-fields-grid { display: flex; gap: 12px; margin: 16px 0;}
.ai-field-card { background: #fafafa; padding: 8px; border-radius: 14px; width: 30%; box-sizing: border-box;}
.field-status { display: block; margin: 4px 0; font-size: 13px; padding: 2px 6px; border-radius: 8px; }
.good { background: #c6f8ca; color: #179638; }
.warning { background: #ffe3b0; color: #935c18; }
.field-title {font-weight: 600; font-size: 15px; margin-top: 4px;}
.field-area {font-size: 13px; color: #888;}
.ai-tasks-list { margin-top: 20px; }
.ai-task-item { background: #f6f6f6; padding: 10px 14px; border-radius: 12px; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }
.task-check { color: green; font-size: 18px; }
.task-check-empty { color: #bbb; font-size: 18px; }
.task-title {font-weight: 600; margin-right:4px;}
.task-field, .task-time { font-size: 13px; color: #888;}
/* AI Recommendations Section Styles */
.ai-recommendation-card {
  max-width: 1200px;
  margin: 24px auto 32px auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(76,175,80,0.09);
  padding: 32px 30px;
  position: relative;
  z-index: 10;
}

.ai-recommendation-card .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8f5e8;
}

.ai-recommendation-card .section-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: #219150;
}

.ai-recommendation-card .see-all {
  color: #4caf50;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.ai-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 30px;
}

.ai-stats-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 250px;
}

.ai-summary {
  background: #f8fff8;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  border-radius: 15px;
  border-left: 5px solid #4caf50;
  margin-bottom: 6px;
}

.ai-summary-icon {
  font-size: 2rem;
  color: #4caf50;
}

.ai-summary-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2e7d32;
}

.ai-summary-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1b5e20;
  margin-bottom: 3px;
}

.ai-summary-sub {
  color: #4caf50;
  font-size: 0.93rem;
}

.ai-summary-card {
  min-width: 260px;
  background: #e3fbe6;
  border-radius: 14px;
  box-shadow: 0 2px 8px #c8efd3;
  padding: 18px;
  font-size: 1rem;
  color: #1b5e20;
}
.ai-suggestion-text { margin-top: 6px; font-weight: 600; color: #179638; }

.ai-fields-gallery {
  display: flex;
  gap: 30px;
  margin: 38px 0 28px 0;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.ai-field-card.big {
  background: #f8fff8;
  border-radius: 18px;
  box-shadow: 0 2px 14px rgba(80,175,90,0.09);
  overflow: hidden;
  flex: 1 1 320px;
  min-width: 310px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: transform 0.15s;
}
.ai-field-card.big img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: #e8f5e9;
}
.ai-field-labels {
  padding: 18px 18px 10px 21px;
}
.ai-label-good {
  font-weight: 800;
  font-size: 1.2rem;
  color: #088d37;
}
.ai-label-warning {
  font-weight: 800;
  font-size: 1.2rem;
  color: #d29506;
}
.ai-label-meta {
  font-size: 1rem;
  color: #8bd63a;
  font-weight: 500;
  margin-top: 4px;
}

.ai-tasks-block {
  margin-top: 25px;
}
.ai-tasks-block h3 {
  color: #075a24;
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.ai-task-card {
  background: #f9fdf9;
  border-radius: 14px;
  padding: 16px 22px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 8px rgba(25,150,80,0.07);
  border-left: 6px solid #d2ffd8;
}
.ai-task-card.good {
  border-left-color: #4caf50;
}
.ai-task-card.warning {
  border-left-color: #ffc107;
  background: #fffde8;
}
.ai-task-status { font-size: 1.65rem; }
.ai-task-title {
  font-weight: 600;
  font-size: 1.07rem;
}
.ai-task-meta {
  color: #388e3c;
  font-size: .96rem;
  font-weight: 400;
  margin-top: 3px;
}

/* --- AI Chatbot styles --- */
.ai-chatbot-widget {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 999;
}
.ai-chatbot-toggle {
  background: #fff;
  color: #4caf50;
  font-size: 2rem;
  border-radius: 50%;
  border: 2px solid #4caf50;
  box-shadow: 0 2px 14px rgba(44,160,14,0.09);
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.2s;
}
.ai-chatbot-panel {
  width: 330px;
  max-width: 90vw;
  height: 420px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(76,175,80,0.18);
  position: absolute;
  right: 0;
  bottom: 80px;
  display: none;
  flex-direction: column;
  transition: opacity 0.15s;
}
.ai-chatbot-widget.open .ai-chatbot-panel {
  display: flex;
}
.ai-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #e8f5e8;
  padding: 16px;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  font-weight: 700;
  color: #1b5e20;
  font-size: 1.07rem;
}
.ai-chat-header button {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #388e3c;
  cursor: pointer;
}
.ai-chat-log {
  flex: 1;
  padding: 18px 16px;
  overflow-y: auto;
}
.ai-chat-message {
  border-radius: 12px;
  margin-bottom: 12px;
  padding: 10px 13px;
  background: #e8f5e8;
  color: #1b5e20;
}
.ai-chat-message.user {
  background: #4caf50;
  color: #fff;
  align-self: flex-end;
}
.ai-chat-message.bot {
  background: #fff;
  color: #1b5e20;
  border: 1px solid #e0e0e0;
}
.ai-chat-message ul {
  margin: 10px 0 0 14px;
  padding: 0;
  font-size: .96rem;
}
.ai-chat-inputbar {
  border-top: 1px solid #e0e0e0;
  padding: 8px 8px;
  display: flex;
  align-items: center;
  background: #fafafa;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}
.ai-chat-inputbar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  background: transparent;
  padding: 8px;
}
.ai-chat-inputbar button {
  background: #4caf50;
  color: #fff;
  font-size: 1.15rem;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  margin-left: 10px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .ai-fields-gallery { flex-direction: column; gap: 18px; }
  .ai-field-card.big { max-width: 99vw; min-width: 0; }
}
@media (max-width: 600px) {
  .ai-recommendation-card { padding: 12px 4vw 22px 4vw; }
  .ai-chatbot-widget { right: 6vw; bottom: 24px; }
}
