/* Style for the wizard container */
.wizard-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #756e6e;
}

.wizard-container h3 {
  margin: 0 0 10px 0;
  font-size: 15px;
  color: #333;
}

/* Style for selection boxes */
.selection-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.selection-box {
  padding: 10px;
  border: 1px solid #a9a3a3;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  /* background-color: #4CAF50; */
  color: #b21717;
  font-size: 12px;
  transition: all 0.2s;
}

.selection-box:hover {
  border: 2px solid #6a85b6;
  background-color: #b0beb1;
}

/* Highlight the active selection
  .selection-box.active {
    border: 2px solid #000000;
    background-color: #4CAF50;
  } */

/* Slider container style */
.slider-container {
  margin-top: 1%;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
}

.slider-container label {
  margin-bottom: 1%;
}

/* .slider-container input[type="range"] {
    width: 80%;
    cursor: pointer;
  } */

.slider-container input[type="range"] {
  -webkit-appearance: none; /* Remove default styling */
  width: 85%;
  height: 8px;
  background: #d4edda; /* Light green background */
  border-radius: 5px;
  outline: none;
  cursor: pointer;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; /* Remove default thumb styling */
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #28a745; /* Green thumb */
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-container input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #28a745; /* Green thumb */
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-container input[type="range"]::-ms-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #28a745; /* Green thumb */
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.horizontal-tools {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* ################################################################ */
/* ################################################################ */
/* ################################################################ */

/* Specifically target the draw control toolbar */
.leaflet-draw {
  position: absolute; /* Override default positioning */
  top: 80px; /* Move lower (adjust this value) */
  left: 0; /* Adjust horizontal position */
  z-index: 1000; /* Ensure it's on top of other elements */
}

/* Glowing effect for the draw toolbar buttons */
.leaflet-draw-toolbar a {
  border: 2px solid #4CAF50;
  box-shadow: 0 0 15px #4CAF50, 0 0 30px #4CAF50;
  animation: glow 1.5s infinite ease-in-out;
}

/* Glowing effect for the Analyse button */
#calc-button.glow {
  border: 2px solid #4CAF50;
  box-shadow: 0 0 15px #4CAF50, 0 0 30px #4CAF50;
  animation: glow 2.5s infinite ease-in-out;
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 15px #fefffe, 0 0 30px #4CAF50;
  }
  50% {
    box-shadow: 0 0 25px #4CAF50, 0 0 50px #4CAF50;
  }
}

/* ################################################################ */
/* ################################################################ */
/* ################################################################ */

/* Colorbar container styling */
.leaflet-colorbar .colorbar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: white;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  font-family: Arial, sans-serif;
  font-size: 12px;
  line-height: 1.5;
}

/* Gradient bar */
.leaflet-colorbar .colorbar-gradient {
  width: 20px;
  height: 200px;
  background: linear-gradient(to top, blue, lime, red); /* Match heatmap gradient */
  border-radius: 4px;
  margin-bottom: 5px;
  position: relative;
}

/* Colorbar labels */
.leaflet-colorbar .colorbar-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 200px;
}

.leaflet-colorbar .colorbar-labels span {
  font-weight: bold;
  text-align: right;
}

/* ################################################################ */
#timeline-slider {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50px;
  max-width: 70%;
  height: 6px;
  background: linear-gradient(90deg, #f0f0f0, #ddd);
  border-radius: 5px;
  position: relative;
}

.noUi-handle {
  width: 20px;
  height: 20px;
  background: #007bff;
  border: 2px solid #fff;
  border-radius: 50%; /* Rounded handle */
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.noUi-tooltip {
  background: #007bff;
  color: white;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 12px;
  white-space: nowrap;
  transform: translateY(-150%); /* Place tooltips above the slider */
}

.noUi-connect {
  background: #007bff;
  border-radius: 5px;
}

.noUi-pips .noUi-value {
  font-size: 12px;
  color: #666;
  margin-top: 10px;
}

.noUi-pips .noUi-marker {
  background: #007bff;
}
/* ==================================================================== */

/* Container for the new KPI buttons once the 'KPIs' button is clicked */
.kpi-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;  
  /* Start invisible and slightly scaled down for a pop-in animation */
  opacity: 0;
  transform: scale(0.8);
  
  /* Smooth transition for both opacity and scale */
  transition: opacity 0.5s ease, transform 0.5s ease;
  
  /* Some basic styling */
  background-color: #4caf5061;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 5px;
  margin-left: 1rem; /* Adjust spacing if needed */
  margin-top: -6px;
}

/* Once this class is added, the container will fade in and scale to normal */
.kpi-container.show {
  opacity: 1;
  transform: scale(1);
}

/* An umbrella text above the 5 buttons */
.kpi-umbrella {
  font-weight: bold;
  font-size: 1.2rem;
  margin-right: 2px;
  margin-left: 5px;
  /* margin-bottom: 0.5rem; */
}

/* Style the sub-buttons, for example: */
.kpi-container button {
  /* margin: 0.25rem;
  padding: 0.5rem 1rem; */
  width: 80px;
  cursor: pointer;
  border: none;
  background: #e0e0e0;
  color: #333;
  border-radius: 4px;
  transition: background 0.3s;
}

.kpi-container button:hover {
  background-color: #ccc;
}

.kpi-container button.active {
  background: green;
  color: white;
  border-radius: 10px;
}

/* ########################################################################### */

    /* Center the loading container */
    .loading-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin-left: 50%;
      width: 100%;
      font-family: Arial, sans-serif;
    }

    /* Circular spinner */
    .spinner {
      position: relative;
      width: 100px;
      height: 100px;
      border: 8px solid #f3f3f3;
      border-top: 8px solid #3498db;
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }

    /* Animation for the spinner */
    @keyframes spin {
      0% {
        transform: rotate(0deg);
      }
      100% {
        transform: rotate(360deg);
      }
    }

    /* "Calculating..." text */
    .text {
      margin-top: 20px;
      font-size: 18px;
      font-weight: bold;
      text-align: center;
    }

    /* Timer below "Calculating..." */
    .timer {
      margin-top: 10px;
      font-size: 16px;
      color: #555;
    }