    /* --- Global Theme Colors --- */
    body.light-theme {
      --bg-color: #f9fafb;
      --text-color: #1f2937;
      --card-bg: linear-gradient(to right, #e0f7fa, #ffffff);
      --nav-bg: #ffffff;
    }

    body.dark-theme {
      --bg-color: #1e293b;
      --text-color: #f1f5f9;
      --card-bg: linear-gradient(to right, #2d3748, #1a202c);
      --nav-bg: #2c3e50;
    }

    body {
      background-color: var(--bg-color);
      color: var(--text-color);
      transition: background-color 0.3s, color 0.3s;
        overflow-x: hidden;
    }

    /* --- Banner Image --- */
    .top-banner {
      width: 100%;
      height: 150px;
      object-fit: cover;
      border-bottom: 2px solid #ccc;
    }

    /* --- Header --- */
    .top-header {
      background-color: var(--nav-bg);
      color: var(--text-color);
    }

    .app-title {
      font-size: 1.25rem;
    }
  .tm::after {
    content: "™";
    font-size: 0.7em; /* smaller than main text */
    vertical-align: super; /* superscript */
    margin-left: 2px;
  }
    .lang-select {
      max-width: 100px;
    }

    /* --- Custom Card --- */
    .card-custom {
      background: var(--card-bg);
      border-radius: 12px;
      padding: 1rem;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      transition: all 0.3s;
    }

    .card-custom i {
      font-size: 1.25rem;
    }

    .label {
      font-weight: normal;
      margin-left: 0.5rem;
    }

    /* --- Bottom Navigation --- */
    .nav-links {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background-color: var(--nav-bg);
      display: flex;
      justify-content: space-around;
      padding: 0.6rem 0;
      border-top: 1px solid #ddd;
      box-shadow: 0 -1px 6px rgba(0,0,0,0.15);
      z-index: 1000;
    }

    .nav-links a {
      text-align: center;
      color: var(--text-color);
      text-decoration: none;
      font-size: 0.85rem;
    }

    .nav-links i {
      display: block;
      font-size: 1.2rem;
    }
/* 🔹 Bottom Navigation Press Animation */
.nav-links a {
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  border-radius: 8px; /* for glow */
  position: relative;
  overflow: hidden; /* for ripple if enabled */
}

.nav-links a:active {
  transform: scale(0.9); /* press shrink */
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.5); /* green glow */
}

.nav-links a i {
  transition: transform 0.2s ease;
}

.nav-links a:active i {
  transform: scale(1.3) rotate(-5deg); /* icon bounce */
}

    /* --- Profile Image --- */
    .profile-img {
      width: 32px;
      height: 32px;
      cursor: pointer;
    }

    /* --- Responsive Container --- */
    .container-custom {
      padding-bottom: 80px;
    }
.swiper {
  width: 100%;
  padding: 20px 0;
  overflow: hidden;
}

  .swiper-slide {
    background: #111;
    border-radius: 20px;
    color: white;
    min-height: 330px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
      padding: 15px;
  box-sizing: border-box;
    flex: 1 0 100%;
  overflow: hidden;
  }

  .gradient-1 { background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); }
  .gradient-2 { background: linear-gradient(135deg, #1D976C, #93F9B9); }
  .gradient-3 { background: linear-gradient(135deg, #373B44, #4286f4); }

  .know-more-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: 999px;
    align-self: end;
    margin-top: auto;
  }

.chart-container {
  background: linear-gradient(to top right, #f8faff, #e0f7fa);
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  margin: 10px auto;
  max-width: 700px;
  width: 100%;
  flex-grow: 1;
   max-height: none;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.chart-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;  /* or contain if needed */
  z-index: 1;
  opacity: 0.15;      /* adjust transparency */
}

/* Modal header - bold and with shadow */
#deltaTModal .modal-header {
  background: linear-gradient(90deg, #f9a825, #fbc02d);
  color: white;
  border-bottom: 2px solid #f57f17;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Modal content with soft shadow and rounded corners */
#deltaTModal .modal-content {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Table enhancements */
#deltaTModal table.table {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  margin: 0;
}

#deltaTModal table.table th {
  background-color: #ffecb3;
  font-weight: 600;
  text-align: center;
  color: #5d4037;
}

#deltaTModal table.table td {
  text-align: center;
  vertical-align: middle;
  font-size: 15px;
}

#deltaTModal .modal-body {
  background-color: #fefefe;
  padding: 20px;
}
.movers {
  /* Optional: add swiper-specific styling if needed */
}

.movers-wrapper {
  display: flex;
  transition: transform 0.3s ease-in-out;
}

.movers-slide {
  flex-shrink: 0;
  width: 100%;
  /* Optional padding/margin */
}

.movers-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  position: relative;
  z-index: 2;
}

