/* ---------------------------------------------------------------------------
   Filter combobox — Orpheus dark theme (mirrors timeframe_filter.css pattern).
   Trigger colors use Tailwind utilities on the element (bg-slate-800, etc.).
   --------------------------------------------------------------------------- */

.orpheus-combobox__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.orpheus-combobox__panel {
  background: #1e293b;
  border: 1px solid #334155;
  min-width: 16rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.orpheus-combobox__input {
  background: #0f172a;
  border: 1px solid #334155;
  color: #e2e8f0;
  width: 100%;
}
.orpheus-combobox__input:focus {
  border-color: #3b82f6;
  outline: none;
}
.orpheus-combobox__input::-webkit-search-cancel-button {
  cursor: pointer;
}

.orpheus-combobox__option {
  color: #cbd5e1;
  cursor: pointer;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}
.orpheus-combobox__option[data-active="true"] {
  background: rgba(51, 65, 85, 0.6);
  color: #ffffff;
}
.orpheus-combobox__option[aria-selected="true"] {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}
.orpheus-combobox__option[data-active="true"][aria-selected="true"] {
  background: rgba(59, 130, 246, 0.35);
  color: #bfdbfe;
}

.orpheus-combobox__chip {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 0.375rem;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.orpheus-combobox__chip-remove {
  color: #93c5fd;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
  font-size: 0.875rem;
}
.orpheus-combobox__chip-remove:hover {
  color: #ffffff;
}

.orpheus-combobox__apply {
  background: #3b82f6;
  color: #ffffff;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
}
.orpheus-combobox__apply:hover {
  background: #2563eb;
}

.orpheus-combobox__clear {
  color: #94a3b8;
  font-size: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
}
.orpheus-combobox__clear:hover {
  color: #e2e8f0;
}

.orpheus-combobox__empty {
  color: #64748b;
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
}
.orpheus-combobox__empty[hidden] {
  display: none;
}

/* Section label above the list — names the list as a subset ("Suggested")
   or confirms it's complete ("All members · N"). */
.orpheus-combobox__section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem 0.35rem;
  font-size: 0.6875rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 600;
}
.orpheus-combobox__section-label[hidden] {
  display: none;
}
.orpheus-combobox__section-count {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

/* Search hint footer — makes a truncated roster explicit and points to search. */
.orpheus-combobox__hint {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid #334155;
  background: rgba(59, 130, 246, 0.05);
  font-size: 0.75rem;
  color: #8aa0c4;
}
.orpheus-combobox__hint[hidden] {
  display: none;
}
.orpheus-combobox__hint svg {
  width: 0.8rem;
  height: 0.8rem;
  opacity: 0.85;
  flex: none;
}
.orpheus-combobox__hint b {
  color: #cbd5e1;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Light theme */
[data-theme="light"] .orpheus-combobox__panel {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
}
[data-theme="light"] .orpheus-combobox__input {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a;
}
[data-theme="light"] .orpheus-combobox__option {
  color: #334155;
}
[data-theme="light"] .orpheus-combobox__option[data-active="true"] {
  background: #f1f5f9;
  color: #0f172a;
}
[data-theme="light"] .orpheus-combobox__option[aria-selected="true"] {
  background: #dbeafe;
  color: #1d4ed8;
}
[data-theme="light"] .orpheus-combobox__option[data-active="true"][aria-selected="true"] {
  background: #bfdbfe;
  color: #1e40af;
}
[data-theme="light"] .orpheus-combobox__chip {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #bfdbfe;
}
[data-theme="light"] .orpheus-combobox__chip-remove {
  color: #1d4ed8;
}
[data-theme="light"] .orpheus-combobox__section-label {
  color: #64748b;
}
[data-theme="light"] .orpheus-combobox__hint {
  border-top-color: #e2e8f0;
  background: rgba(59, 130, 246, 0.06);
  color: #475569;
}
[data-theme="light"] .orpheus-combobox__hint b {
  color: #1e293b;
}

@media (prefers-reduced-motion: reduce) {
  .orpheus-combobox__trigger,
  .orpheus-combobox__option,
  .orpheus-combobox__apply {
    transition: none;
  }
}
