/* Teacher dashboard — cream canvas, black sidebar, pastel cards with big soft shapes. */
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&display=swap');

body.t-admin {
  --cream: #F7F1E4; --paper: #FBF7EE; --beige: #ECE5D6; --beige-2: #E3DAC6; --ink: #141414; --muted: #8B8579;
  --yellow: #F3D35C; --yellow-d: #D8B638; --pink: #F4B9D7; --pink-d: #E597BF; --green: #A0B266; --green-d: #7E9046;
  --blue: #B6C8EE; --blue-d: #8DA5DA;
  --bg: var(--cream); --surface: var(--paper); --surface-2: var(--beige); --text: var(--ink); --line: var(--beige-2); --accent: var(--ink);
  --f-display: "Figtree", system-ui, sans-serif; --f-body: "Figtree", system-ui, sans-serif; --f-label: "Figtree", system-ui, sans-serif;
  color-scheme: light;
  background: var(--cream); color: var(--ink); font-family: var(--f-body); font-size: 14px;
}
.t-admin * { min-width: 0; }
.t-admin button { font-family: inherit; }
.t-admin .app {
  max-width: 1440px; margin: 24px auto; padding: 18px; display: grid; grid-template-columns: 236px 1fr; gap: 22px;
  border: 3px solid #555; border-radius: 34px; background: var(--cream); min-height: calc(100vh - 48px);
}

