@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400&family=Fira+Code:600&display=swap");

.range-container {
  width: 100%;
  /* podes ajustar */
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  font-family: "Inter", sans-serif;
}

/* Container do slider */

.slider-wrap {
  position: relative;
  width: 100%;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 15px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  padding: 0;
  margin: 0;
}

input[type="range"]::-moz-range-track {
  height: 15px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

/* Thumb */

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: linear-gradient(to right, #f563ff, #8a46c3);
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

input[type="range"]::-moz-range-thumb {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: linear-gradient(to right, #f563ff, #8a46c3);
  border: none;
  cursor: pointer;
}

/* Track preenchida */

.slider-fill {
  position: absolute;
  height: 15px;
  top: 10%;
  left: 0;
  border-radius: 8px;
  background: linear-gradient(to right, #f563ff, #8a46c3);
  pointer-events: none;
  z-index: 1;
}

/* Número sobre a bolinha */

.slider-value {
  position: absolute;
  top: -45px;
  transform: translateX(-50%);
  font-family: "Fira Code", monospace;
  font-weight: 600;
  font-size: 18px;
  color: white;
  background: rgba(255, 255, 255, 0.3);
  padding: 2px 10px;
  border: 1px solid #f563ff;
  border-radius: 10px;
  pointer-events: none;
  white-space: nowrap;
}
