@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");
:root {
  --bg: #0b1020;
  --panel: #141b2d;
  --panel2: #1a2438;
  --line: #28344b;
  --primary: #7164f2;
  --text: #f3f5fa;
  --muted: #9ba8bd;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
}
.landing {
  background:
    radial-gradient(circle at 75% 10%, #202a50 0, transparent 34%), var(--bg);
  min-height: 100vh;
}
.brand-dot {
  color: #8c7cff;
}
.navbar-brand {
  font-size: 1.35rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
}
.gradient-text {
  background: linear-gradient(90deg, #8b7bff, #56d4e9);
  -webkit-background-clip: text;
  color: transparent;
}
.btn-primary {
  background: #7164f2;
  border-color: #7164f2;
}
.btn-primary:hover {
  background: #5d50d8;
  border-color: #5d50d8;
}
.code-window {
  background: #111827;
  border: 1px solid #303b53;
  border-radius: 18px;
  overflow: hidden;
}
.window-top {
  padding: 15px;
  border-bottom: 1px solid #263147;
  display: flex;
  align-items: center;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 7px;
}
.red {
  background: #ff6b6b;
}
.yellow {
  background: #ffc857;
}
.green {
  background: #48c78e;
}
.code-window pre {
  padding: 24px;
  margin: 0;
  color: #d5dbea;
  font-size: 0.92rem;
  overflow: auto;
}
.purple {
  color: #c792ea;
}
.blue {
  color: #82aaff;
}
.orange {
  color: #f6ad55;
}
.code-footer {
  padding: 12px 18px;
  border-top: 1px solid #263147;
  color: #a6b0c2;
  font-size: 0.8rem;
}
.feature-card {
  background: #141b2d;
  border: 1px solid #28344b;
  border-radius: 16px;
  padding: 24px;
  height: 100%;
  transition: 0.2s;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: #7164f2;
}
.feature-card i {
  font-size: 1.6rem;
  color: #8b7bff;
}
.feature-card h5 {
  margin-top: 14px;
}
.feature-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0;
}
.login-box {
  background: #141b2d;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.form-control,
.form-select {
  background: #0d1424;
  color: #fff;
  border-color: #34415a;
}
.form-control:focus,
.form-select:focus {
  background: #0d1424;
  color: #fff;
  border-color: #7164f2;
  box-shadow: 0 0 0 0.2rem #7164f233;
}
.form-select option {
  background: #0d1424;
}
.app-shell {
  min-height: 100vh;
  display: flex;
  background: #0b1020;
}
.app-shell.d-none {
  display: none !important;
}
.sidebar {
  width: 245px;
  flex-shrink: 0;
  background: #101729;
  border-right: 1px solid #273249;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 1.3rem;
  font-weight: 800;
}
.nav-link-app {
  color: #aab5c8;
  text-decoration: none;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 13px;
  border-radius: 10px;
  margin-bottom: 5px;
  cursor: pointer;
}
.nav-link-app:hover,
.nav-link-app.active {
  background: #252d47;
  color: #fff;
}
.nav-link-app.active {
  border-left: 3px solid #8b7bff;
}
.app-main {
  min-width: 0;
  flex: 1;
}
.topbar {
  padding: 18px 26px;
  border-bottom: 1px solid #273249;
  background: #101729;
  position: sticky;
  top: 0;
  z-index: 2;
}
.user-chip {
  border: 1px solid #34415a;
  border-radius: 20px;
  padding: 7px 12px;
  font-size: 0.85rem;
  color: #cbd5e1;
}
.page-card,
.stat-card {
  background: #141b2d;
  border: 1px solid #28344b;
  border-radius: 15px;
  padding: 20px;
}
.stat-card h3 {
  font-size: 1.8rem;
  margin: 8px 0;
}
.stat-card .text-secondary,
.page-card p {
  color: #a0adc2 !important;
}
.stat-icon {
  font-size: 1.4rem;
  color: #8b7bff;
}
.table-dark {
  --bs-table-bg: #141b2d;
  --bs-table-border-color: #28344b;
}
.empty-note {
  color: #9ba8bd;
  padding: 20px;
  text-align: center;
}
.tutorial-item,
.project-item,
.forum-item {
  background: #182237;
  border: 1px solid #2b3850;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}
.progress {
  background: #273249;
}
.progress-bar {
  background: #7164f2;
}
.badge-soft {
  background: #252e49;
  color: #b9b5ff;
}
.muted {
  color: var(--muted);
}
.cert-paper {
  background: #fff;
  color: #172033;
  padding: 40px;
  text-align: center;
  border: 8px double #7164f2;
  border-radius: 10px;
}
.cert-paper h2 {
  color: #7164f2;
}
.small-action {
  font-size: 0.85rem;
}
@media (max-width: 800px) {
  .sidebar {
    width: 190px;
    padding: 16px;
  }
  .topbar {
    padding: 14px;
  }
  .hero {
    padding-top: 30px !important;
  }
}
@media (max-width: 600px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px;
  }
  .sidebar .brand {
    margin-bottom: 10px !important;
  }
  .sidebar #sidebarNav {
    display: flex;
    overflow: auto;
    gap: 4px;
  }
  .nav-link-app {
    white-space: nowrap;
    margin: 0;
    padding: 9px;
  }
  .sidebar .btn {
    margin-top: 10px !important;
  }
  .hero h1 {
    letter-spacing: -1px;
  }
  .code-window pre {
    font-size: 0.78rem;
  }
}
/* Penyesuaian tampilan administrasi agar mendekati mockup PBL; tidak mengubah materi atau data inti */
.admin-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.admin-heading h4 {
  font-weight: 700;
  margin-bottom: 5px;
}
.admin-table {
  margin-bottom: 0;
  min-width: 680px;
}
.admin-table th {
  color: #aebbd0;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  border-bottom-color: #33415b;
}
.admin-table td {
  border-color: #28344b;
}
.admin-actions {
  white-space: nowrap;
}
.admin-actions .btn {
  margin-right: 5px;
}
.progress-summary {
  background: #182237;
  border: 1px solid #2b3850;
  border-radius: 12px;
  padding: 16px;
}
.progress-label {
  min-width: 90px;
  max-width: 150px;
}
.admin-heading .badge {
  padding: 9px 12px;
}
@media (max-width: 600px) {
  .admin-actions {
    white-space: normal;
  }
  .admin-actions .btn {
    margin-bottom: 4px;
  }
  .admin-table {
    min-width: 620px;
  }
}
.week-chart {
  height: 210px;
  display: flex;
  align-items: flex-end;
  gap: clamp(12px, 4vw, 32px);
  padding: 16px 12px 28px;
  border-bottom: 1px solid #33415b;
}
.week-bar {
  flex: 1;
  max-width: 90px;
  min-height: 18px;
  background: linear-gradient(180deg, #8b7bff, #7164f2);
  border-radius: 9px 9px 3px 3px;
  position: relative;
}
.week-bar span {
  position: absolute;
  bottom: -26px;
  left: 0;
  right: 0;
  text-align: center;
  color: #aebbd0;
  font-size: 0.8rem;
}
