/* ════════════════════════════════════════
   style.css — Eğitim Sistemi Ana Stili
   ════════════════════════════════════════ */

:root {
  --acc:   #6366f1;
  --acc-l: #e0e7ff;
  --bg:    #f5f4f7;
  --sur:   #fff;
  --sur2:  #f8f7fa;
  --brd:   #e8e6ed;
  --txt:   #1a1523;
  --txt2:  #6b6578;
  --txt3:  #9993a8;
  --ok:    #059669;
  --err:   #dc2626;
  --warn:  #d97706;
  --shd:   0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
  --shd2:  0 4px 24px rgba(0,0,0,.1);
  --r:     12px;
  --rs:    8px;
  --rl:    18px;
  --sc:    #6366f1;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--txt);
  line-height: 1.5;
  min-height: 100vh;
  font-size: 14px;
}

::-webkit-scrollbar         { width: 5px; height: 5px; }
::-webkit-scrollbar-track   { background: transparent; }
::-webkit-scrollbar-thumb   { background: var(--brd); border-radius: 10px; }

/* ── LAYOUT ──────────────────────────────────────── */
#app   { display: flex; flex-direction: column; min-height: 100vh; }
.mlayout {
  display: flex; flex: 1;
  overflow: hidden;
  height: calc(100vh - 58px);
}

