.custom-inputslider {
    width: 100%;
    margin-bottom: 20px;
    appearance: none;
    height: 5px;
    border-radius: 5px;
    background: linear-gradient(to right, rgb(14, 65, 148) 0%, lightgrey 0%);
    outline: none;
    transition: background 0.1s ease-in-out;
}

.slider-container {
  display: flex;
  align-items: center;
  width: 100%;
}

/* Range Slider */
input[type="range"] {
  -webkit-appearance: none;
  width: inherit; /* Adjust width as needed */
  height: 4px;  /* Thin line */
  background: linear-gradient(to right, var(--primary-color) 50%, lightgrey 50%); /* Custom gradient */
  border-radius: 5px;
  outline: none;
  transition: background 0.3s ease;
}

/* Track (line) */
input[type="range"]::-webkit-slider-runnable-track {
  background: transparent;
  height: 4px;
  border-radius: 5px;
}

/* Thumb (dot) */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--primary-color); /* Main color */
  border: 3px solid white;  /* White outline */
  position: relative;
  top: -5px; /* Moves the thumb upwards */
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.3s ease;
}

/* Thumb grows on hover */
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.3); /* Slightly larger on hover */
}

/* For Firefox */
input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: 3px solid white;  /* White outline */
  position: relative;
  top: -4px; /* Moves the thumb upwards */
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.3s ease;
}

/* Percentage Box */
.percentage-box {
  margin-left: 15px;
  padding: 5px 10px;
  background-color: var(--primary-color); /* Custom background color */
  border-radius: 8px;
  color: white; /* White text */
  font-size: 16px;
  font-weight: bold;
}