/*
 * Cadence — Digital Sheet Music Management Platform
 * Copyright © DoubTech. The LICENSE file in the repo root governs use of this file.
 *
 * annotations-percussion.css — Styles for the percussion instruments-needed panel
 * rendered by annotations-percussion.js inside the annotation settings drawer.
 * Provides the chip display row, toggle-chip editor grid, quick-pick row, and
 * free-text add field. Themed with the app's design tokens (--c-*) so it matches
 * the Cadence surface rather than introducing its own palette.
 */

/* ── Panel root (inside the settings drawer) ─────────────────────────────── */
.perc-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  font-family: inherit;
  color: var(--c-text-secondary);
}

/* ── Read view: saved instrument chips ───────────────────────────────────── */
.perc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-height: 28px;
}

.perc-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 14px;
  background: var(--c-primary);
  color: var(--c-text-primary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.perc-empty {
  color: var(--c-text-muted);
  font-style: italic;
  font-size: 12px;
}

/* ── Editor section ──────────────────────────────────────────────────────── */
.perc-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.perc-section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-text-muted);
  margin-top: 4px;
}

/* ── Quick-pick / auto-suggest chip rows ─────────────────────────────────── */
.perc-pick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.perc-pick-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--c-border);
  background: var(--c-surface-hover);
  color: var(--c-text-secondary);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  white-space: nowrap;
}

.perc-pick-chip:hover {
  border-color: var(--c-accent);
  color: var(--c-text-primary);
}

.perc-pick-chip.active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: var(--c-text-primary);
}

/* ── Custom instrument add row ───────────────────────────────────────────── */
.perc-custom-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.perc-custom-input {
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
  background: var(--c-surface-hover);
  color: var(--c-text-primary);
  font-size: 12px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.12s;
}

.perc-custom-input:focus { border-color: var(--c-accent); }
.perc-custom-input::placeholder { color: var(--c-text-muted); }

.perc-custom-add {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-accent);
  background: transparent;
  color: var(--c-accent);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}

.perc-custom-add:hover {
  background: var(--c-accent);
  color: var(--c-bg);
}