.movers-pagination .swiper-pagination-bullet {
  background-color: #007bff;
  opacity: 0.7;
  margin: 0 4px;
}

.movers-pagination .swiper-pagination-bullet-active {
  opacity: 1;
  background-color: #0056b3;
}
.disease-pagination {
  display: flex !important;
  justify-content: center !important;
  align-items: center;
  margin-top: 10px;
  position: relative;
  z-index: 2;
}

.disease-pagination .swiper-pagination-bullet {
  background-color: #007bff;
  opacity: 0.7;
  margin: 0 4px;
}

.disease-pagination .swiper-pagination-bullet-active {
  opacity: 1;
  background-color: #0056b3;
}
.draw-area-tooltip {
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  pointer-events: none;
}
/* --- Custom Fungicide Table --- */
.custom-fungicide-table {
  border: none;
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.custom-fungicide-table thead th {
  background: #0288d1;
  color: white;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px;
}

.custom-fungicide-table tbody td {
  padding: 10px;
  vertical-align: middle;
  font-size: 0.95rem;
  color: var(--text-color);
}

.custom-fungicide-table tbody tr:hover {
  background-color: rgba(0, 136, 209, 0.05);
}

.custom-fungicide-table .disease-row td {
  background-color: #ffe082;
  font-weight: bold;
  text-align: left;
  font-size: 1rem;
}

.custom-fungicide-table .group-row td {
  background-color: #c8e6c9;
  color: #2e7d32;
  font-weight: 600;
  font-size: 0.95rem;
}

.custom-fungicide-table .fungicide-row td a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.custom-fungicide-table .fungicide-row td a:hover {
  text-decoration: underline;
}
.group-row {
  background-color: #e0f7e9;
  color: #2e7d32;
  font-weight: 600;
}
/* --- Insecticide Table Styling --- */
.custom-insecticide-table {
  border: none;
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.custom-insecticide-table thead th {
  background: #00796b;
  color: #fff;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px;
}

.custom-insecticide-table tbody td {
  padding: 10px;
  vertical-align: middle;
  font-size: 0.95rem;
  color: var(--text-color);
}

.custom-insecticide-table .disease-row td {
  background-color: #ffe082;
  font-weight: bold;
  text-align: left;
  font-size: 1rem;
}

.custom-insecticide-table .group-row td {
  background-color: #c8e6c9;
  color: #2e7d32;
  font-weight: 600;
  font-size: 0.95rem;
}

.custom-insecticide-table .insecticide-row td a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.custom-insecticide-table .insecticide-row td a:hover {
  text-decoration: underline;
}
.modal-backdrop.show {
  z-index: 1040;
}

.modal.show {
  z-index: 1050;
}
/* Core Weather Card Styling */
.weather-card {
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 1.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color);
}

.weather-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}
.weather-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: var(--text-color);
}

.weather-icon {
  color: #0288d1; /* consistent theme blue */
  font-size: 1.2rem;
  min-width: 24px;
  text-align: center;
}

