/* Groove Geometry Calculator - scoped to #groove-calc */

#groove-calc {
  font-family: 'IBM Plex Mono', 'SF Mono', monospace;
  color: rgba(255,255,255,0.7);
  background: #0b0e14;
  border-radius: 10px;
  margin: 1.5em 0;
  padding: 16px 20px;
}
#groove-calc *, #groove-calc *::before, #groove-calc *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}
#groove-calc .gc-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 20px; font-weight: 400; color: #fff; margin: 0 0 16px 0;
}
#groove-calc .gc-inputs {
  background: #0f1319; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px; padding: 14px 16px; margin-bottom: 16px;
}
#groove-calc .gc-inputs-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px; font-weight: 400; color: #fff; margin-bottom: 14px;
}
#groove-calc .gc-input-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}
#groove-calc .gc-input-label {
  font-size: 11px; color: rgba(255,255,255,0.5); width: 160px; flex-shrink: 0;
}
#groove-calc .gc-number-input {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  width: 90px; padding: 6px 10px; border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.9); outline: none;
}
#groove-calc .gc-number-input:focus {
  border-color: #00e5ff; background: rgba(0,229,255,0.08);
}
#groove-calc .gc-input-unit {
  font-size: 11px; color: rgba(255,255,255,0.35); width: 80px; flex-shrink: 0;
}
#groove-calc .gc-select {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  width: 90px; padding: 5px 8px; border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.9);
  outline: none; cursor: pointer; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='rgba(255,255,255,0.3)'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
}
#groove-calc .gc-select:focus {
  border-color: #00e5ff; background-color: rgba(0,229,255,0.08);
}
#groove-calc .gc-select option {
  background: #0f1319; color: rgba(255,255,255,0.9);
}
#groove-calc .gc-unit-toggle {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.2); cursor: pointer;
  padding: 6px 10px; border-radius: 5px; text-align: center;
}
#groove-calc .gc-unit-toggle:hover {
  color: #00e5ff; border-color: #00e5ff; background: rgba(0,229,255,0.08);
}
#groove-calc .gc-outputs { display: flex; flex-direction: column; gap: 10px; }
#groove-calc .gc-panel {
  background: #0f1319; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px; overflow: hidden;
}
#groove-calc .gc-panel-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.05); cursor: pointer;
}
#groove-calc .gc-panel-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
#groove-calc .gc-panel-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px; font-weight: 500; color: #fff; flex: 1;
}
#groove-calc .gc-panel-chevron { font-size: 10px; color: rgba(255,255,255,0.3); }
#groove-calc .gc-panel-content { padding: 10px 14px; }
#groove-calc .gc-info-row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.03);
}
#groove-calc .gc-info-row:last-child { border-bottom: none; }
#groove-calc .gc-info-label { font-size: 11px; color: rgba(255,255,255,0.5); }
#groove-calc .gc-info-value { font-size: 12px; color: rgba(255,255,255,0.9); font-weight: 500; }
#groove-calc .gc-info-unit { font-size: 10px; color: rgba(255,255,255,0.35); margin-left: 4px; }
#groove-calc .gc-highlight { color: #00e5ff; }
#groove-calc .gc-warn { color: #ffc400; }
#groove-calc .gc-danger { color: #ff2d7b; }
#groove-calc .gc-tooltip { position: relative; cursor: help; }
#groove-calc .gc-tooltip::after {
  content: attr(data-tip);
  position: absolute; bottom: 100%; left: 0; right: 0;
  background: #1a1f2a; color: rgba(255,255,255,0.8);
  font-size: 10px; line-height: 1.4; padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 6px;
  pointer-events: none; opacity: 0; transition: opacity 0.15s;
  white-space: normal; z-index: 10;
}
#groove-calc .gc-tooltip:hover::after { opacity: 1; }
#groove-calc .gc-plot { width: 100%; height: 320px; }
@media (max-width: 480px) {
  #groove-calc { padding: 12px 14px; }
  #groove-calc .gc-input-label { width: 120px; }
  #groove-calc .gc-plot { height: 260px; }
}
