/* NGS Akademi — tasarım sistemi
   Palet: lacivert (birincil) + altın (vurgu). Projeksiyonda okunabilirlik için yüksek kontrast.
   Baz renkleri IGV varsayılanlarıyla uyumludur (A yeşil, C mavi, G turuncu, T kırmızı). */

@font-face { font-family: 'Plex'; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-400-normal.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: 'Plex'; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-ext-400-normal.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; }
@font-face { font-family: 'Plex'; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-500-normal.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: 'Plex'; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-ext-500-normal.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; }
@font-face { font-family: 'Plex'; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-600-normal.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: 'Plex'; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-ext-600-normal.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; }
@font-face { font-family: 'Plex'; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-700-normal.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: 'Plex'; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-ext-700-normal.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; }
@font-face { font-family: 'PlexMono'; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-400-normal.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: 'PlexMono'; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-ext-400-normal.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; }
@font-face { font-family: 'PlexMono'; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-500-normal.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: 'PlexMono'; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-600-normal.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; }

:root {
  --navy-950: #071427;
  --navy-900: #0b1f3a;
  --navy-800: #13294b;
  --navy-700: #1c3a63;
  --navy-600: #27507f;
  --navy-500: #3a6aa3;
  --navy-100: #e6edf6;
  --navy-50: #f2f6fb;
  --gold-600: #a8841a;
  --gold-500: #c9a227;
  --gold-400: #d9b84a;
  --gold-100: #f7efd4;

  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef2f7;
  --border: #d9e0ea;
  --border-strong: #b9c4d3;
  --text: #13213a;
  --text-2: #42526b;
  --text-3: #6b7a90;
  --primary: var(--navy-800);
  --primary-hover: var(--navy-700);
  --on-primary: #ffffff;
  --accent: var(--gold-500);
  --on-accent: #1c1503;

  --ok: #157a4b; --ok-bg: #e5f5ec; --ok-border: #9bd3b5;
  --warn: #9a5b00; --warn-bg: #fff4dd; --warn-border: #f0c97a;
  --bad: #b3261e; --bad-bg: #fdebea; --bad-border: #f1aaa5;
  --info: #1d4ed8; --info-bg: #e8effd; --info-border: #a9c0f5;

  /* IGV uyumlu baz renkleri */
  --base-A: #009600; --base-C: #0000ff; --base-G: #d17105; --base-T: #ff0000; --base-N: #7a7a7a;

  --radius-sm: 6px; --radius: 10px; --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, .06), 0 1px 3px rgba(11, 31, 58, .06);
  --shadow: 0 4px 12px rgba(11, 31, 58, .08), 0 1px 3px rgba(11, 31, 58, .06);
  --shadow-lg: 0 18px 48px rgba(11, 31, 58, .18);
  --font: 'Plex', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'PlexMono', 'Cascadia Mono', Consolas, 'Courier New', monospace;
  --fs: 15px;
  --topbar-h: 58px;
  color-scheme: light;
}

