/* ---------- app shell, sidebar, topbar & widgets ---------- */
#app {
  display: grid;
  grid-template-columns: 236px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--dark);
  color: #aebad0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar::-webkit-scrollbar-thumb {
  background: #2a3752;
}

.sb-logo {
  padding: 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.sb-user {
  padding: 14px 16px;
  display: flex;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.sb-user b {
  color: #fff;
  font-size: 13px;
  display: block;
}
.sb-user span {
  font-size: 11px;
  color: #7f96b5;
}

.nav {
  padding: 10px;
  flex: 1;
}
.nav .nav-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #5b6c8c;
  padding: 12px 10px 5px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9.5px 12px;
  border-radius: 9px;
  color: #aebad0;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 2px;
}
.nav a:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff;
}
.nav a.on {
  background: var(--blue);
  color: #fff;
}
.nav a .ic {
  width: 20px;
  text-align: center;
  font-size: 15px;
}
.nav a .badge-n {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 99px;
}
.nav a .new-tag {
  margin-left: auto;
  background: #f59e0b;
  color: #111;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
}

.sb-foot {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.main-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  background: var(--card2);
  border-bottom: 1px solid var(--line);
  padding: 12px 26px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 40;
}

.searchbox {
  flex: 1;
  max-width: 440px;
  position: relative;
}
.searchbox input {
  padding-left: 38px;
  border-radius: 99px;
  background: var(--bg);
  border-color: transparent;
}
.searchbox .si {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mut);
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  position: relative;
  color: var(--ink2);
}
.icon-btn:hover {
  background: #e2e8f0;
}
.icon-btn .dot {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--red);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

#main {
  padding: 26px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* ---------- dashboard widgets & cards ---------- */
.stat-card {
  display: flex;
  gap: 14px;
  align-items: center;
}
.stat-ic {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  flex-shrink: 0;
}
.stat-card b {
  font-size: 21px;
  display: block;
  letter-spacing: -.5px;
}
.stat-card .lbl {
  font-size: 12px;
  color: var(--mut);
}

.ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.hero-course {
  background: linear-gradient(115deg, #0b1220, #1e3a8a);
  border-radius: var(--rad);
  color: #fff;
  padding: 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  box-shadow: var(--sh);
}
.hero-course .hc-art {
  width: 150px;
  height: 110px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1d4ed8, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
}

.grad {
  color: #fff;
  border-radius: var(--rad);
  padding: 18px;
  text-align: center;
  box-shadow: var(--sh);
}
.grad b {
  font-size: 26px;
  display: block;
  letter-spacing: -.5px;
}
.grad span {
  font-size: 12px;
  opacity: .92;
  font-weight: 600;
}
.grad.green { background: linear-gradient(135deg, #22c55e, #15803d); }
.grad.red { background: linear-gradient(135deg, #f87171, #dc2626); }
.grad.blue { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.grad.purple { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
