body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f7f7f7;
}

.header-text {
  text-align: center;
  background: #007b83;
  color: white;
  padding: 10px;
  margin: 0 0 10px 0;
}

#map {
  height: 400px;
  border: 1px solid #aaa;
  width: 100%;
  max-width: 100%;
  position: relative;
}

#controls {
  max-width: 320px;
  margin: 15px auto;
  padding: 15px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#controls label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.date-inputs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#loadBtn,
#downloadOverlayBtn {
  padding: 10px;
  border: none;
  border-radius: 6px;
  background: #007b83;
  color: white;
  font-size: 15px;
  cursor: pointer;
}

#loadBtn:hover,
#downloadOverlayBtn:hover {
  background: #009da6;
}

#opacityRange {
  width: 100%;
}

#chartSection {
  max-width: 600px;
  margin: 20px auto;
  text-align: center;
}

#ndviChart {
  width: 100%;
  max-width: 600px;
  border: 1px solid #ddd;
  margin: 10px auto;
  display: block;
}

.error {
  color: red;
  text-align: center;
  margin: 10px 0;
}

/* Legend styling */
.leaflet-legend {
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 13px;
  line-height: 1.3;
  color: #333;
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.leaflet-legend img {
  display: block;
  width: 160px;
  height: 20px;
  margin-bottom: 4px;
}

#resetBtn {
  margin-left: 10px;
  background-color: #d9534f;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}
#resetBtn:hover {
  background-color: #c9302c;
}

@media (max-width: 768px) {
  #map {
    height: 320px;
  }
  #controls {
    width: 90%;
  }
  #chartSection {
    width: 95%;
  }
}


