/* Arcus AI huisstijl (docs/08). Kleuren en lettertype als variabelen, zodat een andere
   praktijk later een eigen huisstijl kan krijgen via één configuratie. */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #13294B;
  --orange: #F7A800;
  --white: #FFFFFF;
  --line: #DDE2EA;
  --ink: #13294B;
  --ink-soft: #4A5568;
  --bg: #F6F7FA;
  --red: #B3261E;        /* rode vlag en fout, contrast op wit 6,7 */
  --red-bg: #FDECEA;
  --ok: #1E6B3A;
  --radius: 10px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
h1, h2, h3, .brand, button.primary { font-family: var(--font); }
h1 { font-weight: 800; font-size: 1.4rem; margin: 0 0 .75rem; }
h2 { font-weight: 800; font-size: 1.1rem; margin: 1.25rem 0 .5rem; }
p { margin: .5rem 0; }
a { color: var(--navy); }

.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: .6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: calc(.6rem + env(safe-area-inset-top));
}
.brand-logo { height: 36px; width: auto; display: block; }
.topnav { display: flex; gap: 1rem; align-items: center; font-size: .95rem; }
.topnav a { text-decoration: none; font-weight: 500; }
.topnav a:hover { text-decoration: underline; }
button.link { background: none; border: 0; color: var(--navy); font: inherit; font-weight: 500; cursor: pointer; padding: 0; }
button.link:hover { text-decoration: underline; }

.view { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 1.25rem 1rem 2rem; }
.view.wide { max-width: 1100px; }
.foot { font-size: .8rem; color: var(--ink-soft); text-align: center; padding: 1rem; border-top: 1px solid var(--line); background: var(--white); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.card.navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.card.navy a { color: var(--white); }
.login-logo { display: block; width: 60%; max-width: 280px; margin: 1rem auto 1.5rem; }

label { display: block; font-weight: 500; margin: .9rem 0 .3rem; }
input[type="text"], input[type="email"], input[type="password"], select, textarea {
  width: 100%;
  font: inherit;
  padding: .7rem .8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}
.check { display: flex; gap: .7rem; align-items: flex-start; margin: 1rem 0; font-weight: 400; }
.check input { width: 1.3rem; height: 1.3rem; margin-top: .15rem; flex: none; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.choice label { margin: 0; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; text-align: center; padding: .8rem; border: 1px solid var(--line); border-radius: 8px; background: var(--white); cursor: pointer; font-weight: 500; }
.choice input:checked + span { border-color: var(--navy); background: var(--navy); color: var(--white); }
.choice input:focus-visible + span { outline: 3px solid var(--orange); }

button.primary, button.secondary, .btn {
  display: inline-block;
  width: 100%;
  font: inherit;
  font-weight: 700;
  padding: .9rem 1rem;
  border-radius: 8px;
  border: 2px solid var(--navy);
  cursor: pointer;
  margin-top: 1rem;
  text-align: center;
  text-decoration: none;
}
button.primary { background: var(--navy); color: var(--white); font-family: var(--font); }
button.secondary { background: var(--white); color: var(--navy); }
button.danger { border-color: var(--red); color: var(--red); background: var(--white); }
button:disabled { opacity: .5; cursor: not-allowed; }
.row { display: flex; gap: .75rem; }
.row > * { flex: 1; }

.msg { padding: .8rem 1rem; border-radius: 8px; margin: .75rem 0; border: 1px solid var(--line); background: var(--white); }
.msg.error { border-color: var(--red); background: var(--red-bg); color: var(--red); font-weight: 500; }
.msg.ok { border-color: var(--ok); color: var(--ok); }
.hint { font-size: .9rem; color: var(--ink-soft); }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; word-break: break-all; }

/* Opname */
.rec {
  text-align: center;
  padding: 2rem 1rem;
}
.rec-indicator {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font); font-weight: 800; font-size: 1.1rem;
  color: var(--navy);
}
.rec-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--line); }
.rec.active .rec-dot { background: var(--orange); animation: pulse 1.2s ease-in-out infinite; }
.rec.paused .rec-dot { background: var(--orange); animation: none; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.3); opacity: .6; } }
.rec-timer { font-family: var(--font); font-weight: 800; font-size: 3rem; letter-spacing: .05em; margin: .75rem 0; font-variant-numeric: tabular-nums; }
.rec-upload { font-size: .9rem; color: var(--ink-soft); }
.rec-upload.behind { color: var(--red); font-weight: 500; }
.warn { border: 2px solid var(--red); background: var(--red-bg); color: var(--red); padding: .8rem; border-radius: 8px; font-weight: 500; margin: 1rem 0; }

