/* ===== Teachable admin prototype — shared design system ===== */
:root{
  --sidebar:#222222;
  --sidebar-text:#c4c4c4;
  --sidebar-muted:#8a8a8a;
  --page:#ffffff;
  --card:#fbfbfb;
  --border:#e5e5e5;
  --ink:#1f2933;
  --ink2:#1a1a1a;
  --muted:#4b5563;
  --muted2:#6b7280;
  --time:#9aa0a6;
  --navy:#1d4875;
  --lav:#dfeaff;
  --tip:#f9faf4;
  --teal:#1ca699;
  --lime:#e8ff33;
  --slate:#46536b;
  --sans:'Inter',-apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,sans-serif;
  --serif:Georgia,'Times New Roman','Nimbus Roman',serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{background:var(--page);color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body{font-size:15px;line-height:1.4}
a{color:inherit;text-decoration:none}
.icon{stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}

/* ---------- Sidebar: shared ---------- */
.sidebar{position:fixed;top:0;left:0;bottom:0;width:224px;background:var(--sidebar);color:var(--sidebar-text);display:flex;flex-direction:column;z-index:10}
.sb-brand{padding:20px 18px 18px;font-weight:700;font-size:15px;color:#fff;border-bottom:1px solid rgba(255,255,255,.08);white-space:nowrap}
.sb-brand.sec{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;white-space:normal}
.sb-brand.sec .bn{line-height:1.25}
.sb-brand.sec .search{width:20px;height:20px;color:#cfcfcf;flex:0 0 auto;margin-top:2px}
.sb-user{margin-top:auto;border-top:1px solid rgba(255,255,255,.08);display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 18px 14px 20px;color:#e4e4e4;font-size:14px}
.sb-user .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sb-user .dots{width:18px;height:18px;fill:#cfcfcf;stroke:none;flex:0 0 auto}

/* Mode A — full labeled nav */
.sb-nav{padding:10px 0;overflow-y:auto;flex:1}
.sb-item{display:flex;align-items:center;gap:14px;padding:9px 20px;color:var(--sidebar-text);font-size:15px;cursor:pointer}
.sb-item .icon{width:20px;height:20px;opacity:.92}
.sb-item:hover{color:#fff}
.sb-item.active{color:#fff}
.sb-item.active span{text-decoration:underline;text-underline-offset:3px}
.sb-group{display:flex;align-items:center;justify-content:space-between;padding:18px 20px 8px;color:var(--sidebar-muted);font-size:11px;font-weight:600;letter-spacing:.09em;text-transform:uppercase}
.sb-group .icon{width:17px;height:17px;stroke-width:1.7}

/* Mode B — icon rail + submenu */
.sb-body{flex:1;display:flex;min-height:0}
.sb-rail{width:56px;flex:0 0 56px;border-right:1px solid rgba(255,255,255,.08);display:flex;flex-direction:column;padding-top:12px}
.rail-item{height:44px;display:flex;align-items:center;justify-content:center;color:#8a8a8a}
.rail-item .icon{width:21px;height:21px}
.rail-item:hover{color:#ddd}
.rail-item.active{color:#fff}
.sb-sub{flex:1;padding:12px 16px 12px 20px;overflow-y:auto}
.sub-label{height:44px;display:flex;align-items:center;font-size:11px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:#8a8a8a}
.sub-item{min-height:40px;display:flex;align-items:center;font-size:16px;color:#a9a9a9;padding:5px 0;line-height:1.25}
.sub-item:hover{color:#e4e4e4}
.sub-item.active{color:#fff;text-decoration:underline;text-underline-offset:3px}

/* ---------- Main / topbar ---------- */
.main{margin-left:224px;min-height:100vh}
.topbar{position:sticky;top:0;height:64px;background:var(--page);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 32px;z-index:5}
.topbar h1{font-size:20px;font-weight:700;color:var(--ink2)}
.top-right{display:flex;align-items:center;gap:22px}
.bell{position:relative;display:flex;color:#3a3a3a}
.bell .icon{width:22px;height:22px}
.bell .badge{position:absolute;top:-7px;right:-9px;min-width:18px;height:18px;padding:0 5px;background:#e11d48;color:#fff;font-size:11px;font-weight:700;line-height:18px;text-align:center;border-radius:999px}
.btn-school{display:inline-flex;align-items:center;gap:9px;background:#fff;border:1px solid #d4d4d4;border-radius:9px;padding:10px 16px;font-size:14px;font-weight:600;color:var(--ink2);cursor:pointer}
.btn-school .icon{width:18px;height:18px}

.page{padding:34px 40px 60px}

/* ---------- Headings ---------- */
h1.serif{font-family:var(--serif);font-weight:400;font-size:34px;color:#20303f;line-height:1.1}
h2.section{font-family:var(--serif);font-weight:400;font-size:28px;letter-spacing:.2px;color:#1c1c1c}
.sub{margin-top:6px;font-size:15px;color:var(--muted)}
.blockhead{font-size:20px;font-weight:700;color:var(--ink2)}
.blocksub{margin-top:8px;font-size:15px;color:var(--muted);line-height:1.5}

/* ---------- Buttons ---------- */
.btn{background:#fff;border:1px solid #d4d4d4;border-radius:8px;padding:11px 18px;font-family:var(--sans);font-size:15px;font-weight:700;color:#1f2933;cursor:pointer;white-space:nowrap;display:inline-flex;align-items:center;gap:8px}
.btn-sm{padding:8px 14px;font-size:14px}
.btn-lime{background:var(--lime);border:1px solid var(--lime);border-radius:8px;padding:11px 18px;font-family:var(--sans);font-size:15px;font-weight:700;color:#1a1a1a;cursor:pointer;white-space:nowrap}
.btn-dark{background:#222;border:1px solid #222;border-radius:8px;padding:11px 18px;font-size:15px;font-weight:700;color:#fff;cursor:pointer;white-space:nowrap}
.btn-teal{background:var(--teal);border:1px solid var(--teal);border-radius:8px;padding:11px 18px;font-size:15px;font-weight:700;color:#fff;cursor:pointer;white-space:nowrap}

/* ---------- Cards / pills ---------- */
.card{border:1px solid var(--border);border-radius:10px;background:var(--card)}
.pill{display:inline-flex;align-items:center;background:#fff;border:1px solid #dcdcdc;border-radius:8px;font-size:15px;color:var(--ink2);height:44px}
.select{justify-content:space-between;gap:34px;padding:0 14px;cursor:pointer}
.select .icon{width:18px;height:18px;color:#333;stroke-width:2}
.badge{display:inline-block;background:var(--lav);color:#1a1a1a;font-size:13px;padding:5px 12px;border-radius:6px}

/* section block used across settings/site pages */
.block{margin-top:40px;padding-top:40px;border-top:1px solid var(--border)}
.block:first-of-type{border-top:0;padding-top:0;margin-top:32px}

/* toggle */
.toggle-sw{display:inline-block;width:46px;height:26px;border-radius:999px;background:#222;position:relative;flex:0 0 auto;cursor:pointer;vertical-align:middle}
.toggle-sw::after{content:"";position:absolute;top:3px;right:3px;width:20px;height:20px;border-radius:50%;background:#fff}
.toggle-sw.off{background:#c9ced6}
.toggle-sw.off::after{right:auto;left:3px}

/* upload tile */
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:20px}
.tile{border:1px solid var(--border);border-radius:8px;min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:20px;background:#fff}
.tile .acts{display:flex;align-items:center;gap:14px}
.tile .lnk{color:#374151;font-size:14px;cursor:pointer}

/* generic table (reused from users) */
.u-card{margin-top:20px;border:1px solid var(--border);border-radius:10px;background:#fff;overflow:hidden}
table.tbl{width:100%;border-collapse:collapse}
table.tbl thead th{text-align:left;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--slate);padding:14px 16px;border-bottom:1px solid var(--border)}
table.tbl tbody td{padding:15px 16px;border-bottom:1px solid #eef0f2;font-size:14px;color:var(--ink)}
table.tbl tbody tr:last-child td{border-bottom:0}

/* product welcome / empty-state card */
.u-head{display:flex;align-items:center;justify-content:space-between;gap:20px}
.welcome{margin-top:24px;border:1px solid var(--border);border-radius:12px;background:var(--card);padding:56px 30px 64px;text-align:center}
.welcome .ill{width:64px;height:64px;margin:0 auto 24px;border-radius:16px;background:linear-gradient(135deg,#1ca699,#8ce0c9);display:flex;align-items:center;justify-content:center}
.welcome .ill svg{width:34px;height:34px;color:#0d5b52;stroke-width:2}
.welcome h2{font-family:var(--serif);font-weight:400;font-size:28px;color:#20303f;margin-bottom:16px}
.welcome p{font-size:15px;color:#374151;line-height:1.55;max-width:760px;margin:0 auto 6px}
.welcome .learn{font-weight:700;text-decoration:underline;text-underline-offset:3px;color:#20303f}
.welcome .cta{margin-top:26px}

/* empty state */
.empty{border:1px dashed #d7dae0;border-radius:12px;padding:60px 30px;text-align:center;color:var(--muted);margin-top:24px;background:var(--card)}
.empty .ico{width:56px;height:56px;border-radius:50%;background:#eef0f2;display:flex;align-items:center;justify-content:center;margin:0 auto 18px;color:#8a93a0}
.empty .ico .icon{width:26px;height:26px}
.empty h3{font-size:18px;font-weight:700;color:var(--ink2);margin-bottom:8px}
.empty p{font-size:15px;max-width:440px;margin:0 auto}