[data-theme='dark'] {
  --bg: #0a1424;
  --surface: #0f1d33;
  --surface-2: #13243f;
  --surface-3: #1a2e4f;
  --border: #253c60;
  --border-strong: #35507a;
  --text: #e8eef8;
  --text-2: #b6c3d8;
  --text-3: #8b9bb5;
  --primary: #d9b84a;
  --primary-hover: #e6c968;
  --on-primary: #10203a;
  --ok: #4ade80; --ok-bg: #0f2e22; --ok-border: #1f6b47;
  --warn: #fbbf24; --warn-bg: #33270d; --warn-border: #7a5a14;
  --bad: #f87171; --bad-bg: #3a1414; --bad-border: #7f2a2a;
  --info: #93b4ff; --info-bg: #14244a; --info-border: #2f4f99;
  --base-A: #3ccf3c; --base-C: #6b8cff; --base-G: #ff9d2e; --base-T: #ff5a5a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { font-size: var(--fs); }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--text); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; } h2 { font-size: 1.35rem; } h3 { font-size: 1.12rem; } h4 { font-size: 1rem; }
p { margin: 0 0 .75em; }
a { color: var(--navy-600); }
[data-theme='dark'] a { color: var(--gold-400); }
small, .small { font-size: .86rem; }
.muted { color: var(--text-3); }
.text-2 { color: var(--text-2); }
.mono, code, kbd, pre { font-family: var(--mono); }
code { background: var(--surface-3); padding: .08em .35em; border-radius: 4px; font-size: .92em; }
kbd { border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 4px; padding: 0 .35em; font-size: .85em; background: var(--surface); }
hr { border: 0; border-top: 1px solid var(--border); margin: 1rem 0; }
::selection { background: var(--gold-100); color: var(--navy-900); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- düzen ---------- */
.app { display: grid; grid-template-rows: var(--topbar-h) 1fr; height: 100vh; overflow: hidden; }
.topbar {
  display: flex; align-items: center; gap: 14px; padding: 0 18px; background: var(--navy-900); color: #fff;
  border-bottom: 3px solid var(--gold-500); z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; white-space: nowrap; }
.brand-sub { font-size: .72rem; color: #c9d6ea; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .spacer { flex: 1; }
.topbar .tb-item { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: #dbe5f3; }
.topbar .btn { --btn-bg: rgba(255, 255, 255, .08); --btn-fg: #fff; --btn-border: rgba(255, 255, 255, .22); }
.topbar .btn:hover { background: rgba(255, 255, 255, .16); }
.topbar .btn.accent:hover { background: var(--gold-400); }
.topbar .btn.accent { --btn-bg: var(--gold-500); --btn-fg: var(--on-accent); --btn-border: var(--gold-500); }
.topbar select { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .25); }
.topbar select option { color: #13213a; }

.layout { display: grid; grid-template-columns: 300px 1fr; min-height: 0; }
.layout.with-right { grid-template-columns: 300px 1fr 360px; }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); overflow: auto; min-height: 0; }
.rightbar { background: var(--surface); border-left: 1px solid var(--border); overflow: auto; min-height: 0; display: flex; flex-direction: column; }
.main { overflow: auto; min-height: 0; padding: 22px 26px 40px; }
.main.flush { padding: 0; }

/* ---------- butonlar ---------- */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--text); --btn-border: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 14px;
  border-radius: var(--radius-sm); border: 1px solid var(--btn-border); background: var(--btn-bg); color: var(--btn-fg);
  font: 500 .93rem/1 var(--font); cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background .12s, border-color .12s, color .12s, box-shadow .12s, transform .05s; user-select: none;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled='true'] { opacity: .5; cursor: not-allowed; transform: none; }
.btn.primary { --btn-bg: var(--primary); --btn-fg: var(--on-primary); --btn-border: var(--primary); }
.btn.primary:hover { background: var(--primary-hover); }
.btn.accent { --btn-bg: var(--gold-500); --btn-fg: var(--on-accent); --btn-border: var(--gold-500); }
.btn.accent:hover { background: var(--gold-400); }
.btn.ok { --btn-bg: var(--ok); --btn-fg: #fff; --btn-border: var(--ok); }
.btn.ok:hover { background: #12683f; }
.btn.danger { --btn-bg: var(--surface); --btn-fg: var(--bad); --btn-border: var(--bad-border); }
.btn.danger:hover { background: var(--bad-bg); }
.btn.ghost { --btn-bg: transparent; --btn-border: transparent; }
.btn.ghost:hover { background: var(--surface-3); }
.btn.sm { min-height: 30px; padding: 0 10px; font-size: .85rem; }
.btn.lg { min-height: 46px; padding: 0 22px; font-size: 1.02rem; }
.btn.icon { padding: 0; width: 36px; }
.btn.sm.icon { width: 30px; }
.btn.block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn-row.end { justify-content: flex-end; }
.btn-row.between { justify-content: space-between; }

/* ---------- form ---------- */
label { font-size: .88rem; font-weight: 500; color: var(--text-2); }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field .hint { font-size: .8rem; color: var(--text-3); }
input[type='text'], input[type='password'], input[type='number'], input[type='search'], select, textarea {
  font: 400 .95rem var(--font); color: var(--text); background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 8px 10px; min-height: 38px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-500); box-shadow: 0 0 0 3px rgba(58, 106, 163, .2); }
input.invalid { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(179, 38, 30, .12); }
input.valid { border-color: var(--ok); }
textarea { min-height: 120px; resize: vertical; line-height: 1.45; }
input[type='number'] { font-family: var(--mono); }
.input-unit { display: flex; align-items: stretch; }
.input-unit input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-unit .unit { display: flex; align-items: center; padding: 0 10px; border: 1px solid var(--border-strong); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--surface-3); color: var(--text-2); font-size: .88rem; white-space: nowrap; }
.check { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; font-weight: 400; color: var(--text); }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--navy-700); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
.switch input { appearance: none; width: 40px; height: 22px; border-radius: 999px; background: var(--border-strong); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: var(--shadow-sm); }
.switch input:checked { background: var(--ok); }
.switch input:checked::after { transform: translateX(18px); }

