@import "../shared/omusiclab-theme.css";

.beat-panel {
  background-color: var(--oml-panel);
  border: solid thin var(--oml-edge);
  border-radius: 0.2em;
  padding: 1.25rem 1rem;
  margin: 1rem 0 1.25rem;
  text-align: center;
}

.beat-dots {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  align-items: center;
  min-height: 2.5rem;
}

.beat-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: rgba(51, 51, 51, 0.15);
  transition: transform 0.08s ease-out, background 0.08s;
}

.beat-dot.active {
  background: var(--oml-text);
  transform: scale(1.35);
}

.beat-dot.accent.active {
  background: var(--oml-accent-text);
  box-shadow: 0 0 0 2px rgba(16, 99, 71, 0.25);
}

.bpm-display {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0.35rem 0 0.75rem;
  font-variant-numeric: tabular-nums;
}

.bpm-display span.unit {
  font-size: 0.35em;
  font-weight: 600;
  color: var(--oml-muted);
  margin-left: 0.15em;
  vertical-align: middle;
}

.controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin-bottom: 0.75rem;
}

.controls-row .textbox {
  flex: 1;
  min-width: 8rem;
}

.controls-row .textbox label {
  line-height: 2.25em;
}

input[type="range"] {
  width: 100%;
  max-width: 100%;
  margin: 0.25rem 0 1rem;
  accent-color: var(--oml-accent-text);
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

button.primary,
button.ghost {
  font-family: "Poppins", sans-serif;
  font-size: 0.85em;
  font-weight: 600;
  padding: 0.55em 1.25em;
  border-radius: 0.5em;
  cursor: pointer;
  border: 1px solid var(--oml-border);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

button.primary {
  background: var(--oml-accent-text);
  color: #fff;
  border-color: var(--oml-accent-text);
}

button.primary:hover {
  filter: brightness(1.06);
}

button.ghost {
  background: #fff;
  color: var(--oml-text);
}

button.ghost:hover {
  background: var(--oml-panel);
}

button:focus-visible {
  outline: 2px solid var(--oml-accent-text);
  outline-offset: 2px;
}

.hint {
  font-size: 0.75em;
  color: var(--oml-muted);
  margin-top: 1rem;
  line-height: 1.45;
}
