/* Estilo compartido para las tres versiones didácticas de Apple stock.
   Mismo lenguaje visual que hover-didactico: fondo blanco, sans-serif,
   panel de info con borde discontinuo. */

html, body { background: #fff; margin: 0; padding: 0; }
body { font-family: sans-serif; padding: 20px; color: #1a1a1a; }

#myDiv { width: 720px; height: 320px; }

#info {
  width: 720px; box-sizing: border-box;
  margin-top: 0.25rem; padding: 0.5rem 1rem;
  border: 1px dashed #aaa; min-height: 1.5em;
  font-size: 18px;
  color: #1a1a1a;
}
#info .muted { color: #999; }

/* Control bar (dropdown / sliders) above the chart */
.controls {
  width: 720px; box-sizing: border-box;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: #555;
}
.controls select {
  font-size: 14px; padding: 4px 8px;
  border: 1px solid #bbb; border-radius: 4px; background: #fff;
}

/* Slider double-thumb */
.slider-wrap {
  width: 720px; position: relative;
  height: 32px; margin-bottom: 6px;
}
.slider-track {
  position: absolute; top: 14px; left: 0; right: 0;
  height: 4px; background: #ddd; border-radius: 2px;
  pointer-events: none;
}
.slider-wrap input[type=range] {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 32px;
  background: transparent; pointer-events: none;
  -webkit-appearance: none; appearance: none;
  margin: 0;
}
.slider-wrap input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: #3264fe; cursor: pointer; pointer-events: auto;
  border: 2px solid #fff; box-shadow: 0 0 2px rgba(0,0,0,0.4);
}
.slider-wrap input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: #3264fe; cursor: pointer; pointer-events: auto;
  border: 2px solid #fff; box-shadow: 0 0 2px rgba(0,0,0,0.4);
}
.slider-range-out {
  font-size: 13px; color: #555;
  width: 720px; margin-bottom: 8px;
}
.slider-range-out b { color: #1a1a1a; }

/* Play button per la versione sonora — coerente con il design didactico */
.play-bar {
  width: 720px; box-sizing: border-box;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: #555;
}
.play-bar button {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 14px;
  border: 1px solid #3264fe;
  background: #3264fe;
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.1s;
}
.play-bar button:hover { background: #1f49d4; }
.play-bar button:disabled { opacity: 0.4; cursor: not-allowed; }
.play-bar .hint { color: #888; font-size: 13px; font-style: italic; }
