/* ─── Base ─────────────────────────────────────────────────────────────────── */
body {
  margin: 0;
  overflow: hidden;
  background: black;
  font-family: 'DM Mono', 'Courier New', monospace;
}

/* ─── UI Panel (top-left controls) ────────────────────────────────────────── */
#ui {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  color: white;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
  /* FIX: constrain width so buttons don't overflow on narrow iframe */
  width: 180px;
  box-sizing: border-box;
}

#ui h3 {
  margin: 0 0 10px 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* ─── Toggle buttons ───────────────────────────────────────────────────────── */
#sat-toggles {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#sat-toggles button {
  width: 100%;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  box-sizing: border-box;
  /* border-left color is set inline per satellite color */
}

#sat-toggles button:hover {
  background: rgba(255, 255, 255, 0.12);
}



/* ─── Labels container ─────────────────────────────────────────────────────── */
/* FIX: pointer-events none so labels don't block OrbitControls mouse events */
#labels {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* z-index above the canvas but below the UI panel */
  z-index: 5;
}

/* ─── Individual satellite telemetry label ─────────────────────────────────── */
.sat-label {
  position: absolute;
  /* FIX: hidden by default — script.js shows it after first propagation data */
  display: none;
  color: #ffffff;
  font-size: 10px;
  line-height: 1.6;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 5px 8px;
  white-space: nowrap;
  /* smooth movement as satellite orbits */
  transition: left 0.3s linear, top 0.3s linear;
  pointer-events: none;
}

.sat-label strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2px;
  text-transform: uppercase;
}