/* sidebar */
.t-admin .side {
  background: var(--ink); color: #EDE8DD; border-radius: 18px; padding: 26px 18px 22px; display: flex; flex-direction: column;
  position: sticky; top: 24px; height: calc(100vh - 84px); min-height: 560px;
}
.t-admin .logo { font-size: 30px; font-weight: 600; letter-spacing: -.03em; color: #fff; padding: 0 6px 30px; text-align: center; }
.t-admin .logo i { color: var(--pink); font-style: normal; }
.t-admin .nav-h { color: #8D887E; font-size: 13px; margin: 14px 8px 10px; }
.t-admin .nav {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; margin: 2px 0; border: 0; background: none;
  color: #EDE8DD; font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; border-radius: 10px; position: relative;
}
.t-admin .nav svg { width: 19px; height: 19px; flex: none; stroke: currentColor; }
.t-admin .nav:hover { background: #222; }
.t-admin .nav.active { color: var(--pink); }
.t-admin .nav.active::before { content: ""; position: absolute; left: -4px; top: 6px; bottom: 6px; width: 2px; background: var(--pink); border-radius: 2px; }
.t-admin .side .grow { flex: 1; }

/* top line: search + round buttons */
.t-admin .main { display: flex; flex-direction: column; gap: 0; padding: 4px 4px 8px; }
.t-admin .topline { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.t-admin .search { flex: 1; max-width: 560px; display: flex; align-items: center; gap: 10px; position: relative; }
.t-admin .s-ico { width: 34px; height: 34px; border-radius: 50%; background: var(--pink); display: grid; place-items: center; flex: none; border: 1.5px solid var(--ink); }
.t-admin .s-ico svg { width: 17px; height: 17px; }
.t-admin .s-box { flex: 1; display: flex; align-items: center; gap: 8px; border: 1.5px solid #CFC6B3; border-radius: 99px; padding: 4px 6px 4px 14px; background: var(--paper); }
.t-admin .s-box input { flex: 1; border: 0; background: none; padding: 6px 0; font-size: 14px; outline: none; }
.t-admin .s-box .in { color: var(--muted); font-size: 12px; }
.t-admin .scope { display: flex; gap: 2px; background: var(--beige); border-radius: 99px; padding: 2px; }
.t-admin .scope button { border: 0; background: none; font-size: 11px; padding: 4px 10px; border-radius: 99px; cursor: pointer; color: var(--ink); }
.t-admin .scope button.on { background: var(--ink); color: #fff; }
.t-admin .results {
  position: absolute; top: 46px; left: 44px; right: 0; background: var(--paper); border: 1.5px solid #CFC6B3; border-radius: 16px;
  padding: 6px; z-index: 20; box-shadow: 0 12px 30px rgba(0,0,0,.08); max-height: 360px; overflow: auto;
}
.t-admin .results button { display: flex; gap: 10px; align-items: center; width: 100%; border: 0; background: none; padding: 8px 10px; border-radius: 10px; cursor: pointer; text-align: left; font-size: 13px; }
.t-admin .results button:hover { background: var(--beige); }
.t-admin .results .k { margin-left: auto; color: var(--muted); font-size: 11px; }
.t-admin .round-btns { margin-left: auto; display: flex; gap: 8px; }
.t-admin .rb {
  width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; position: relative;
}
.t-admin .rb svg { width: 19px; height: 19px; stroke: currentColor; }
.t-admin .rb .live { position: absolute; top: 3px; right: 3px; width: 9px; height: 9px; border-radius: 50%; background: #777; border: 2px solid var(--ink); }
.t-admin .rb .live.on { background: #7BD88F; }

/* dashboard layout */
.t-admin .dash { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
.t-admin .greet h1 { font-size: 36px; font-weight: 500; letter-spacing: -.02em; margin: 0 0 10px; }
.t-admin .greet p { color: #6F695E; margin: 0; max-width: 62ch; line-height: 1.5; }
.t-admin .show-all { text-align: right; margin: 22px 0 8px; }
.t-admin .link { border: 0; background: none; font-weight: 600; cursor: pointer; font-size: 13px; color: var(--ink); padding: 0; }
.t-admin .cards { display: grid; gap: 12px; }
.t-admin .cards .r1 { display: grid; grid-template-columns: 37% 1fr; gap: 12px; }
.t-admin .cards .r2 { display: grid; grid-template-columns: 1fr 45%; gap: 12px; }
.t-admin .pc { border-radius: 16px; padding: 18px 18px 14px; position: relative; overflow: hidden; min-height: 178px; }
.t-admin .pc > * { position: relative; z-index: 1; }
.t-admin .pc .shape { position: absolute; z-index: 0; pointer-events: none; }
.t-admin .pc h3 { font-size: 18px; font-weight: 500; margin: 0 0 14px; }
.t-admin .pc.yellow { background: var(--yellow); min-height: 180px; }
.t-admin .pc.pink { background: var(--pink); }
.t-admin .pc.green { background: var(--green); min-height: 82px; }
.t-admin .pc.blue { background: var(--blue); min-height: 82px; }
.t-admin .cards .r2 .pc { min-height: 82px; }
.t-admin .kpis { display: flex; gap: 22px; flex-wrap: wrap; }
.t-admin .kpi b { font-size: 13px; font-weight: 700; } .t-admin .kpi b small { font-weight: 500; font-size: 12px; }
.t-admin .kpi span { display: block; font-size: 9px; color: rgba(20,20,20,.6); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.t-admin .kpi.sel { border-bottom: 2px solid var(--ink); padding-bottom: 6px; }
.t-admin .chart { width: 100%; display: block; margin-top: 10px; }
.t-admin .axis { display: flex; justify-content: space-between; font-size: 9.5px; color: rgba(20,20,20,.65); margin-top: 4px; }
.t-admin .axis b { font-weight: 700; color: var(--ink); }

/* students list + detail */
.t-admin .lower { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-top: 24px; }
.t-admin .lower h2 { font-size: 17px; font-weight: 500; }
.t-admin .lower .lh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; min-height: 30px; }
.t-admin .pill-select {
  background: var(--ink); color: #fff; border: 0; border-radius: 99px; padding: 6px 30px 6px 14px; font-size: 11px; font-family: inherit; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='white' fill='none' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.t-admin .slist { display: grid; gap: 7px; }
.t-admin .srow {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 8px 12px 8px 10px; border-radius: 14px;
  background: var(--beige); cursor: pointer; border: 0; text-align: left; font-family: inherit; color: inherit; width: 100%;
}
.t-admin .srow:hover { background: var(--beige-2); }
.t-admin .srow.sel { background: var(--pink); border-radius: 14px 0 0 14px; margin-right: -16px; padding-right: 28px; }
.t-admin .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; border: 1.5px solid rgba(20,20,20,.15); }
.t-admin .srow .n { font-weight: 600; font-size: 13px; }
.t-admin .srow .s { font-size: 11px; color: #6F695E; }
.t-admin .tp { font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 99px; background: var(--paper); white-space: nowrap; }
.t-admin .detail { background: var(--pink); border-radius: 16px; padding: 16px 18px; min-height: 220px; font-size: 12.5px; }
.t-admin .detail .dt { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.t-admin .detail .dn { font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.t-admin .detail .tag-id { background: var(--paper); border-radius: 99px; padding: 3px 10px; font-size: 11px; font-weight: 600; }
.t-admin .tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 10px; }
.t-admin .tag { background: var(--pink-d); border-radius: 99px; padding: 3px 10px; font-size: 11px; }
.t-admin .kv { display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; margin-top: 8px; }
.t-admin .kv > span:nth-child(odd) { color: #6F4A5E; }
.t-admin .dl { display: grid; gap: 4px; }
.t-admin .dl button { display: grid; grid-template-columns: 1fr 52px 34px; gap: 8px; align-items: center; border: 0; background: rgba(255,255,255,.45); border-radius: 8px; padding: 5px 8px; font-size: 12px; cursor: pointer; text-align: left; font-family: inherit; }
.t-admin .dl button:hover { background: rgba(255,255,255,.75); }
.t-admin .dl .st { font-size: 10px; text-transform: uppercase; color: #6F4A5E; }
.t-admin .detail .acts { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.t-admin .btn-ink { background: var(--ink); color: #fff; border: 0; border-radius: 99px; padding: 9px 16px; font-weight: 600; font-size: 13px; cursor: pointer; }
.t-admin .btn-soft { background: var(--paper); color: var(--ink); border: 0; border-radius: 99px; padding: 7px 14px; font-weight: 600; font-size: 12px; cursor: pointer; }

/* right column: calendar + timeline */
.t-admin .right { display: flex; flex-direction: column; min-height: 0; }
.t-admin .cal-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.t-admin .cal-h button { border: 0; background: none; cursor: pointer; padding: 4px; }
.t-admin .cal-h svg { width: 20px; height: 20px; }
.t-admin .month { background: var(--pink); border-radius: 99px; padding: 3px 12px; font-size: 12px; font-weight: 500; }
.t-admin .cal { display: grid; grid-template-columns: repeat(7, 1fr) 30px; row-gap: 6px; text-align: center; font-size: 12px; }
.t-admin .cal .wd { font-size: 11px; background: var(--paper); border-radius: 6px; padding: 3px 0; margin: 0 2px 4px; }
.t-admin .cal .wn { font-size: 9.5px; color: var(--muted); display: grid; place-items: center; }
.t-admin .cal .wn.cur { background: var(--beige); border-radius: 6px; color: var(--ink); }
.t-admin .day { height: 30px; width: 30px; margin: auto; border-radius: 50%; border: 0; background: none; cursor: pointer; font-size: 12px; font-family: inherit; position: relative; color: var(--ink); }
.t-admin .day.out { color: #BDB6A8; }
.t-admin .day.act::after { content: ""; position: absolute; bottom: 2px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--pink-d); }
.t-admin .day.today { font-weight: 700; text-decoration: underline; }
.t-admin .day.les { box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 600; }
.t-admin .cal-legend { display: flex; gap: 14px; font-size: 10.5px; color: var(--muted); margin-top: 10px; }
.t-admin .cal-legend i { display: inline-block; vertical-align: -2px; margin-right: 5px; }
.t-admin .lg-les { width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); }
.t-admin .lg-act { width: 5px; height: 5px; border-radius: 50%; background: var(--pink-d); vertical-align: 1px !important; }
.t-admin .ev .box.lesson-day { background: var(--yellow); }
.t-admin .ev .box.lesson-day:hover { background: #EAC84B; }
.t-admin .date-in { border: 0; background: var(--beige); border-radius: 99px; padding: 4px 10px; font: inherit; font-size: 12px; }
.t-admin .day.sel { background: var(--pink); font-weight: 700; }
.t-admin .day.sel::after { background: var(--ink); }
.t-admin .cal-acts { display: flex; gap: 8px; margin: 14px 0 22px; }
.t-admin .cal-acts .btn-ink { flex: 1; }
.t-admin .rb.light { background: var(--paper); color: var(--ink); border: 1.5px solid var(--beige-2); }
.t-admin .tl-h { display: flex; justify-content: space-between; align-items: center; margin: 0 0 10px; }
.t-admin .tl-h h2 { font-size: 20px; font-weight: 500; }
.t-admin .tl-sub { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin-bottom: 10px; }
.t-admin .tl-sub span:first-child { width: 46px; }
.t-admin .tl-sub span:nth-child(2) { flex: 1; }
.t-admin .timeline { flex: 1; overflow: auto; max-height: 420px; display: grid; gap: 8px; align-content: start; padding-right: 2px; }
.t-admin .ev { display: grid; grid-template-columns: 38px 1fr; gap: 8px; align-items: start; }
.t-admin .ev .tm { font-size: 9.5px; color: var(--muted); padding-top: 4px; }
.t-admin .ev .box { background: var(--beige); border-radius: 12px; padding: 10px 12px; display: grid; grid-template-columns: 32px 1fr; gap: 10px; cursor: pointer; border: 0; text-align: left; font-family: inherit; color: inherit; width: 100%; }
.t-admin .ev .box:hover { background: var(--beige-2); }
.t-admin .ev .box b { font-size: 12.5px; font-weight: 600; display: block; }
.t-admin .ev .box small { display: block; font-size: 10.5px; color: #6F695E; }
.t-admin .ev .av { width: 30px; height: 30px; font-size: 11px; }
.t-admin .now { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 8px; }
.t-admin .now span { background: var(--pink); border-radius: 4px; font-size: 9.5px; text-align: center; padding: 1px 0; }
.t-admin .now i { border-top: 1.5px dashed var(--ink); }
.t-admin .tl-empty { color: var(--muted); font-size: 12.5px; padding: 18px 4px; }
.t-admin .view-all { margin-top: 12px; width: 100%; }

/* other views */
.t-admin .vh { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.t-admin .vh h1 { font-size: 32px; font-weight: 500; letter-spacing: -.02em; }
.t-admin .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.t-admin .chipb { border: 1.5px solid var(--beige-2); background: var(--paper); border-radius: 99px; padding: 6px 12px; font-size: 12px; cursor: pointer; }
.t-admin .chipb.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.t-admin .ltable { background: var(--paper); border-radius: 16px; padding: 6px 10px; }
.t-admin .ltable th { font-size: 11px; color: var(--muted); }
.t-admin .ltable td { border-bottom: 1px solid var(--beige); }
.t-admin .ltable select { border-radius: 99px; padding: 4px 10px; background: var(--beige); border: 0; font-size: 12px; }
.t-admin .sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.t-admin .scard { border-radius: 16px; padding: 16px 18px; display: grid; gap: 10px; position: relative; overflow: hidden; }
.t-admin .scard .row { justify-content: space-between; }
.t-admin .bar { background: rgba(255,255,255,.55); height: 7px; }
.t-admin .bar > i { background: var(--ink); }
.t-admin .bar.done > i { background: var(--ink); }
.t-admin .badge { font-size: 10.5px; }
.t-admin dialog { border-radius: 20px; border: 0; background: var(--paper); }
.t-admin dialog .dh { background: var(--paper); border-color: var(--beige); }
.t-admin dialog input, .t-admin dialog select { background: #fff; border-color: var(--beige-2); border-radius: 10px; }
.t-admin .btn { border-radius: 99px; }
.t-admin .btn.primary { background: var(--ink); color: #fff; }

@media (max-width: 1180px) {
  .t-admin .dash { grid-template-columns: 1fr; }
  .t-admin .timeline { max-height: none; }
}
@media (max-width: 860px) {
  .t-admin .app { grid-template-columns: 1fr; margin: 0; border: 0; border-radius: 0; padding: 12px 16px; gap: 14px; }
  .t-admin .side { position: static; height: auto; min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 12px; gap: 2px; }
  .t-admin .logo { padding: 0 10px 0 4px; font-size: 22px; }
  .t-admin .nav-h, .t-admin .side .grow { display: none; }
  .t-admin .nav { width: auto; padding: 6px 8px; font-size: 13px; }
  .t-admin .nav span { display: none; }
  .t-admin .nav.active span { display: inline; }
  .t-admin .cards .r1, .t-admin .cards .r2, .t-admin .lower { grid-template-columns: 1fr; }
  .t-admin .srow.sel { margin-right: 0; padding-right: 12px; border-radius: 14px; }
  .t-admin .detail { margin-top: 12px; }
  .t-admin .greet h1 { font-size: 28px; }
  .t-admin .s-box .in, .t-admin .scope { display: none; }
}