/* ---------- kart ve paneller ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 18px 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card-head h3 { margin: 0; font-size: 1.02rem; }
.card-body { padding: 16px 18px; }
.panel-title { font-size: .8rem; font-weight: 700; letter-spacing: .03em; color: var(--text-3); margin: 0 0 8px; }
.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid.c3, .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; } }
/* Kapsayıcı genişliğine göre daralma (eğitmen panelinin dar orta sütunu için) */
.sim, .slide-body { container-type: inline-size; }
@container (max-width: 1000px) { .grid.c3, .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 700px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; } }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.nowrap { flex-wrap: nowrap; }
.grow { flex: 1; min-width: 0; }

/* ---------- rozet, çip ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: .76rem; font-weight: 600; background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-border); }
.badge.warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-border); }
.badge.bad { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-border); }
.badge.info { background: var(--info-bg); color: var(--info); border-color: var(--info-border); }
.badge.gold { background: var(--gold-100); color: #6d540c; border-color: #e7d391; }
.badge.navy { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--border-strong); flex: none; }
.dot.on { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.dot.live { background: #ef4444; animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .55); } 70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }

/* ---------- uyarı kutuları ---------- */
.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); font-size: .93rem; }
.alert.ok { background: var(--ok-bg); border-color: var(--ok-border); color: var(--text); }
.alert.warn { background: var(--warn-bg); border-color: var(--warn-border); }
.alert.bad { background: var(--bad-bg); border-color: var(--bad-border); }
.alert.info { background: var(--info-bg); border-color: var(--info-border); }
.alert .alert-icon { flex: none; font-weight: 700; }
.alert p:last-child { margin-bottom: 0; }

/* ---------- tablo ---------- */
.table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.table thead th { position: sticky; top: 0; background: var(--surface-3); font-weight: 600; font-size: .82rem; color: var(--text-2); z-index: 1; }
.table tbody tr:hover { background: var(--surface-2); }
.table td.num, .table th.num { text-align: right; font-family: var(--mono); }
.table.compact th, .table.compact td { padding: 5px 8px; }

/* ---------- sekmeler ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tab { padding: 10px 14px; border: 0; background: none; font: 500 .93rem var(--font); color: var(--text-2); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--gold-500); font-weight: 600; }
[data-theme='dark'] .tab.active { color: var(--gold-400); }

/* ---------- ilerleme çubuğu ---------- */
.progress { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--navy-600), var(--navy-800)); border-radius: inherit; transition: width .3s; }
.progress.gold > span { background: linear-gradient(90deg, var(--gold-400), var(--gold-600)); }

