:root {
  --bg: #f6f8ff;
  --surface: rgba(255, 255, 255, 0.92);
  --ink: #172033;
  --muted: #65728a;
  --line: #dfe6f3;
  --nav: #111827;
  --primary: #00a884;
  --primary-strong: #02836a;
  --cyan: #09a7f3;
  --blue: #2563eb;
  --violet: #7c3aed;
  --orange: #f97316;
  --rose: #e11d48;
  --shadow: 0 22px 60px rgba(25, 35, 60, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(0, 168, 132, 0.18), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(124, 58, 237, 0.16), transparent 30%),
    linear-gradient(135deg, #f7fbff 0%, #f1f4ff 50%, #fff8f0 100%);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 74px;
  background: linear-gradient(180deg, #111827, #14213d 55%, #0f172a);
  color: #eef4f7;
  display: flex;
  flex-direction: column;
  padding: 20px 12px;
  z-index: 20;
  overflow: hidden;
  transition: width 240ms ease, box-shadow 240ms ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
.sidebar:hover, .sidebar:focus-within {
  width: 296px;
  box-shadow: 18px 0 50px rgba(15, 23, 42, 0.28);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 24px; min-width: 250px; }
.brand-mark {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #34d399, #22d3ee 50%, #a78bfa);
  color: #07111f;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.38);
}
.brand strong, .brand span { display: block; }
.brand span { color: #a9b8c7; font-size: 13px; }
.brand-text, .nav-label, .sidebar-note {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.sidebar:hover .brand-text,
.sidebar:hover .nav-label,
.sidebar:hover .sidebar-note,
.sidebar:focus-within .brand-text,
.sidebar:focus-within .nav-label,
.sidebar:focus-within .sidebar-note {
  opacity: 1;
  transform: translateX(0);
}
nav { display: grid; gap: 6px; }
nav a {
  min-width: 250px;
  border-radius: 10px;
  color: #c9d5df;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.nav-icon {
  flex: 0 0 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  font-size: 11px;
  font-weight: 900;
}
nav a.active, nav a:hover {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.24), rgba(167, 139, 250, 0.18));
  color: #ffffff;
  transform: translateX(2px);
}
.sidebar-note {
  margin-top: auto;
  min-width: 248px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
}
.sidebar-note span, .sidebar-note small { display: block; color: #a9b8c7; font-size: 12px; }
.sidebar-note strong { display: block; margin: 8px 0; line-height: 1.35; }

main { margin-left: 74px; min-height: 100vh; transition: margin-left 240ms ease; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 72px;
  background: rgba(246, 248, 255, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(223, 230, 243, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 32px;
}
.search { width: min(620px, 100%); position: relative; }
.search span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 12px 14px;
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(25, 35, 60, 0.06);
}
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.icon-button, .profile, .lesson-row button {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 10px;
  cursor: pointer;
}
.icon-button { width: 42px; height: 42px; color: #e11d48; font-weight: 900; }
.profile { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; }
.profile span {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #22d3ee, #a78bfa);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: 450px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  margin-bottom: 26px;
}
.hero img, .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero img { object-fit: cover; transform: scale(1.04); animation: heroZoom 18s ease-in-out infinite alternate; }
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(10, 16, 32, 0.92), rgba(12, 24, 48, 0.58), rgba(10, 16, 32, 0.12)),
    linear-gradient(135deg, rgba(0, 168, 132, 0.38), rgba(124, 58, 237, 0.22));
}
.hero-content { position: relative; width: min(790px, calc(100% - 48px)); padding: 56px 32px; color: #ffffff; z-index: 2; }
.eyebrow { margin: 0 0 8px; color: var(--primary); font-size: 12px; font-weight: 900; letter-spacing: 0; text-transform: uppercase; }
.hero .eyebrow { color: #8ff7df; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.02; letter-spacing: 0; margin-bottom: 18px; }
h2 { font-size: 24px; line-height: 1.2; margin-bottom: 0; }
h3 { font-size: 16px; margin-bottom: 12px; }
.hero p:not(.eyebrow) { color: #e7f3ff; font-size: 18px; line-height: 1.55; max-width: 650px; }
.hero-actions, .section-heading, .exam-meta { display: flex; align-items: center; gap: 12px; }
.button {
  min-height: 42px;
  border-radius: 10px;
  padding: 11px 16px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.primary { background: linear-gradient(135deg, var(--primary), var(--cyan)); color: #ffffff; box-shadow: 0 16px 30px rgba(0, 168, 132, 0.28); }
.secondary { background: #ffffff; color: var(--ink); border-color: var(--line); }
.wide { width: 100%; }

.floating-shapes span { position: absolute; z-index: 1; border-radius: 999px; opacity: 0.88; }
.shape-one { width: 76px; height: 76px; right: 18%; top: 72px; background: #22d3ee; animation: floatOne 8s ease-in-out infinite; }
.shape-two { width: 42px; height: 42px; right: 34%; top: 160px; background: #f97316; animation: floatTwo 7s ease-in-out infinite; }
.shape-three { width: 96px; height: 96px; right: 8%; bottom: 72px; background: #a78bfa; animation: floatOne 10s ease-in-out infinite reverse; }
.shape-four { width: 26px; height: 26px; right: 46%; bottom: 86px; background: #34d399; animation: floatTwo 6s ease-in-out infinite reverse; }

.metrics, .content-grid, .two-column, .report-grid, .capability, .library, .people { padding: 0 32px 30px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.metric-card, .level-card, .exam-panel, .report-card, .chart-panel, .library, .people {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.metric-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  color: #ffffff;
  animation: cardIn 700ms ease both;
}
.metric-card::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -42px;
  top: -42px;
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(24deg);
  animation: spinSoft 14s linear infinite;
}
.metric-teal { background: linear-gradient(135deg, #00a884, #0ea5e9); }
.metric-blue { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.metric-violet { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.metric-orange { background: linear-gradient(135deg, #f97316, #f43f5e); }
.metrics span, .level-card span, .people span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.metric-card span, .metric-card small { color: rgba(255, 255, 255, 0.84); }
.metrics strong { display: block; font-size: 34px; line-height: 1; position: relative; z-index: 1; }
.metrics small, .people small { color: var(--muted); position: relative; z-index: 1; }
.section-heading { justify-content: space-between; margin: 8px 0 18px; }
.compact { margin-top: 0; }

.segmented { display: flex; background: #e8edf8; padding: 4px; border-radius: 10px; }
.segmented button { border: 0; padding: 8px 12px; border-radius: 8px; background: transparent; cursor: pointer; }
.segmented .selected { background: #ffffff; box-shadow: 0 1px 2px rgba(20, 32, 43, 0.08); }
.level-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.level-card { padding: 18px; border-top: 5px solid var(--primary); transition: transform 200ms ease, box-shadow 200ms ease; }
.level-card:hover, .lesson-row:hover, .people-grid article:hover { transform: translateY(-4px); box-shadow: 0 26px 64px rgba(25, 35, 60, 0.18); }
.level-card strong { display: block; font-size: 18px; margin-bottom: 12px; }
.level-card p { color: var(--muted); line-height: 1.5; min-height: 72px; }
meter { width: 100%; height: 10px; }
.accent-green { border-top-color: #10b981; }
.accent-blue { border-top-color: #0ea5e9; }
.accent-amber { border-top-color: #f59e0b; }
.accent-red { border-top-color: #f43f5e; }
.accent-indigo { border-top-color: #8b5cf6; }
.accent-slate { border-top-color: #475569; }

.two-column { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(360px, 0.8fr); gap: 18px; }
.lesson-list { display: grid; gap: 12px; }
.lesson-row { display: grid; grid-template-columns: 94px 1fr auto; align-items: center; gap: 14px; padding: 14px; background: #ffffff; border: 1px solid var(--line); border-radius: 12px; transition: transform 200ms ease, box-shadow 200ms ease; }
.lesson-row p { color: var(--muted); margin: 4px 0 0; line-height: 1.45; }
.lesson-row button { padding: 9px 13px; }
.status, .pill { display: inline-flex; justify-content: center; align-items: center; min-height: 28px; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 900; }
.done, .green { background: #dcfce7; color: #166534; }
.active, .blue { background: #dbeafe; color: #1d4ed8; }
.pending, .amber { background: #fef3c7; color: #92400e; }
.exam-panel { padding: 22px; }
.exam-meta { flex-wrap: wrap; margin: 18px 0; }
.exam-meta span { background: #eef3f7; border-radius: 999px; padding: 7px 10px; color: #405163; font-size: 13px; }
.question-preview { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 16px; background: #fafbfc; }
.question-preview label { display: block; margin-top: 12px; line-height: 1.4; }

.report-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.report-card { padding: 22px; overflow: hidden; position: relative; }
.report-card::before { content: ""; position: absolute; inset: auto -20px -56px auto; width: 150px; height: 150px; border-radius: 32px; background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(249, 115, 22, 0.2)); transform: rotate(18deg); }
.report-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.report-list div, .intern-mini span { border-radius: 12px; background: #f7f9fe; padding: 12px; }
.report-list strong { display: block; font-size: 28px; color: var(--violet); }
.report-list span, .intern-mini span { color: var(--muted); font-size: 13px; }
.progress-stack { display: grid; gap: 12px; margin-top: 18px; }
.progress-stack span { position: relative; display: flex; justify-content: space-between; color: #ffffff; border-radius: 999px; padding: 10px 12px; overflow: hidden; background: #d9e2f1; }
.progress-stack span::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: linear-gradient(90deg, #00a884, #0ea5e9); z-index: 0; }
.progress-stack span { z-index: 1; }
.progress-stack span * { position: relative; z-index: 1; }
.intern-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.intern-mini strong { display: block; color: var(--orange); font-size: 28px; }

.chart-grid { display: grid; grid-template-columns: minmax(260px, 0.8fr) repeat(2, minmax(280px, 1fr)); gap: 16px; }
.chart-panel { padding: 20px; min-height: 330px; }
canvas { width: 100%; max-width: 100%; height: auto; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; color: var(--muted); font-size: 13px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 999px; margin-right: 5px; }
.c1 { background: #00a884; } .c2 { background: #2563eb; } .c3 { background: #f97316; } .c4 { background: #7c3aed; }

.library, .people { margin: 0 32px 30px; padding: 22px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 14px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0; }
tr:last-child td { border-bottom: 0; }
.people-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.people-grid article { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fafbfc; transition: transform 200ms ease, box-shadow 200ms ease; }
.people strong, .people span, .people small { display: block; }

@keyframes heroZoom { from { transform: scale(1.02); } to { transform: scale(1.09); } }
@keyframes floatOne { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0); } 50% { transform: translate3d(-24px, 20px, 0) rotate(12deg); } }
@keyframes floatTwo { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0); } 50% { transform: translate3d(22px, -18px, 0) rotate(-18deg); } }
@keyframes spinSoft { to { transform: rotate(384deg); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1180px) {
  .metrics, .level-grid, .report-grid, .people-grid, .chart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-column { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .sidebar { position: static; width: 100%; min-height: auto; }
  .sidebar:hover, .sidebar:focus-within { width: 100%; }
  .brand-text, .nav-label { opacity: 1; transform: none; }
  .sidebar-note { display: none; }
  nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  nav a { min-width: 0; }
  main { margin-left: 0; }
  .topbar { height: auto; align-items: stretch; flex-direction: column; padding: 14px 18px; }
  .hero { min-height: 520px; }
  .hero-content { width: 100%; padding: 38px 20px; }
  .hero-actions, .section-heading { align-items: stretch; flex-direction: column; display: flex; }
  .lesson-row { grid-template-columns: 1fr; align-items: stretch; }
  nav, .metrics, .level-grid, .report-grid, .intern-mini, .people-grid, .chart-grid { grid-template-columns: 1fr; }
  .metrics, .content-grid, .two-column, .report-grid, .capability, .library, .people { padding-left: 18px; padding-right: 18px; }
  .library, .people { margin-left: 18px; margin-right: 18px; }
}