/* Sessielijst */
table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .95rem; }
th, td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font); font-weight: 800; font-size: .85rem; }
tr:last-child td { border-bottom: 0; }
.status { display: inline-block; padding: .15rem .5rem; border-radius: 999px; font-size: .8rem; font-weight: 600; border: 1px solid var(--line); }
.status.ready { border-color: var(--ok); color: var(--ok); }
.status.failed { border-color: var(--red); color: var(--red); }
.status.processing, .status.queued { border-color: var(--navy); }
.table-wrap { overflow-x: auto; }

@media (min-width: 700px) {
  .view { padding: 2rem 1.5rem; }
  button.primary, button.secondary, .btn { width: auto; min-width: 220px; }
}
@media (prefers-reduced-motion: reduce) { .rec.active .rec-dot { animation: none; } }

/* Conceptscherm (desktop) */
.review-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.review-head h1 { margin-bottom: .2rem; }
.review-head-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
button.small, .btn.small { width: auto; min-width: 0; padding: .5rem .9rem; margin-top: 0; font-size: .9rem; }
.save-state { min-height: 1.2rem; font-size: .85rem; color: var(--ok); margin: .25rem 0 .5rem; }
.split { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: start; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .pane.transcript { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; }
}
.pane.transcript { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.pane.transcript h2 { margin-top: 0; }
.seg { display: grid; grid-template-columns: 3.2rem 5.5rem 1fr; gap: .5rem; padding: .35rem .4rem; border-radius: 6px; font-size: .92rem; border-left: 3px solid transparent; }
.seg.active { background: #FFF4D6; border-left-color: var(--orange); }
.seg-time { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--ink-soft); font-size: .85rem; }
.seg-speaker { font-weight: 600; color: var(--ink-soft); font-size: .85rem; }
.rubric { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; margin-bottom: .75rem; }
.rubric-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.rubric-head h2 { margin: 0; }
.rubric-actions { display: flex; gap: .6rem; align-items: center; }
ul.lines { list-style: none; margin: .5rem 0 0; padding: 0; }
li.line { display: grid; grid-template-columns: 3.4rem 1fr auto 1.6rem; gap: .5rem; align-items: baseline; padding: .35rem 0; border-top: 1px solid var(--line); }
li.line:first-child { border-top: 0; }
.line-src { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: .8rem; font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--navy); padding: .1rem .3rem; cursor: pointer; }
.line-text { outline: none; padding: .1rem .2rem; border-radius: 4px; }
.line-text:focus { background: #FFF9EB; box-shadow: 0 0 0 2px var(--orange); }
li.uncertain .line-text { text-decoration: underline dotted var(--navy) 2px; text-underline-offset: 3px; }
.line-meta { font-size: .78rem; color: var(--ink-soft); white-space: nowrap; }
.flag { color: var(--red); font-weight: 600; }
.line-del { background: none; border: 0; color: var(--ink-soft); font-size: 1.1rem; cursor: pointer; line-height: 1; }
.line-del:hover { color: var(--red); }
.flags ul, .checklist ul, .notes ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.flags li { margin: .25rem 0; }
.tag { display: inline-block; font-size: .75rem; border: 1px solid currentColor; border-radius: 999px; padding: 0 .45rem; margin-left: .3rem; }
.tag.open { color: var(--red); }
.checklist .check { margin: .3rem 0; }
.notes { border-color: var(--navy); }
.prev textarea { font-family: var(--font-body); }
