/*
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
  sans-serif;
  background: #f5f6fa;
}
*/



h2 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 0px;
  flex-wrap: nowrap;          /* dodatno naglasi da ne lomi u novi red */
}

.led {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #9ca3af;
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.4);
  flex-shrink: 0;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.led.on {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35);
}

.led.clip {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.4);
}

.status-text {
  font-size: 14px;
  color: #4b5563;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; 
}

/* VU meter */


.vu-container {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 1px 0 10px;
}

/* label lijevo */
.vu-title {
  color: #6b7280;
  font-size: 12px;
  white-space: nowrap;
}

/* broj desno */
.vu-value {
  color: #374151;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  white-space: nowrap;
}

/* bar zauzima sav prostor između */
.vu-bar {
  position: relative;
  flex: 1;              /* rastegni između label i value */
  height: 6px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

/* već postojeće za fill ostaje isto */
.vu-fill {
  height: 100%;
  width: 10%;
  transition: width 0.05s linear, background-color 0.15s ease-out;
}


.vu-low {
  background: #ef4444;
}

.vu-mid {
  background: #f97316;
}

.vu-high {
  background: #22c55e;
}

textarea#vad-text {
  width: 100%;
  min-height: 90px;
  resize: vertical;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  color: #111827;
  box-sizing: border-box;
  margin-top: 6px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea#vad-text:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
}

textarea#vad-text.low-confidence {
  border-color: #f97316;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.25);
}

.stt-confidence {
  margin-top: 2px;
  font-size: 12px;
  color: #4b5563;
  white-space: nowrap;
  flex-shrink: 0;             /* ne smiju se stisnuti do nečitljivosti */  
}

.stt-hint {
  margin-top: 2px;
  font-size: 12px;
  color: #b45309;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;                    /* pojedi sav preostali prostor u redu */
}

.btn-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 5px;
}

.btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.05s;
}

.btn-primary {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-primary:disabled {
  background: #9ca3af;
  box-shadow: none;
  cursor: default;
}

.btn-secondary {
  background: #e5e7eb;
  color: #111827;
}

.btn-secondary:disabled {
  opacity: 0.6;
  cursor: default;
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: none;
}

.stt-status {
  margin-top: 10px;
  font-size: 12px;
  color: #6b7280;
}


/* Meta info za poruke (vrijeme + #) */
.stt-meta {
  margin-top: 2px;
  font-size: 11px;
  color: #9ca3af;
  font-variant-numeric: tabular-nums;
}

/* Toggle za ENABLED (ON/OFF) */
.btn-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #e5e7eb;
  color: #6b7280;
  border-radius: 999px;
  padding: 8px 14px;
  border: none;
}

.btn-toggle-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.btn-toggle-state {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}

/* OFF stanje: sivi font */
.btn-toggle-off .btn-toggle-state {
  color: #9ca3af; /* sivo */
  border-color: #d1d5db;
  background: #f9fafb;
}

/* ON stanje: crni font */
.btn-toggle-on {
  background: #dbeafe;
}

.btn-toggle-on .btn-toggle-state {
  color: #111827; /* crni font */
  background: #ffffff;
  border-color: #93c5fd;
}

/* Desni blok s dva manja gumba (Mute + Command) */
.btn-subrow {
  display: flex;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
}

/* Mute tipka malo uža */
.btn-mute {
  flex: 0 0 auto;
  padding-inline: 10px;
}

/* Command tipka (downbutton stil) */
.btn-command {
  flex: 0 0 auto;
  padding-inline: 10px;
  font-size: 13px;
}

/* Aktivni command mod – "down" efekt */
.btn-command-active {
  background: #1d4ed8;         /* tamnije plavo */
  color: #ffffff;
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.2);
}


/* vad-root neka bude širine roditelja (chat boxa) */
.vad-root {
  width: 100%;
  max-width: 100%;
}

/* red s gumbima – sve desno */
.vad-root .btn-row {
  display: flex;
  justify-content: flex-end;  /* tri gumba desno */
  align-items: center;
  gap: 8px;
}

/* pod-red za Mute + Command ostaje u istom redu */
.vad-root .btn-subrow {
  display: flex;
  gap: 6px;
}

/* MIC gumb – fiksna širina i niži */
.vad-root .btn-toggle {
  min-width: 190px;      /* podešavaš po želji */
  max-width: 190px;
  padding: 6px 10px;     /* niži gumb */
  font-size: 14px;
}

/* Mute / Command neka budu malo niži da se slažu s mic gumbom */
.vad-root .btn-secondary {
  padding: 6px 12px;
  font-size: 14px;
}

/* vad-container iste širine kao gumbi */
.vad-container {
  width: 100%;
  margin-top: 2px;
}

/* “naslov” – stt-confidence gore */
.stt-confidence-header {
  font-weight: 500;
  margin-bottom: 6px;
}

.btn-toggle-state {
  display: inline-flex;      /* ikonica + tekst u jednom redu */
  align-items: center;
  gap: 4px;                  /* razmak ikonica–tekst */
  white-space: nowrap;       /* NE PRELAMAJ tekst u novi red */
}