/* ── TOPBAR ──────────────────────────────────────── */
.topbar {
  background: var(--sc);
  border-bottom: 1px solid rgba(0,0,0,.1);
  height: 58px;
  display: flex; align-items: center;
  padding: 0 1.25rem; gap: .6rem;
  flex-shrink: 0;
}
.tlogo  { font-size: 1.05rem; font-weight: 700; color: #fff; cursor: pointer; white-space: nowrap; transition: color .3s; }
.tsep   { flex: 1; }
.tright { display: flex; align-items: center; gap: .5rem; }

.nav-arrow { padding: .3rem .5rem; font-size: .9rem; min-width: 30px; justify-content: center; }
.nav-arrow:disabled { opacity: .3; cursor: default; transform: none !important; }

.sbadge {
  display: flex; align-items: center; gap: .45rem;
  padding: .3rem .75rem .3rem .3rem; border-radius: 30px;
  cursor: pointer; transition: all .2s;
  border: 1.5px solid rgba(255,255,255,.5); background: rgba(255,255,255,.15);
  font-size: .82rem; font-weight: 500; color: #fff;
}
.sbadge:hover { border-color: #fff; background: rgba(255,255,255,.25); }
#tname { color: #000 !important; font-weight: 600; }
.savatar {
  width: 27px; height: 27px; border-radius: 50%;
  background: var(--sc); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 700; flex-shrink: 0; transition: background .3s;
}
.nbtn {
  position: relative; width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--brd); background: var(--sur2);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: .95rem; transition: all .2s;
  color: #fff;
}
.nbtn:hover { border-color: var(--sc); }
.nbadge {
  position: absolute; top: -3px; right: -3px;
  min-width: 15px; height: 15px; border-radius: 10px;
  background: var(--err); color: #fff;
  font-size: .6rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

/* ── STUDENT SELECTOR BAR ────────────────────────── */
.ssel {
  background: var(--sur); border-bottom: 1px solid var(--brd);
  padding: .55rem 1.25rem;
  display: flex; align-items: center; gap: .5rem;
  flex-shrink: 0; flex-wrap: wrap;
}
.schip {
  display: flex; align-items: center; gap: .4rem;
  padding: .3rem .7rem .3rem .35rem; border-radius: 30px;
  cursor: pointer; border: 1.5px solid var(--brd); background: var(--sur2);
  font-size: .78rem; font-weight: 600; white-space: nowrap; transition: all .2s;
}
.schip.active {
  border-color: var(--s-c, #6366f1);
  background: color-mix(in srgb, var(--s-c, #6366f1) 10%, white);
  color: var(--s-c, #6366f1);
}
.presence-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.presence-dot.active  { background: #10b981; box-shadow: 0 0 0 2px rgba(16,185,129,.3); }
.presence-dot.passive { background: #f59e0b; box-shadow: 0 0 0 2px rgba(245,158,11,.3); }
.presence-dot.offline { background: #9ca3af; }
.presence-chip {
  display: flex; align-items: center; gap: .3rem;
  padding: .2rem .55rem; border-radius: 20px;
  font-size: .72rem; font-weight: 600; white-space: nowrap;
  border: 1.5px solid transparent; cursor: default; position: relative;
}
.presence-chip.self { border-color: var(--sc); background: var(--acc-l); color: var(--sc); cursor: pointer; }
.presence-chip .tooltip {
  display: none; position: fixed;
  background: var(--sur); color: var(--txt);
  border: 1px solid var(--brd); box-shadow: var(--shd2);
  font-size: .72rem; padding: .3rem .6rem; border-radius: 6px;
  white-space: nowrap; z-index: 9999; pointer-events: none; font-weight: 500;
}
.presence-chip:hover .tooltip { display: block; }
#ssel-right { display: flex; align-items: center; gap: .35rem; margin-left: auto; flex-shrink: 0; flex-wrap: wrap; position: relative; z-index: 150; }

/* ── SIDEBAR ─────────────────────────────────────── */
.sidebar {
  width: 215px; background: var(--sur); border-right: 1px solid var(--brd);
  padding: .75rem .5rem; display: flex; flex-direction: column;
  gap: .15rem; overflow-y: auto; flex-shrink: 0;
}
.ssec { font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--txt3); padding: .5rem .75rem .25rem; margin-top: .3rem; }
.nitem {
  display: flex; align-items: center; gap: .55rem;
  padding: .5rem .75rem; border-radius: var(--rs);
  cursor: pointer; font-size: .845rem; font-weight: 500;
  color: var(--txt2); transition: all .12s;
  border: none; background: none; width: 100%; text-align: left; position: relative;
}
.nitem:hover  { background: var(--bg); color: var(--txt); }
.nitem.active { background: var(--acc-l); color: var(--sc); }
.nitem.active::before {
  content: ''; position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--sc);
}
.nicon   { font-size: .95rem; flex-shrink: 0; }
.nbubble {
  margin-left: auto; min-width: 18px; height: 18px; border-radius: 9px;
  background: var(--warn); color: #fff;
  font-size: .65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* ── CONTENT ─────────────────────────────────────── */
.content { flex: 1; overflow-y: auto; padding: 1.25rem; background: var(--bg); }
.page         { display: none; }
.page.active  { display: block; }

/* ── PENDING PANEL ───────────────────────────────── */
.ppanel { width: 290px; background: var(--sur); border-left: 1px solid var(--brd); padding: .875rem; overflow-y: auto; flex-shrink: 0; }
.ppanel-title { font-size: .82rem; font-weight: 700; display: flex; align-items: center; gap: .4rem; margin-bottom: .65rem; padding-bottom: .5rem; border-bottom: 1px solid var(--brd); }
.pf-btn { padding: .2rem .55rem; border-radius: 20px; border: 1px solid var(--brd); background: none; font-size: .72rem; font-weight: 600; cursor: pointer; color: var(--txt2); transition: all .12s; }
.pf-btn.active { background: var(--sc); color: #fff; border-color: var(--sc); }
.pitem { padding: .65rem; border-radius: var(--rs); border: 1px solid var(--brd); margin-bottom: .45rem; background: var(--sur2); }
.pitem:hover { box-shadow: var(--shd); }
.pitem-name { font-weight: 600; font-size: .82rem; margin-bottom: .15rem; }
.pitem-meta { font-size: .72rem; color: var(--txt2); margin-bottom: .4rem; }
.tbadge { display: inline-block; padding: .1rem .35rem; border-radius: 4px; font-size: .67rem; font-weight: 700; background: var(--acc-l); color: var(--txt); }

/* ── CARDS ───────────────────────────────────────── */
.card { background: var(--sur); border-radius: var(--r); border: 1px solid var(--brd); padding: 1.1rem; box-shadow: var(--shd); }
.card-hdr   { display: flex; align-items: center; justify-content: space-between; margin-bottom: .875rem; gap: .4rem; flex-wrap: wrap; }
.card-title { font-size: .875rem; font-weight: 700; color: var(--txt); display: flex; align-items: center; gap: .35rem; }

/* ── BUTTONS ─────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .9rem; border-radius: var(--rs); border: none; cursor: pointer; font-size: .78rem; font-weight: 600; font-family: inherit; transition: all .12s; white-space: nowrap; }
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-p   { background: var(--sc);   color: #fff; } .btn-p:hover   { filter: brightness(1.1); }
.btn-ok  { background: var(--ok);   color: #fff; } .btn-ok:hover  { filter: brightness(1.1); }
.btn-err { background: var(--err);  color: #fff; }
.btn-g   { background: var(--sur2); color: var(--txt2); border: 1px solid var(--brd); } .btn-g:hover { background: var(--bg); color: var(--txt); }
.btn-sm  { padding: .3rem .65rem;   font-size: .73rem; }
.btn-xs  { padding: .18rem .45rem;  font-size: .68rem; }

/* ── FORMS ───────────────────────────────────────── */
.fg   { margin-bottom: .8rem; }
.flbl { display: block; font-size: .77rem; font-weight: 600; margin-bottom: .3rem; color: var(--txt2); }
.fi, .fsel, .fta {
  width: 100%; padding: .5rem .75rem;
  border: 1.5px solid var(--brd); border-radius: var(--rs);
  font-size: .855rem; font-family: inherit;
  background: var(--sur); color: var(--txt); transition: border-color .12s;
}
.fi:focus, .fsel:focus, .fta:focus {
  outline: none; border-color: var(--sc);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sc) 15%, transparent);
}
.fta { resize: vertical; min-height: 75px; }

/* ── LOGIN ───────────────────────────────────────── */
.login-scr {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1523 0%, #2d1f52 50%, #1a1523 100%);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.login-card {
  background: rgba(255,255,255,.05); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.1); border-radius: 22px;
  padding: 2.25rem; width: 100%; max-width: 390px;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.login-card h2    { color: #fff; font-size: 1.35rem; font-weight: 700; text-align: center; margin-bottom: .35rem; }
.login-card p     { color: rgba(255,255,255,.45); text-align: center; font-size: .82rem; margin-bottom: 1.75rem; }
.llogo            { text-align: center; font-size: 2.75rem; margin-bottom: .875rem; }
.login-card .flbl { color: rgba(255,255,255,.7); }
.login-card .fi   { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #fff; }
.login-card .fi::placeholder { color: rgba(255,255,255,.3); }
.login-card .fi:focus { border-color: var(--acc); background: rgba(255,255,255,.12); }
.lbtn-stu {
  display: flex; align-items: center; gap: .75rem;
  width: 100%; padding: .7rem .9rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--rs); color: #fff; cursor: pointer;
  transition: all .2s; font-family: inherit; font-size: .875rem; margin-bottom: .4rem;
}
.lbtn-stu:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); transform: translateX(3px); }
.lstu-av { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; color: #fff; flex-shrink: 0; }

/* ── TREE ────────────────────────────────────────── */
.tree-node   { border: 1px solid var(--brd); border-radius: var(--rs); margin-bottom: .35rem; overflow: hidden; }
.tree-hdr    { display: flex; align-items: center; gap: .4rem; padding: .6rem .75rem; cursor: pointer; background: var(--sur); transition: background .12s; user-select: none; }
.tree-hdr:hover { background: var(--sur2); }
.tree-tog    { font-size: .65rem; color: var(--txt3); transition: transform .2s; margin-left: auto; }
.tree-hdr.open .tree-tog { transform: rotate(90deg); }
.tree-body   { display: none; padding: .35rem .35rem .5rem 1.75rem; background: var(--sur2); border-top: 1px solid var(--brd); }
.tree-body.open { display: block; }
.tree-unit   { font-size: .78rem; font-weight: 700; color: var(--sc); padding: .35rem .25rem .15rem; display: flex; align-items: center; justify-content: space-between; }
.tree-topic  { display: flex; align-items: center; justify-content: space-between; padding: .4rem .55rem; border-radius: 6px; margin-bottom: .15rem; background: var(--sur); border: 1px solid var(--brd); cursor: pointer; font-size: .8rem; transition: all .12s; }
.tree-topic:hover  { border-color: var(--sc); }
.tree-topic.active { border-color: var(--sc); background: var(--acc-l); color: var(--sc); }

/* ── EXAM ROW ────────────────────────────────────── */
.erow { display: flex; align-items: center; justify-content: space-between; padding: .65rem .9rem; border: 1px solid var(--brd); border-radius: var(--rs); margin-bottom: .35rem; background: var(--sur); cursor: pointer; transition: all .12s; gap: .4rem; }
.erow:hover { border-color: var(--sc); box-shadow: var(--shd); }
.erow-info  { flex: 1; min-width: 0; }
.erow-name  { font-weight: 600; font-size: .845rem; }
.erow-meta  { font-size: .73rem; color: var(--txt2); }

/* ── STATUS PILLS ────────────────────────────────── */
.sp      { display: inline-flex; align-items: center; gap: .2rem; padding: .18rem .5rem; border-radius: 20px; font-size: .7rem; font-weight: 700; white-space: nowrap; }
.sp-prog { background: #dbeafe; color: #1e40af; }
.sp-wait { background: #fef3c7; color: #92400e; }
.sp-rel  { background: #d1fae5; color: #065f46; }
.sp-none { background: #f3f4f6; color: #6b7280; }

/* ── EXAM SCREEN ─────────────────────────────────── */
#exam-scr { position: fixed; inset: 0; background: var(--bg); z-index: 500; display: none; flex-direction: column; }
#exam-scr.active { display: flex; }
.exam-topbar  { background: var(--sur); border-bottom: 1px solid var(--brd); padding: 0 1.25rem; height: 56px; display: flex; align-items: center; justify-content: space-between; gap: .875rem; flex-shrink: 0; }
.exam-tl      { flex: 1; }
.exam-title   { font-weight: 700; font-size: .95rem; }
.exam-sub     { font-size: .72rem; color: var(--txt2); }
.exam-timer   { text-align: center; background: var(--sur2); border: 1px solid var(--brd); border-radius: var(--rs); padding: .25rem .875rem; }
.timer-val    { font-family: 'DM Mono', monospace; font-size: 1.15rem; font-weight: 700; color: var(--sc); }
.timer-lbl    { font-size: .62rem; color: var(--txt3); text-transform: uppercase; }
.exam-prog-wrap { flex: 1; max-width: 170px; }
.exam-prog-txt  { font-size: .72rem; color: var(--txt2); margin-bottom: .18rem; }
.exam-prog-bar  { height: 5px; background: var(--brd); border-radius: 10px; overflow: hidden; }
.exam-prog-fill { height: 100%; border-radius: 10px; background: var(--sc); transition: width .3s; }
.exam-body { flex: 1; overflow-y: auto; padding: 1.25rem; }
.exam-inner { max-width: 700px; margin: 0 auto; }
.qcard { background: var(--sur); border: 2px solid var(--brd); border-radius: var(--r); padding: 1.1rem; margin-bottom: 1.1rem; transition: border-color .15s; user-select: none; -webkit-user-select: none; }
.qcard.answered { border-color: var(--sc); }
.qnum  { font-size: .72rem; font-weight: 700; color: var(--txt3); margin-bottom: .35rem; font-family: 'DM Mono', monospace; }
.qtext { font-size: .925rem; font-weight: 500; margin-bottom: .875rem; line-height: 1.6; user-select: none; -webkit-user-select: none; }
.opt   { display: flex; align-items: center; gap: .65rem; padding: .55rem .85rem; border: 1.5px solid var(--brd); border-radius: var(--rs); margin-bottom: .35rem; cursor: pointer; transition: all .12s; font-size: .845rem; user-select: none; }
.opt:hover { border-color: var(--sc); background: color-mix(in srgb, var(--sc) 5%, white); }
.opt.sel   { border-color: var(--sc); background: color-mix(in srgb, var(--sc) 10%, white); }
.opt-k { width: 24px; height: 24px; border-radius: 50%; background: var(--sur2); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .77rem; flex-shrink: 0; border: 1.5px solid var(--brd); position: relative; transition: background .15s, border-color .15s, color .15s; overflow: hidden; }
.opt-txt { flex: 1; font-size: .845rem; }
.opt.sel .opt-k { background: var(--sc); color: #fff; border-color: var(--sc); }
.opt-cancel { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--brd); background: var(--sur2); color: var(--txt2); font-size: .72rem; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .1s, color .1s; }
.opt-cancel:hover { background: var(--err); color: #fff; border-color: var(--err); }
.opt.sel .opt-cancel { border-color: var(--sc); color: var(--sc); }
.opt.sel .opt-cancel:hover { background: var(--err); color: #fff; }
.opt-locked { opacity: .6; cursor: not-allowed; pointer-events: none; }
.qcard.locked { opacity: .7; }
.qcard.locked .qnum { color: var(--txt3); }

/* ── RESULT ──────────────────────────────────────── */
.rsgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: .65rem; margin-bottom: 1.1rem; }
.rsstat { text-align: center; padding: .875rem .5rem; background: var(--sur2); border-radius: var(--rs); border: 1px solid var(--brd); flex: 1; min-width: 0; }
.rsstat-wrap { display: flex; gap: .5rem; padding: .5rem; border: 1.5px solid var(--brd); border-radius: var(--rs); background: var(--sur2); margin-bottom: .5rem; flex-wrap: wrap; }
.rsstat-wrap .rsstat { flex: 1; min-width: 70px; font-style: normal; }
.rsval  { font-size: 1.75rem; font-weight: 700; font-family: 'DM Mono', monospace; }
.rslbl  { font-size: .7rem; color: var(--txt2); margin-top: .12rem; text-transform: uppercase; letter-spacing: .05em; }
.rs-ok  .rsval { color: var(--ok);  }
.rs-err .rsval { color: var(--err); }
.rs-nil .rsval { color: var(--txt3);}
.rs-sc  .rsval { color: var(--sc);  }

/* ── COLLAPSE ────────────────────────────────────── */
.col-hdr { display: flex; align-items: center; justify-content: space-between; padding: .6rem .85rem; background: var(--sur2); border: 1px solid var(--brd); border-radius: var(--rs); cursor: pointer; font-weight: 600; font-size: .82rem; margin-bottom: .35rem; user-select: none; }
.col-ico { transition: transform .2s; }
.col-hdr.open .col-ico { transform: rotate(180deg); }
.col-body { display: none; margin-bottom: .65rem; }
.col-body.open { display: block; }
.vrow  { display: flex; align-items: center; justify-content: space-between; padding: .45rem 0; border-bottom: 1px solid var(--brd); font-size: .82rem; }
.vcnt  { font-family: 'DM Mono', monospace; font-weight: 700; color: var(--err); }
.stat-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border-radius: 20px; font-size: .77rem; font-weight: 600; background: var(--sur2); border: 1px solid var(--brd); }
.perf-bar  { height: 7px; background: var(--brd); border-radius: 10px; overflow: hidden; margin-top: .25rem; }
.perf-fill { height: 100%; border-radius: 10px; transition: width .4s; }

/* ── MODAL ───────────────────────────────────────── */
.movl  { position: fixed; inset: 0; background: rgba(0,0,0,.4); backdrop-filter: blur(3px); z-index: 600; display: none; align-items: center; justify-content: center; padding: 1rem; }
.movl.active { display: flex; }
.modal { background: var(--sur); border-radius: var(--rl); width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; padding: 1.35rem; box-shadow: var(--shd2); border: 1px solid var(--brd); }
.modal-hdr   { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; padding-bottom: .65rem; border-bottom: 1px solid var(--brd); }
.modal-title { font-size: .95rem; font-weight: 700; }

/* ── NOTIF PANEL ─────────────────────────────────── */
.npanel { position: fixed; top: 62px; right: .875rem; width: 290px; background: var(--sur); border: 1px solid var(--brd); border-radius: var(--r); box-shadow: var(--shd2); z-index: 200; display: none; overflow: hidden; }
.npanel.active { display: block; }
.npanel-hdr { padding: .65rem .875rem; border-bottom: 1px solid var(--brd); font-weight: 700; font-size: .82rem; display: flex; align-items: center; justify-content: space-between; }
.nitem-notif { padding: .65rem .875rem; border-bottom: 1px solid var(--brd); font-size: .79rem; cursor: pointer; transition: background .12s; }
.nitem-notif:hover { background: var(--sur2); }
.nitem-notif.unread { border-left: 3px solid var(--sc); }
.nitem-msg  { font-weight: 500; margin-bottom: .18rem; }
.nitem-time { font-size: .7rem; color: var(--txt3); }

/* ── TOASTS ──────────────────────────────────────── */
.tcontainer { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 700; display: flex; flex-direction: column; gap: .4rem; }
.toast  { padding: .65rem .875rem; border-radius: var(--rs); font-size: .82rem; font-weight: 500; box-shadow: var(--shd2); animation: tin .3s ease; max-width: 300px; }
@keyframes tin { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.t-ok   { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.t-err  { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.t-warn { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.t-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* ── EMPTY STATE ─────────────────────────────────── */
.empty      { text-align: center; padding: 2.25rem 1rem; color: var(--txt2); }
.empty-ico  { font-size: 2.25rem; margin-bottom: .65rem; }
.empty-txt  { font-size: .875rem; }

/* ── HOME CARDS ──────────────────────────────────── */
.hsc {
  background: var(--sur); border: 1.5px solid var(--brd); border-radius: var(--r);
  padding: 1rem; cursor: pointer; transition: all .2s;
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  text-align: center; position: relative; overflow: hidden;
}
.hsc::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--s-c, var(--sc)); }
.hsc:hover   { border-color: var(--s-c, var(--sc)); box-shadow: 0 4px 20px rgba(0,0,0,.1); transform: translateY(-2px); }
.hsc:hover::before { height: 5px; }
.hsc-av { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 800; color: #fff; }
.add-tile { border: 2px dashed var(--brd); border-radius: var(--r); padding: 1.25rem; text-align: center; cursor: pointer; color: var(--txt2); transition: all .2s; }
.add-tile:hover { border-color: var(--sc); color: var(--sc); background: var(--acc-l); }

/* ── STUDENT LESSONS VIEW ────────────────────────── */
.les-lesson    { background: var(--sur); border: 1px solid var(--brd); border-radius: var(--r); margin-bottom: .75rem; overflow: hidden; }
.les-les-hdr   { display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; cursor: pointer; background: var(--sur); transition: background .12s; font-weight: 700; font-size: .9rem; }
.les-les-hdr:hover { background: var(--sur2); }
.les-les-body  { display: none; border-top: 1px solid var(--brd); padding: .5rem .5rem .75rem 1.5rem; background: var(--sur2); }
.les-les-body.open { display: block; }
.les-unit-name { font-weight: 600; font-size: .8rem; color: var(--sc); padding: .3rem 0 .15rem; }
.les-topic     { padding: .35rem .55rem; border-radius: 6px; margin-bottom: .2rem; background: var(--sur); border: 1px solid var(--brd); font-size: .8rem; display: flex; align-items: center; justify-content: space-between; }

/* ── VIOLATIONS TOAST ────────────────────────────── */
.viol-toast { position: fixed; top: 68px; right: .875rem; background: #1a1523; color: #fff; padding: .7rem .9rem; border-radius: var(--rs); font-size: .8rem; font-weight: 500; z-index: 600; box-shadow: var(--shd2); display: none; border-left: 3px solid var(--err); max-width: 270px; }
.viol-toast.show { display: block; animation: slin .3s ease; }
@keyframes slin { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── STUDENT SWITCHER ────────────────────────────── */
#stu-switcher { position: fixed; top: 62px; right: 4rem; width: 210px; background: var(--sur); border: 1px solid var(--brd); border-radius: var(--r); box-shadow: var(--shd2); z-index: 300; display: none; overflow: hidden; }
.sswitch-btn  { display: flex; align-items: center; gap: .55rem; width: 100%; padding: .55rem .875rem; background: none; border: none; cursor: pointer; font-family: inherit; font-size: .845rem; transition: background .12s; text-align: left; }
.sswitch-btn:hover  { background: var(--sur2); }
.sswitch-btn.active { background: var(--acc-l); font-weight: 700; color: var(--sc); }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
  .ppanel { display: none; }
  .sidebar { width: 56px; }
  .sidebar .nitem span, .sidebar .ssec, .sidebar .nbubble { display: none; }
  .sidebar .nitem { justify-content: center; padding: .55rem; }
}
@media (max-width: 600px) {
  .sidebar  { display: none; }
  .content  { padding: .875rem; }
}

/* ── Önizleme simülasyonu ──────────────────────────────────────────────────── */
#pv-sim-wrap {
  display: none;
  flex-direction: column;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--bg);
}
#pv-sim-wrap .mlayout {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
#pv-sim-wrap .content {
  overflow-y: auto;
}
#pv-npanel {
  position: absolute;
  top: 48px;
  right: .875rem;
  width: 290px;
  background: var(--sur);
  border: 1px solid var(--brd);
  border-radius: var(--r);
  box-shadow: var(--shd2);
  z-index: 200;
  display: none;
  overflow: hidden;
}
#pv-npanel.active { display: block; }
#pv-banner {
  position: relative;
  z-index: 10;
}

/* ── Yeni sınav highlight ────────────────────────────────────────────────── */
.exam-new-highlight {
  background: #d1fae5 !important;
  border-color: #6ee7b7 !important;
  transition: background 1s, border-color 1s;
}
.exam-tree-row { border-radius: var(--rs); }

/* ── Bildirim sayfası ────────────────────────────────────────────────────── */
.notif-unread {
  background: color-mix(in srgb, var(--sc) 5%, var(--sur));
}

.topbar .btn-g { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.4); color: #fff; }
.topbar .btn-g:hover { background: rgba(255,255,255,.25); }

/* ── Canvas Kalem Toolbar ─────────────────────────────────────────────────── */
#draw-toolbar button:hover { opacity: .85; }
#draw-panel [data-color]:hover { transform: scale(1.2) !important; }
.draw-canvas { touch-action: none; }
.qimg-wrap { display: inline-block; width: 100%; }
