/* Theme: Dark Blue accents (Protagoras) */
* { box-sizing: border-box; }
:root {
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --blue: #1e3a8a;       /* dark blue */
  --blue-700: #1d4ed8;   /* primary accent */
  --card: #f8fafc;
  --border: #e2e8f0;
  --error: #b91c1c;
  --user-bg: #eef2ff;    /* very light indigo for user lines */
}
html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Apple Color Emoji, Segoe UI Emoji;
  line-height: 1.5;
}
.container {
  min-height: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
h1 {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1.25rem;
  color: var(--blue);
  letter-spacing: .4px;
}
.section-title { font-size: 1.1rem; margin: 0 0 .75rem; color: var(--muted); }
.subsection-title { font-size: 1rem; margin: .25rem 0 .35rem; color: var(--text); }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}
.label { display: block; font-weight: 600; margin-bottom: .4rem; }
.mt { margin-top: .9rem; }
.mt2 { margin-top: 1.25rem; }
.select, .textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .75rem .9rem;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color .2s ease;
}
.select:focus, .textarea:focus {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, .15);
}
.textarea { resize: vertical; min-height: 110px; }
.row { display: flex; align-items: center; }
.gap { gap: .6rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .75rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--blue-700);
  color: white;
  border: none;
  border-radius: 12px;
  padding: .7rem 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .03s ease, filter .2s ease, background .2s ease;
}
.button:active { transform: translateY(1px); }
.button:disabled { filter: grayscale(.6); cursor: not-allowed; opacity: .85; }
.button-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue-700); }
.button-ghost { background: transparent; color: var(--muted); border: 1.5px dashed var(--border); }
.loading {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: .75rem 0 0;
  color: var(--muted);
  font-size: .95rem;
}
.spinner {
  width: 18px; height: 18px;
  border-radius: 999px;
  border: 3px solid #bfdbfe;
  border-top-color: var(--blue-700);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.response-wrap { margin-top: 1rem; }
.response-wrap h2 { font-size: 1.05rem; margin: 0 0 .5rem; color: var(--muted); }
.response {
  white-space: pre-wrap;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  min-height: 100px;
}
.transcript { max-height: 1200px; overflow: auto; white-space: normal; }
.transcript.tall { min-height: 400px; } /* 4x taller */
.error {
  margin-top: .75rem;
  padding: .75rem;
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: var(--error);
  border-radius: 12px;
}
.muted { color: var(--muted); }
.small { font-size: .95rem; }
.tiny { font-size: .85rem; }
.footer {
  text-align: center;
  margin-top: 1rem;
  color: var(--muted);
  font-size: .95rem;
}

/* Transcript message styling */
.msg { padding: .35rem .45rem; border-radius: 8px; margin: .15rem 0; }
.msg .speaker { font-weight: 700; margin-right: .35rem; }
.msg.user { background: var(--user-bg); border-left: 3px solid var(--blue-700); }

/* Participant rows */
.rows { display: grid; grid-template-columns: 1fr; gap: .5rem; }
.participant-row {
  display: grid;
  grid-template-columns: 2.2fr 1.2fr 2fr auto;
  gap: .5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .6rem;
}
.participant-row .remove {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: .55rem .8rem;
  cursor: pointer;
}

@media (max-width: 760px) {
  .card { padding: 1rem; }
  .participant-row { grid-template-columns: 1fr; }
}
