body {
  background-color: #121212;
  color: #f5f5f5;
  font-family: "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
}

.titulo {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #00ffcc;
  text-shadow: 0 0 10px #00ffcc;
}

.pulseira {
  width: 250px;
  height: 50px;
  background: #333;
  border-radius: 25px;
  position: relative;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.589);
  display: flex;
  align-items: center;
  justify-content: center;
}

.led {
  width: 50px;
  height: 27px;
  border-radius: 25%;
  background: rgb(9, 182, 9);
  transition: background 0.4s, box-shadow 0.4s;
}

.vibrando {
  animation: vibrar 0.15s infinite alternate;
}

@keyframes vibrar {
  from { transform: translateX(-2px); }
  to { transform: translateX(2px); }
}

.controles {
  margin-top: 30px;
  text-align: center;
}

input[type="range"] {
  width: 300px;
  margin-top: 10px;

}

/* Força o thumb a começar exatamente no início */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 300px;
  height: 6px;
  border-radius: 5px;
  background: linear-gradient(90deg, #2e7453, #2a6e9b);
  outline: none;
  margin: 0;
  padding: 0;
}

/* Thumb (bolinha) */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0a9478;
  box-shadow: 0 0 10px #1ebe9e, 0 0 20px #20a58a;
  cursor: pointer;
  transform: translateX(0); /* força o início */
  margin-top: -7px; /* centraliza verticalmente */
}

/* Remove qualquer espaçamento que atrase o início */
input[type="range"]::-webkit-slider-runnable-track {
  margin: 0;
  padding: 0;
}