.backBtn {
  width: 50px;
  height: 50px;
  border-radius: 0.5rem 0 0 0.5rem; /* rounded left side */
  background: linear-gradient(45deg, #ff4d4d, #ff9933, #66ccff, #66ff66);
  color: white;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: -2px 2px 10px rgba(0,0,0,0.3);
  padding: 0;
  z-index: 1030;
  text-decoration: none; /* remove underline */
}
.backBtn:hover {
  transform: scale(1.1);
  transition: transform 0.2s;
}

.card-new {
    background: var(--card-bg);
    border-radius: 12px;             /* More rounded corners */
    padding: 1rem;                   /* More spacing inside card */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Stronger shadow */
    text-align: center;
    display: flex;
    flex-direction: column;          /* Stack vertically */
    align-items: center;
    transition: transform 0.2s;
    color: #f7fafc;                  /* Light text on dark background */
    font-weight: 500;
}

.card-new:hover {
    transform: translateY(-2px);
}

.card-new img {
    width: 100%;                      /* Full width of card */
    height: auto;                      /* Maintain aspect ratio */
    max-height: 150px;                 /* Optional max height */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

.card-new h5 {
    font-size: 1rem;
    margin: 0.25rem 0;
}

.card-new .badge {
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Make all modals follow current theme */
body.light-theme .modal-content,
body.light-theme .modal-body,
body.dark-theme .modal-content,
body.dark-theme .modal-body {
    background-color: var(--bg-color);
}

body.dark-theme #deltaTModal .modal-content,
body.dark-theme #deltaTModal .modal-body,
body.dark-theme #deltaTModal .modal-header {
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
}

  /* Fullscreen overlay */
  #page-transition {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  #page-transition.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Particle container */
  .particle-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20px, 40px));
    gap: 10px;
    width: 100%;
    max-width: 220px;
    justify-content: center;
    transform: scale(0);
    animation: popIn 0.5s ease forwards;
  }

  /* Particle base */
  .particle {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 1.2s infinite alternate ease-in-out;
  }

  /* Shape variations */
  .circle { border-radius: 50%; }
  .square { border-radius: 6px; }
  .triangle {
    width: 0; height: 0;
    border-left: 12.5px solid transparent;
    border-right: 12.5px solid transparent;
    border-bottom: 25px solid;
    background: none;
  }
  .hexagon {
    width: 25px;
    height: 14.43px;
    background-color: inherit;
    position: relative;
    margin: 5.78px 0;
  }
  .hexagon:before,
  .hexagon:after {
    content: "";
    position: absolute;
    width: 0;
    border-left: 12.5px solid transparent;
    border-right: 12.5px solid transparent;
  }
  .hexagon:before {
    bottom: 100%;
    border-bottom: 7.22px solid inherit;
  }
  .hexagon:after {
    top: 100%;
    border-top: 7.22px solid inherit;
  }

  /* Colors & animation delays */
  .particle:nth-child(1) { background: #ff6b6b; animation-delay: 0s; }
  .particle:nth-child(2) { background: #feca57; animation-delay: 0.1s; }
  .particle:nth-child(3) { background: #48dbfb; animation-delay: 0.2s; }
  .particle:nth-child(4) { background: #1dd1a1; animation-delay: 0.3s; }
  .particle:nth-child(5) { background: #5f27cd; animation-delay: 0.4s; }
  .particle:nth-child(6) { background: #ff9ff3; animation-delay: 0.5s; }
  .particle:nth-child(7) { background: #00d2d3; animation-delay: 0.6s; }
  .particle:nth-child(8) { background: #54a0ff; animation-delay: 0.7s; }
  .particle:nth-child(9) { background: #ffb142; animation-delay: 0.8s; }
  .particle:nth-child(10) { background: #ff3f34; animation-delay: 0.9s; }

  @keyframes popIn {
    to { transform: scale(1); }
  }

  @keyframes float {
    to { transform: translateY(-12px) rotate(10deg); }
  }

  /* Message */
  .message {
    margin-top: 30px;
    font-size: 1rem;
    color: #2c3e50;
    text-align: center;
    max-width: 90%;
    line-height: 1.5;
    opacity: 0;
    animation: fadeIn 1s 0.5s forwards;
  }

  @keyframes fadeIn {
    to { opacity: 1; }
  }
  
  #page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(245, 253, 245, 0.95); /* light greenish semi-opaque background */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999; /* ensure above everything */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#page-transition.active {
  opacity: 1;
  pointer-events: auto;
}

/* Particle container stays centered */
.particle-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

/* Example particles */
.particle {
  width: 30px;
  height: 30px;
  background-color: #48dbfb;
  border-radius: 50%;
  animation: bounce 1s infinite alternate;
}

@keyframes bounce {
  to { transform: translateY(-10px); }
}

.message {
  margin-top: 30px;
  font-size: 1rem;
  color: #2c3e50;
  text-align: center;
  max-width: 80%;
}
  .weather-card {
    border: none;
    border-radius: 1rem;
    background: linear-gradient(135deg, #e3f2fd, #f8fbff);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
  }
  .weather-card:hover {
    transform: translateY(-3px);
  }
  .weather-card h6 {
    font-weight: 600;
    color: #1565c0;
  }
  .weather-params {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;
    font-size: 0.9rem;
  }
  .weather-params i {
    width: 20px;
  }
  .param-item {
    text-align: left;
    padding: 2px 4px;
  }