/* ---------- modal ve bildirim ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(7, 20, 39, .55); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; animation: fadein .15s; }
.modal { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: min(560px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; animation: pop .18s; }
.modal.wide { width: min(900px, 100%); }
.modal-head { padding: 18px 22px 8px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal-head h2 { margin: 0; font-size: 1.2rem; }
.modal-body { padding: 8px 22px 16px; overflow: auto; }
.modal-foot { padding: 12px 22px 18px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--border); }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 200; max-width: min(420px, calc(100vw - 36px)); }
.toast { background: var(--navy-900); color: #fff; padding: 11px 14px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); font-size: .92rem; border-left: 4px solid var(--gold-500); animation: pop .2s; }
.toast.ok { border-left-color: #22c55e; } .toast.bad { border-left-color: #ef4444; } .toast.warn { border-left-color: #f59e0b; }

/* ---------- kurs ana hattı (sidebar) ---------- */
.outline { padding: 10px 8px 30px; }
.outline-module { margin-bottom: 4px; }
.om-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: var(--radius-sm); cursor: pointer; text-align: left; font: 600 .9rem var(--font); color: var(--text); }
.om-head:hover { background: var(--surface-3); }
.om-no { flex: none; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-size: .78rem; font-weight: 700; background: var(--navy-100); color: var(--navy-800); }
[data-theme='dark'] .om-no { background: var(--surface-3); color: var(--gold-400); }
.om-head .om-title { flex: 1; min-width: 0; line-height: 1.25; }
.om-head .om-meta { font-size: .72rem; color: var(--text-3); font-weight: 500; }
.om-steps { list-style: none; margin: 2px 0 8px; padding: 0 0 0 20px; border-left: 2px solid var(--border); margin-left: 22px; }
.os-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--radius-sm); cursor: pointer; font-size: .87rem; color: var(--text-2); border: 0; background: none; width: 100%; text-align: left; font-family: var(--font); }
.os-item:hover { background: var(--surface-3); color: var(--text); }
.os-item.active { background: var(--navy-800); color: #fff; }
.os-item.active .os-icon { color: var(--gold-400); }
.os-item.live-here { box-shadow: inset 3px 0 0 var(--gold-500); }
.os-item.locked { opacity: .55; cursor: not-allowed; }
.os-icon { flex: none; width: 18px; text-align: center; font-size: .85rem; }
.os-title { flex: 1; min-width: 0; line-height: 1.3; }
.os-state { flex: none; font-size: .8rem; }
.os-state.done { color: var(--ok); }
.os-item.active .os-state.done { color: #86efac; }

/* ---------- adım başlığı ---------- */
.step-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.step-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 4px; }
[data-theme='dark'] .step-kicker { color: var(--gold-400); }
.step-head h1 { font-size: 1.55rem; margin: 0; }
.objectives { margin: 0; padding-left: 1.1em; color: var(--text-2); font-size: .92rem; }

/* ---------- teori slaytları ---------- */
.slide-frame { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.slide { padding: 30px 38px 26px; min-height: 420px; display: flex; flex-direction: column; }
.slide h2 { font-size: 1.5rem; color: var(--navy-800); border-left: 5px solid var(--gold-500); padding-left: 14px; margin-bottom: 18px; }
[data-theme='dark'] .slide h2 { color: var(--text); }
.slide-body { font-size: 1.05rem; color: var(--text); flex: 1; }
.slide-body ul { margin: 0 0 12px; padding-left: 1.25em; }
.slide-body li { margin-bottom: 8px; }
.slide-body li::marker { color: var(--gold-600); }
.slide-body .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
@container (max-width: 720px) { .two-col { grid-template-columns: 1fr !important; } }
.slide-body .figure svg { max-width: 100%; height: auto; }
.slide-body .figure { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.slide-body .figure figcaption { font-size: .82rem; color: var(--text-3); margin-top: 8px; }
.slide-body .key { background: var(--gold-100); border-left: 4px solid var(--gold-500); padding: 10px 14px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 12px 0; color: #3b2f08; }
[data-theme='dark'] .slide-body .key { background: #2a2410; color: #f4e7bb; }
.slide-body table { border-collapse: collapse; width: 100%; font-size: .93em; margin: 8px 0; }
.slide-body th, .slide-body td { border: 1px solid var(--border); padding: 6px 9px; text-align: left; }
.slide-body th { background: var(--surface-3); }
.slide-cite { padding: 10px 38px 14px; border-top: 1px solid var(--border); background: var(--surface-2); font-size: .8rem; color: var(--text-3); }
.slide-cite b { color: var(--text-2); font-weight: 600; }
.slide-nav { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--border); background: var(--surface); }
.slide-dots { display: flex; gap: 5px; flex: 1; justify-content: center; flex-wrap: wrap; }
.slide-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--border-strong); padding: 0; cursor: pointer; }
.slide-dots button.on { background: var(--gold-500); width: 22px; border-radius: 5px; }
.teacher-notes { margin-top: 14px; border: 1px dashed var(--gold-400); background: #fffcf1; border-radius: var(--radius); padding: 12px 16px; font-size: .9rem; }
[data-theme='dark'] .teacher-notes { background: #221d0c; }

/* ---------- quiz ---------- */
.quiz-q { margin-bottom: 18px; }
.quiz-q .q-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.quiz-q .q-text { font-size: 1.08rem; font-weight: 500; margin-bottom: 12px; }
.options { display: grid; gap: 8px; }
.option { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--surface); cursor: pointer; text-align: left; font: 400 .98rem var(--font); color: var(--text); transition: border-color .12s, background .12s; width: 100%; }
.option:hover:not(:disabled) { border-color: var(--navy-500); background: var(--navy-50); }
[data-theme='dark'] .option:hover:not(:disabled) { background: var(--surface-3); }
.option .opt-letter { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: var(--surface-3); color: var(--text-2); }
.option.selected { border-color: var(--navy-700); background: var(--navy-50); }
.option.correct { border-color: var(--ok); background: var(--ok-bg); }
.option.correct .opt-letter { background: var(--ok); color: #fff; }
.option.wrong { border-color: var(--bad); background: var(--bad-bg); }
.option.wrong .opt-letter { background: var(--bad); color: #fff; }
.option:disabled { cursor: default; }
.explain { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); font-size: .93rem; }
.explain .src { margin-top: 8px; font-size: .82rem; color: var(--text-3); }
.explain blockquote { margin: 8px 0 0; padding: 8px 12px; border-left: 3px solid var(--gold-500); background: var(--surface); font-style: italic; color: var(--text-2); font-size: .86rem; }
.score-ring { width: 120px; height: 120px; }

/* ---------- simülasyon kabuğu ---------- */
.sim { display: flex; flex-direction: column; gap: 16px; }
.sim-task { background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--gold-500); border-radius: var(--radius); padding: 14px 18px; }
.sim-task h3 { margin: 0 0 6px; font-size: 1.02rem; }
.sim-task ol, .sim-task ul { margin: 0; padding-left: 1.2em; }
.sim-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.feedback { border-radius: var(--radius); padding: 14px 16px; border: 1px solid var(--border); background: var(--surface); }
.feedback.ok { background: var(--ok-bg); border-color: var(--ok-border); }
.feedback.bad { background: var(--bad-bg); border-color: var(--bad-border); }
.feedback.warn { background: var(--warn-bg); border-color: var(--warn-border); }
.feedback h4 { margin: 0 0 6px; }
.feedback ul { margin: 6px 0 0; padding-left: 1.2em; }
.cite { font-size: .8rem; color: var(--text-3); }
.cite::before { content: 'Kaynak: '; font-weight: 600; color: var(--text-2); }

/* cihaz paneli görünümü */
.instrument { background: linear-gradient(180deg, #e9edf2, #d5dbe3); border: 1px solid #b7c0cc; border-radius: 14px; padding: 16px; box-shadow: inset 0 1px 0 #fff, var(--shadow); color: #13213a; }
[data-theme='dark'] .instrument { background: linear-gradient(180deg, #24324a, #1a263b); border-color: #34476a; color: var(--text); }
.instrument-title { display: flex; align-items: center; justify-content: space-between; font-weight: 700; letter-spacing: .04em; font-size: .85rem; color: #3b4a61; margin-bottom: 10px; text-transform: uppercase; }
[data-theme='dark'] .instrument-title { color: var(--text-2); }
.lcd { background: #0d1b2a; color: #9fe8ff; border-radius: 10px; padding: 14px 16px; font-family: var(--mono); box-shadow: inset 0 2px 8px rgba(0, 0, 0, .5); border: 1px solid #08121d; }
.lcd .lcd-big { font-size: 2rem; font-weight: 600; letter-spacing: .02em; color: #d8f6ff; }
.lcd .lcd-label { font-size: .78rem; color: #6fb3c9; letter-spacing: .04em; }
.lcd .lcd-row { display: flex; justify-content: space-between; gap: 12px; }
.lcd.amber { color: #ffd27a; } .lcd.amber .lcd-big { color: #ffe3a6; } .lcd.amber .lcd-label { color: #c79a44; }

/* ---------- DNA dizisi gösterimi ---------- */
.seq { font-family: var(--mono); letter-spacing: .04em; word-break: break-all; line-height: 1.6; }
.b-A { color: var(--base-A); } .b-C { color: var(--base-C); } .b-G { color: var(--base-G); } .b-T { color: var(--base-T); } .b-N { color: var(--base-N); }
.seq-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; overflow-x: auto; }

/* ---------- terminal ---------- */
.terminal { background: #0c1220; color: #d7e1f0; font-family: var(--mono); font-size: .88rem; border-radius: var(--radius); border: 1px solid #1d2a44; overflow: hidden; display: flex; flex-direction: column; }
.terminal-head { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #141d31; border-bottom: 1px solid #1d2a44; font-size: .78rem; color: #8ea0bd; }
.terminal-head i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.terminal-body { padding: 12px 14px; overflow: auto; white-space: pre-wrap; word-break: break-word; flex: 1; min-height: 320px; max-height: 60vh; }
.terminal .prompt { color: #7ee787; }
.terminal .path { color: #79c0ff; }
.terminal .err { color: #ff7b72; }
.terminal .dim { color: #8b98ad; }
.terminal input { background: transparent; border: 0; color: #fff; font: inherit; outline: none; width: 100%; padding: 0; min-height: 0; box-shadow: none; }

/* ---------- eğitmen: öğrenci ızgarası ---------- */
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding: 12px; }
.student-tile { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; background: var(--surface); font-size: .82rem; position: relative; cursor: pointer; }
.student-tile:hover { border-color: var(--navy-500); }
.student-tile .st-name { font-weight: 600; font-size: .86rem; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.student-tile .st-where { color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.student-tile.offline { opacity: .55; }
.student-tile.hand { border-color: var(--gold-500); box-shadow: 0 0 0 2px var(--gold-100); }
.student-tile .st-hand { position: absolute; top: 6px; right: 8px; }
.student-tile .st-bar { margin-top: 6px; }
.status-chip { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.status-chip.none { background: var(--surface-3); border: 1px solid var(--border); }
.status-chip.started, .status-chip.inprogress { background: #f5c451; }
.status-chip.completed { background: #22a565; }
.status-chip.failed { background: #e05252; }

/* ---------- canlı ders üst şeridi (öğrenci) ---------- */
.live-banner { display: flex; align-items: center; gap: 10px; padding: 8px 18px; background: var(--gold-100); color: #4a3a0a; font-size: .9rem; border-bottom: 1px solid #e7d391; }
[data-theme='dark'] .live-banner { background: #2a2410; color: #f4e7bb; border-color: #5c4d1d; }
.attention-overlay { position: fixed; inset: 0; background: rgba(7, 20, 39, .92); color: #fff; z-index: 150; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 30px; }
.attention-overlay .big { font-size: 2.3rem; font-weight: 700; }
.attention-overlay .sub { font-size: 1.2rem; color: #d2ddef; max-width: 760px; }

/* ---------- giriş sayfası ---------- */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--surface); }
.login-hero { background: radial-gradient(1200px 600px at 10% 10%, #1c3a63 0%, #0b1f3a 55%, #071427 100%); color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-hero h1 { color: #fff; font-size: 2.3rem; margin: 0 0 10px; letter-spacing: -.02em; }
.login-hero p { color: #c9d6ea; font-size: 1.06rem; max-width: 520px; }
.login-hero .hero-art { position: absolute; right: -60px; bottom: -40px; opacity: .22; width: 520px; }
.login-hero ul { color: #dbe5f3; padding-left: 1.1em; }
.login-hero li { margin-bottom: 6px; }
.login-form-wrap { display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-card { width: min(400px, 100%); }
.login-card h2 { font-size: 1.5rem; }
@media (max-width: 900px) { .login-page { grid-template-columns: 1fr; } .login-hero { padding: 32px; } .login-hero .hero-art { display: none; } }

/* ---------- projeksiyon ---------- */
body.projector { --fs: 19px; background: var(--bg); }
:root:has(body.projector), :root:has(.main:fullscreen) { --fs: 19px; }
.main:fullscreen { background: var(--bg); padding: 28px 40px; overflow: auto; }
body.projector .slide { padding: 44px 60px 34px; min-height: calc(100vh - 210px); }
body.projector .slide h2 { font-size: 2.1rem; }
body.projector .slide-body { font-size: 1.32rem; }
body.projector .slide-cite { font-size: .95rem; padding: 12px 60px; }
.proj-top { display: flex; align-items: center; gap: 14px; padding: 10px 24px; background: var(--navy-900); color: #fff; border-bottom: 3px solid var(--gold-500); }
.proj-top .proj-title { font-weight: 600; font-size: 1.05rem; }
.proj-main { padding: 18px 26px; }
.proj-idle { min-height: calc(100vh - 80px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; }
.proj-idle .join-url { font-family: var(--mono); font-size: 2.4rem; font-weight: 600; color: var(--navy-800); background: var(--surface); padding: 14px 28px; border-radius: var(--radius-lg); border: 2px solid var(--gold-500); }
[data-theme='dark'] .proj-idle .join-url { color: var(--gold-400); }
.poll-bars { display: grid; gap: 12px; }
.poll-bar { display: grid; grid-template-columns: 44px 1fr 90px; align-items: center; gap: 12px; }
.poll-bar .pb-track { height: 34px; background: var(--surface-3); border-radius: 8px; overflow: hidden; position: relative; }
.poll-bar .pb-fill { height: 100%; background: var(--navy-600); border-radius: 8px; transition: width .4s; }
.poll-bar.correct .pb-fill { background: var(--ok); }
.poll-bar .pb-label { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; right: 12px; }

/* ---------- çeşitli ---------- */
.empty { text-align: center; padding: 40px 20px; color: var(--text-3); }
.empty .big { font-size: 2.4rem; margin-bottom: 8px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: .92rem; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; font-weight: 500; }
.chart { width: 100%; height: auto; display: block; }
.chart text:not([fill]) { fill: var(--text-2); }
.chart text:not([font-family]) { font-family: var(--font); }
.chart .axis line, .chart .axis path { stroke: var(--border-strong); }
.chart .grid line { stroke: var(--border); stroke-dasharray: 2 3; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: var(--text-2); }
.legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; background: var(--c, #999); vertical-align: -1px; }
.draggable { cursor: grab; user-select: none; }
.draggable:active { cursor: grabbing; }
.drop-slot { border: 2px dashed var(--border-strong); border-radius: var(--radius-sm); min-height: 44px; display: flex; align-items: center; padding: 6px 10px; color: var(--text-3); background: var(--surface-2); transition: border-color .12s, background .12s; }
.drop-slot.over { border-color: var(--gold-500); background: var(--gold-100); }
.tooltip-tip { position: fixed; z-index: 300; background: var(--navy-900); color: #fff; padding: 6px 9px; border-radius: 6px; font-size: .8rem; pointer-events: none; max-width: 320px; box-shadow: var(--shadow); }
.pill-group { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; }
.pill-group button { border: 0; background: var(--surface); padding: 7px 12px; font: 500 .88rem var(--font); color: var(--text-2); cursor: pointer; border-right: 1px solid var(--border); }
.pill-group button:last-child { border-right: 0; }
.pill-group button.on { background: var(--navy-800); color: #fff; }

@media (max-width: 1200px) {
  .layout.with-right { grid-template-columns: 260px 1fr 320px; }
}
@media (max-width: 980px) {
  .layout, .layout.with-right { grid-template-columns: 1fr; }
  .sidebar, .rightbar { display: none; }
  .sidebar.open { display: block; position: fixed; top: var(--topbar-h); left: 0; bottom: 0; width: min(320px, 90vw); z-index: 30; box-shadow: var(--shadow-lg); }
  .main { padding: 16px; }
  .slide { padding: 22px 20px; }
  .slide-body .two-col { grid-template-columns: 1fr; }
}
@media print {
  .topbar, .sidebar, .rightbar, .btn, .slide-nav { display: none !important; }
  .app { display: block; height: auto; }
  .main { overflow: visible; }
}
