/* =============================================================================
   section.css  —  Endeavos Online SOW
   Section-plane panel and toolbar button state.
============================================================================= */

/* ── Floating section control panel ─────────────────────────────────────── */
#section-panel {
  position: absolute;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 22;
  background: rgba(255,255,255,0.97);
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  padding: 7px 14px;
  display: none;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 14px rgba(0,0,0,.14);
  white-space: nowrap;
  backdrop-filter: blur(6px);
}
#section-panel.show { display: flex; }

.sec-panel-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-soft);
}

/* ── Axis toggle buttons ─────────────────────────────────────────────────── */
.sec-axis-group {
  display: flex;
  gap: 4px;
}
.sec-axis-btn {
  padding: 4px 11px;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .12s, color .12s, background .12s;
}
.sec-axis-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.sec-axis-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* ── Divider ─────────────────────────────────────────────────────────────── */
.sec-sep {
  width: 1px;
  height: 22px;
  background: var(--line-strong);
  flex-shrink: 0;
}

/* ── Depth slider ────────────────────────────────────────────────────────── */
#sec-slider {
  width: 170px;
  accent-color: var(--orange);
  cursor: pointer;
}

#sec-depth-lbl {
  font-size: 11px;
  font-family: "IBM Plex Mono", monospace;
  color: var(--ink);
  width: 56px;
  text-align: right;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 3px 5px;
  background: #fff;
}
#sec-depth-lbl:focus {
  outline: none;
  border-color: var(--orange);
}
/* Hide native number-input spinner arrows — the slider already covers that */
#sec-depth-lbl::-webkit-outer-spin-button,
#sec-depth-lbl::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#sec-depth-lbl { -moz-appearance: textfield; }

/* ── Close button ────────────────────────────────────────────────────────── */
.sec-close-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color .12s, color .12s;
}
.sec-close-btn:hover {
  border-color: #c0392b;
  color: #c0392b;
}

/* ── Toolbar button active state ─────────────────────────────────────────── */
#vtool-section.active {
  color: var(--orange);
  border-color: var(--orange);
  background: rgba(232,116,30,0.08);
}
