/* SPDX-License-Identifier: GPL-3.0-or-later */
/* Manrope loads via <link> in each page head (faster than @import). */

:root {
  --brand: #0F766E;
  --brand-ink: #0B5A54;
  --brand-soft: #E3F2EF;
  --accent: #E8A33D;
  --accent-soft: #FDF1DC;
  --late: #D64545;
  --late-soft: #FBE6E6;
  --done: #2E8B57;
  --done-soft: #E2F3E9;
  --info: #3B6FD8;
  --info-soft: #E5EDFB;
  --ink: #17212B;
  --ink-2: #46525E;
  --muted: #84909C;
  --line: #E6EAEE;
  --surface: #FFFFFF;
  --canvas: #F4F6F5;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(23,33,43,.05);
  --side: 248px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 6px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill.red { background: var(--late-soft); color: #B23434; }
.pill.green { background: var(--done-soft); color: #23714A; }
.pill.amber { background: var(--accent-soft); color: #9A6514; }
.pill.cyan { background: var(--brand-soft); color: var(--brand-ink); }
.pill.violet { background: var(--info-soft); color: #2D58B3; }
.pill.grey { background: var(--canvas); color: var(--ink-2); border: 1px solid var(--line); }
.btn { border: 0; border-radius: 8px; padding: 8px 14px; font-weight: 700; background: var(--brand); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--line); }
.avatar { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; background: var(--brand); flex: none; }

/* Sidebar: main nav + class list */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); background: #12302D; color: #C9D8D5; display: flex; flex-direction: column; padding: 18px 12px; gap: 2px; z-index: 5; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 18px; color: #fff; font-weight: 800; font-size: 16px; }
.brand small { display: block; font-size: 11px; font-weight: 600; color: #8FB0AA; }
.side .nav { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-weight: 600; }
.side .nav svg { width: 18px; height: 18px; flex: none; }
.side .nav:hover { background: rgba(255,255,255,.06); color: #fff; }
.side .nav.on { background: rgba(255,255,255,.12); color: #fff; }
.side .nav .count { margin-left: auto; font-size: 11px; font-weight: 800; background: var(--accent); color: #2A1C05; border-radius: 6px; padding: 0 6px; }
.side h5 { margin: 18px 10px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #7E9C97; }
.side .cls { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; font-weight: 600; font-size: 13px; }
.side .cls i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.side .cls span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .cls:hover { background: rgba(255,255,255,.06); color: #fff; }
.side .cls.on { background: rgba(255,255,255,.12); color: #fff; }
.side .lmslink { color: #A9C2BD; }
.side .lmslink svg:last-child { margin-left: auto; opacity: .6; flex: none; }
.ext { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 5px 10px; white-space: nowrap; }
.btn.ghost.ext { background: #fff; }
.side .signout { margin-top: auto; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; text-align: left; }
.with-side { margin-left: var(--side); }

.topbar { height: 58px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 28px; gap: 16px; position: sticky; top: 0; z-index: 4; }
.topbar .search { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 8px; background: var(--canvas); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; color: var(--muted); }
.topbar .search input { border: 0; background: transparent; outline: none; font: inherit; flex: 1; color: var(--ink); }
.bell { position: relative; color: var(--ink-2); }
.bell b { position: absolute; top: -6px; right: -8px; background: var(--late); color: #fff; font-size: 10px; border-radius: 6px; padding: 1px 5px; }
.menu-btn { display: none; border: 0; background: none; color: var(--ink); }

.section-title { font-size: 16px; font-weight: 800; display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-title a { font-size: 13px; color: var(--brand); font-weight: 700; }

@media (max-width: 860px) {
  .side { transform: translateX(-100%); transition: transform .2s; }
  body.menu-open .side { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .with-side { margin-left: 0; }
  .topbar { padding: 0 16px; }
  .menu-btn { display: block; }
}
