/* ==========================================
   ESTILOS - REGISTRAR DOLOR
   ========================================== */

.gauge-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 8px;
}

.gauge-glow {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-menta-suave) 0%, transparent 70%);
  animation: pulseGlow 2.6s ease-in-out infinite;
  transition: background 0.4s ease;
}

.gauge-ring {
  position: relative;
}

#gauge-arc {
  stroke: var(--color-verde);
  stroke-dasharray: 0 502.65;
  transition: stroke-dasharray 0.5s cubic-bezier(.34, 1.1, .4, 1), stroke 0.4s ease;
}

.gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gauge-number {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  color: var(--color-verde);
  transition: color 0.4s ease;
}

.gauge-total {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-gris);
  margin-top: 2px;
}

.nivel-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--borde-radio-full);
  background: var(--color-menta-suave);
  color: var(--color-verde);
  font-size: 13px;
  font-weight: 800;
  transition: background-color 0.4s ease, color 0.4s ease;
}

#nivel-dolor {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: var(--borde-radio-full);
  background: linear-gradient(to right, var(--color-verde) 0%, var(--color-verde) 0%, var(--color-gris-claro) 0%, var(--color-gris-claro) 100%);
  cursor: pointer;
}

#nivel-dolor::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  border: 4px solid var(--color-verde);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  transition: border-color 0.3s ease;
}

#nivel-dolor::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  border: 4px solid var(--color-verde);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  transition: border-color 0.3s ease;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-gris);
}

@media (max-width: 480px) {
  .gauge-wrap {
    width: 170px;
    height: 170px;
  }

  .gauge-number {
    font-size: 44px;
  }
}
