/* === GLOBAL STYLES === */
body {
  font-family: "Segoe UI", sans-serif;
  background: url('../images/coffee0.webp') no-repeat center center fixed;
  background-size: cover;
  color: #e2e2e2;
  position: relative;
  z-index: 1;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(20, 20, 20, 0.4), rgba(0, 0, 0, 0.6));
  z-index: -1;
}

/* === NAVBAR === */
.navbar {
  background-color: #5a7d63;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
  color: #fff !important;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.6);
}

.nav-link {
  transition: color 0.3s ease;
  color: #fff;
}

.nav-link:hover {
  color: #a9ffdc !important;
  text-shadow: 0 0 6px rgba(169, 255, 220, 0.3);
}

/* === DASHBOARD HEADER === */
.dashboard-header {
  background: #5a7d63;
  color: #fff;
  padding: 2rem 1rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* === CARD GLASS EFFECT === */
.card-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  backdrop-filter: blur(18px) saturate(180%);
  transition: all 0.4s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card-glass:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* === ICON CIRCLE === */
.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: #fff;
  margin: 0 auto;
}

/* === ICON GRADIENTS === */
.bg-gradient-primary { background: linear-gradient(135deg, #43a9f6, #5bf1c1); }
.bg-gradient-success { background: linear-gradient(135deg, #34ebba, #3eecac); }
.bg-gradient-warning { background: linear-gradient(135deg, #f8c926, #f78d2a); }
.bg-gradient-info    { background: linear-gradient(135deg, #00e5ff, #43a9f6); }
.bg-gradient-danger  { background: linear-gradient(135deg, #ff5c93, #ff8a65); }
.bg-gradient-purple  { background: linear-gradient(135deg, #c86dd7, #3023ae); }

/* === TICKER === */
.ticker-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.7rem 0;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f1f1;
}

.ticker-track {
  display: inline-flex;
  animation: ticker-scroll 80s linear infinite;
  gap: 2rem;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  border-right: 1px solid rgba(255,255,255,0.1);
}

.ticker-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.category-badge {
  background: #43a9f6;
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.product-name, .price {
  font-weight: 600;
  font-size: 1.05rem;
  white-space: nowrap;
}

.price {
  color: #e2e2e2;
}

/* === FOOTER === */
footer {
  background: rgba(28, 28, 28, 0.9);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
  padding: 1rem;
  text-align: center;
  margin-top: 3rem;
}

/* === BADGES & EFFECTS === */
.badge-featured {
  background: #52b788;
  color: #fff;
  box-shadow: 0 0 10px rgba(82, 255, 176, 0.6);
}

.badge-live {
  background: rgba(255, 255, 255, 0.15);
  color: #b4ffcd;
  border: 1px solid #52b788;
}

.badge-archived {
  background: rgba(255, 255, 255, 0.08);
  color: #ccc;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-ai {
  background: linear-gradient(135deg, #48c774, #2d6a4f);
  color: #f4fff8;
  font-weight: 800;
  box-shadow: 0 0 14px rgba(82, 255, 176, 0.5);
}

/* === CHART CARD TILE === */
.card-chart-tile {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease-in-out;
  padding: 1.5rem;
  color: #e2e2e2;
}

.card-chart-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

/* === SOIL ALERT BADGE === */
.soil-alert-badge {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}

.soil-alert-badge.green { background: #28d76b; }
.soil-alert-badge.yellow { background: #ffc107; color: #111; }
.soil-alert-badge.red { background: #dc3545; }

/* === MARKET TREND === */
.market-trend {
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  gap: 10px;
  padding: 0.5rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.market-trend .price::after {
  content: " ↗";
  color: #5bf1c1;
  font-weight: bold;
}

/* === NDVI HEALTH === */
.ndvi-health.low { color: #f44336; }
.ndvi-health.moderate { color: #ffc107; }
.ndvi-health.healthy { color: #4caf50; }

/* === FERTILITY SUMMARY CHART === */
.fertility-summary canvas {
  max-width: 100%;
  margin-top: 1rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.05);
  padding: 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.fertility-summary-title {
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  color: #5bf1c1;
  margin-bottom: 0.5rem;
}

.fertility-summary-labels {
  display: flex;
  justify-content: space-around;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  color: #ccc;
}


/* === DASHBOARD HEADER === */
.dashboard-header {
  background: #237a3c; /* Senwes-inspired dark green */
  color: #ffffff;
  padding: 2rem 1rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.95);
}

/* === NAVBAR === */
.navbar {
  background-color: #237a3c;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* === NAVBAR LINKS === */
.navbar a, .navbar-brand, .navbar-text {
  color: #ffffff;
}

.navbar a:hover {
  color: #f4f4f4;
}








/* === GLOBAL STYLES === */
body {
  font-family: "Segoe UI", sans-serif;
  color: #e2e2e2;
  margin: 0;
  overflow-x: hidden;
  background: #111;
  position: relative;
}

/* === BACKGROUND SLIDESHOW === */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  opacity: 0.8;
  animation: bgSlideshow 1400s infinite ease-in-out;
  /* Optional smooth fade (commented out for now) */
  /* transition: background-image 1s ease-in-out; */
}


/* === BACKGROUND SLIDESHOW === */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  opacity: 0.8;
  animation: bgSlideshow 1400s infinite ease-in-out;
  transition: background-image 1s ease-in-out;
}


/* === KEYFRAME ANIMATION === */
@keyframes bgSlideshow {
  /* 14 images, each ~7.14% */
  0%    { background-image: url('../images/coffee0.webp'); }
  7.14% { background-image: url('../images/coffee1.webp'); }
  14.28% { background-image: url('../images/coffee2.webp'); }
  21.42% { background-image: url('../images/coffee3.webp'); }
  28.56% { background-image: url('../images/coffee4.webp'); }
  35.70% { background-image: url('../images/coffee5.webp'); }
  42.84% { background-image: url('../images/coffee6.webp'); }
  49.98% { background-image: url('../images/coffee7.webp'); }
  57.12% { background-image: url('../images/coffee10.webp'); }
  64.26% { background-image: url('../images/coffee9.webp'); }
  71.40% { background-image: url('../images/coffee10.webp'); }
  78.54% { background-image: url('../images/coffee11.webp'); }
  85.68% { background-image: url('../images/coffee12.webp'); }
  92.82% { background-image: url('../images/coffee6.webp'); }
  100%   { background-image: url('../images/coffee0.webp'); } /* Loop back */
}

/* === OPTIONAL: Slideshow container with similar styling === */
.slideshow-hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  animation: bgSlideshow 1400s infinite ease-in-out;
}





/* ------------------ General ------------------ */
body {
  font-family: "Segoe UI", sans-serif;
  background: linear-gradient(to bottom, #f5fdf4, #e7f5e8); /* Light earthy background */
  color: #1e293b;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

/* Light mode support */
body.light-mode {
  background: #ffffff;
  color: #1e293b;
}

/* ------------------ Bright Card Chart Tiles ------------------ */
.card-chart-tile {
  background: linear-gradient(to bottom right, #f0fdf4, #c7f3d0); /* light green blend */
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background 0.3s;
  color: #1e293b;
}

.card-chart-tile:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

/* Light mode for cards */
.card-chart-tile.light-mode {
  background: #ffffff;
  color: #1e293b;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}


/* ------------------ Bright Card Chart Tiles ------------------ */
.card-chart-tile {
  background: rgba(44, 62, 80, 0.85); /* toned down dark blue with transparency */
  backdrop-filter: blur(8px); /* adds a soft glass effect */
  -webkit-backdrop-filter: blur(8px);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s;
}
.card-chart-tile:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}


/* === DASHBOARD HEADER === */
/* === DASHBOARD HEADER === */
.dashboard-header {
  background: rgba(30, 61, 50, 0.65); /* Senwes dark green with 85% opacity */
  color: #fff;
  padding: 2rem 1rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(6px); /* Optional: gives it a subtle modern glass effect */
}

body {
  font-family: 'Poppins', sans-serif;
}



.modal-content {
  background: rgba(15, 35, 20, 0.85);
  border: 2px solid #4caf50;
  box-shadow: 0 0 20px #81c78466;
}





.nav-tabs .nav-link {
  color: #007bff; /* blue text for unselected tabs */
  font-weight: 600;
  font-size: 1rem;
}

.nav-tabs .nav-link.active {
  color: #0056b3; /* darker blue for active tab */
  background-color: #e9ecef; /* light bg to highlight active tab */
  border-color: #dee2e6 #dee2e6 #fff; /* bootstrap default */
}

.nav-tabs {
  border-bottom: 2px solid #007bff !important;
}



.ticker-container {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  padding: 0.7rem 0;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f1f1;
  background: linear-gradient(to right, rgba(0,0,0,0.5), rgba(0,0,0,0.3)); /* Better contrast */
  backdrop-filter: blur(6px); /* Softens background details */
}

.ticker-item {
  font-size: clamp(0.85rem, 1.2vw, 1rem); /* Responsive size */
}

:root {
  --ticker-bg: rgba(0,0,0,0.5);
  --ticker-text: #ffffff;
}

.light-theme {
  --ticker-bg: rgba(255,255,255,0.8);
  --ticker-text: #000000;
}

.ticker-container {
  background: var(--ticker-bg);
  color: var(--ticker-text);
}
.ticker-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  image-rendering: auto; /* Avoid blurriness */
}
.ticker-container {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  padding: 0.7rem 0;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f1f1;
  background: linear-gradient(to right, rgba(0,0,0,0.5), rgba(0,0,0,0.3));
  backdrop-filter: blur(6px);
}

.ticker-track {
  display: inline-flex;
  animation: ticker-scroll 80s linear infinite;
  gap: 2rem;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  color: #fff;
  font-weight: 600;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  border-right: 1px solid rgba(255,255,255,0.1);
}

.ticker-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  image-rendering: auto;
}



@font-face {
  font-family: 'MaterialIcons';
  src: url('/fonts/materialicons.woff2') format('woff2');
  font-display: swap;
}

































.dashboard-card {
    background: linear-gradient(135deg, rgba(20, 92, 76, 0.85), rgba(0, 150, 136, 0.85));
    backdrop-filter: blur(4px) saturate(180%);
    border-radius: 1.25rem;
    padding: 2rem 1rem;
    text-align: center;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.dashboard-card::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 60%);
    animation: rotateGlow 10s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.dashboard-card:hover {
    transform: scale(1.03) translateY(-6px);
    box-shadow: 0 15px 45px rgba(0, 255, 200, 0.2);
}

.dashboard-card h4 {
    font-weight: 800;
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
    text-transform: uppercase;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 1;
}

.dashboard-card p,
.dashboard-card strong {
    margin: 0.25rem 0;
    font-size: 0.95rem;
    color: #e0f7f1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.7rem;
    color: white;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.orders-icon {
    background: linear-gradient(135deg, #00b894, #55efc4);
}
.suppliers-icon {
    background: linear-gradient(135deg, #fdcb6e, #e17055);
}
.partners-icon {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}
.projects-icon {
    background: linear-gradient(135deg, #2ec4b6, #145c4c);
}


.icon-circle:hover {
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}



















.dashboard-card {
  background: rgba(20, 92, 76, 0.9);
  backdrop-filter: blur(4px) saturate(180%);
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  text-align: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
}

.dashboard-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.dashboard-card h4 {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.dashboard-card small {
  font-size: 0.85rem;
  color: #e0e0e0;
  opacity: 0.9;
}

.stat-line {
  font-size: 0.9rem;
  margin: 0.4rem 0 0.6rem;
  color: #ffffff;
}



















.fade-in-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 0.2s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Add staggered delay for each card */
.fade-in-card:nth-child(1) { animation-delay: 0.1s; }
.fade-in-card:nth-child(2) { animation-delay: 0.2s; }
.fade-in-card:nth-child(3) { animation-delay: 0.3s; }
.fade-in-card:nth-child(4) { animation-delay: 0.4s; }
.fade-in-card:nth-child(5) { animation-delay: 0.5s; }
.fade-in-card:nth-child(6) { animation-delay: 0.6s; }







.agrifarm-logo {
  width: clamp(60px, 7vw, 90px);
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* Larger on desktop, but not too huge */
@media (min-width: 992px) {
  .agrifarm-logo {
    width: clamp(100px, 12vw, 140px);
  }
}

#agrifarmBrand:hover .agrifarm-logo {
  transform: scale(1.05);
}

#agrifarmBrand {
  color: #000;
  transition: all 0.3s ease;
}

#agrifarmBrand:hover {
  color: #007bff;
  text-decoration: none;
}

.brand-title {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}






.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link i {
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

/* Gold hover */
.nav-link:hover i {
  color: #d4af37;
}



.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #222;
  transition: color 0.3s ease;
}

.nav-link .nav-icon {
  font-size: 22px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link .nav-text {
  font-size: 16px;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #c79a28; /* Gold on hover */
}

.nav-link:hover .nav-icon {
  color: #c79a28;
  transform: scale(1.15);
}

.nav-link:hover .nav-text {
  color: #c79a28;
}





.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #222;
  transition: color 0.3s ease;
}

.nav-link .nav-icon {
  font-size: 22px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link:hover {
  color: #c79a28;
}

.nav-link:hover .nav-icon {
  color: #c79a28;
  transform: scale(1.15);
}



/* Style nav links with icons */
.nav-link i {
  margin-right: 8px;
  font-size: 1.2rem;
  vertical-align: middle;
  transition: color 0.3s ease;
}

/* Optionally make icons bigger on large screens */
@media (min-width: 992px) {
  .nav-link i {
    font-size: 1.3rem;
    margin-right: 10px;
  }
}
.nav-link:hover i {
  color: #cda434; /* or try #d4af37 for a richer tone */
}






