/* Light polish on top of DaisyUI. */

/* Browsers default <select multiple> to a white listbox. Force the theme palette. */
select[multiple] {
  background-color: hsl(var(--b1));
  color: hsl(var(--bc));
  border: 1px solid hsl(var(--b3));
  border-radius: var(--rounded-btn, 0.5rem);
  padding: 0.25rem 0.5rem;
  height: auto;
  min-height: 5rem;
}
select[multiple] option {
  background-color: hsl(var(--b1));
  color: hsl(var(--bc));
  padding: 0.25rem 0.5rem;
}
select[multiple] option:checked {
  background: linear-gradient(0deg, hsl(var(--p)) 0%, hsl(var(--p)) 100%);
  color: hsl(var(--pc));
}

/* Pure JS-driven panel switching (DaisyUI's .tab-active styling carries the visuals). */
.filter-tab-panel { display: none; }
.filter-tab-panel.is-active { display: block; }

/* Small count pill on tabs that have values set, complementing DaisyUI's tab-active. */
.filter-tab-button .tab-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.4rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: hsl(var(--p));
  color: hsl(var(--pc));
}
.filter-tab-button.tab-active .tab-count-badge {
  background: hsl(var(--pc));
  color: hsl(var(--p));
}

/* Highlight individual filter fields that have a value set */
.filter-field {
  position: relative;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  transition: border-color 120ms ease, background-color 120ms ease;
}
.filter-field.has-value {
  border-color: hsl(var(--p) / 0.55);
  background-color: hsl(var(--p) / 0.07);
}
.filter-field.has-value::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: -2px;
  width: 3px;
  height: calc(100% - 1rem);
  background: hsl(var(--p));
  border-radius: 999px;
}

.font-mono-tight { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-feature-settings: "ss01", "ss02"; }

.transcript-turn .speaker { font-weight: 600; }
.transcript-turn .timestamp { color: hsl(var(--bc) / 0.5); margin-left: 0.5rem; font-family: ui-monospace, monospace; font-size: 0.85em; }

#tokens-stream { white-space: pre-wrap; word-wrap: break-word; max-height: 420px; overflow-y: auto; padding: 1rem; background: hsl(var(--b2)); border: 1px solid hsl(var(--b3)); border-radius: var(--rounded-box, 1rem); }
#transcript-stream { max-height: 560px; overflow-y: auto; padding-right: 0.25rem; }

.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: inline-flex; }
.htmx-request.htmx-indicator { display: inline-flex; }

.segment-card.is-loading { opacity: 0.6; pointer-events: none; }
