﻿:root {
  --nx-navy: #0d2342;
  --nx-navy-2: #132f56;
  --nx-blue: #246bfd;
  --nx-teal: #11b7a3;
  --nx-teal-dark: #0a8f81;
  --nx-mint: #eafbf8;
  --nx-sky: #eef5ff;
  --nx-orange: #ff9f43;
  --nx-purple: #7758f6;
  --nx-danger: #e95b66;
  --nx-text: #182230;
  --nx-muted: #6b778a;
  --nx-border: #e6eaf0;
  --nx-bg: #f5f7fb;
  --sidebar-width: 268px;
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  background: var(--nx-bg);
  color: var(--nx-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif
}

a {
  text-decoration: none
}

.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1030;
  background: radial-gradient(circle at 10% 10%, rgba(17, 183, 163, .22), transparent 26%), linear-gradient(180deg, var(--nx-navy), #08182f 100%);
  color: #dfe9f6;
  padding: 22px 16px;
  overflow-y: auto;
  transition: .25s ease
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 22px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .09)
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--nx-teal), #33d4c1);
  color: #fff;
  font-size: 22px;
  font-weight: 900
}

.brand-name {
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.05
}

.brand-sub {
  color: #8fb1cf;
  font-size: 11px;
  margin-top: 4px;
  letter-spacing: .12em;
  text-transform: uppercase
}

.sidebar-close {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
  color: white;
  place-items: center;
  margin-left: auto;
  flex: 0 0 36px
}

.side-label {
  padding: 18px 12px 8px;
  color: #6f91b2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase
}

.side-link {
  color: #c8d8e8;
  padding: 11px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
  font-weight: 600;
  font-size: 14px
}

.side-link i {
  width: 21px;
  font-size: 17px;
  text-align: center;
  color: #8db2d4
}

.side-link:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff
}

.side-link.active {
  background: linear-gradient(90deg, rgba(17, 183, 163, .22), rgba(17, 183, 163, .07));
  color: #fff;
  box-shadow: inset 3px 0 0 var(--nx-teal)
}

.side-link.active i {
  color: #44d9c6
}

.side-link-toggle {
  cursor: pointer
}

.submenu-chevron {
  width: auto !important;
  font-size: 12px !important;
  transition: transform .18s ease
}

.side-link-toggle.open .submenu-chevron {
  transform: rotate(180deg)
}

.side-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .22s ease;
  padding-left: 44px
}

.side-submenu.open {
  max-height: 330px
}

.side-sublink {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #9fb5ca;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 8px 8px 0;
  border-radius: 8px
}

.side-sublink:hover {
  color: white
}

.submenu-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3ccfbd;
  flex: 0 0 5px
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 17, 34, .48);
  z-index: 1025;
  opacity: 0;
  visibility: hidden;
  transition: .2s ease
}

.sidebar-overlay.show {
  opacity: 1;
  visibility: visible
}

.main {
  margin-left: var(--sidebar-width);
  min-height: 100vh
}

.topbar {
  min-height: 76px;
  position: sticky;
  top: 0;
  z-index: 1020;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nx-border);
  display: flex;
  align-items: center;
  padding: 0 28px
}

.topbar-title {
  font-weight: 800;
  color: var(--nx-navy);
  font-size: 18px;
  margin: 0
}

.icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--nx-border);
  border-radius: 12px;
  background: white;
  display: grid;
  place-items: center;
  color: var(--nx-navy)
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--nx-sky);
  color: var(--nx-blue);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-left: 10px
}

.content {
  padding: 28px;
  max-width: 1500px;
  margin: auto
}

.hero {
  background: radial-gradient(circle at 90% 10%, rgba(17, 183, 163, .17), transparent 28%), linear-gradient(120deg, var(--nx-navy), var(--nx-navy-2));
  border-radius: 24px;
  padding: 30px;
  color: white
}

.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 850;
  letter-spacing: -.03em;
  margin: 6px 0 10px
}

.hero p {
  color: #b8cadd;
  max-width: 760px;
  margin: 0;
  line-height: 1.6
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(17, 183, 163, .14);
  border: 1px solid rgba(74, 229, 210, .24);
  color: #72eadc;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em
}

.nx-card {
  background: #fff;
  border: 1px solid var(--nx-border);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(20, 38, 64, .035)
}

.nx-card-header {
  padding: 20px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px
}

.nx-card-body {
  padding: 20px
}

.section-title {
  font-size: 17px;
  font-weight: 850;
  color: var(--nx-navy);
  margin: 0
}

.section-sub {
  margin: 4px 0 0;
  color: var(--nx-muted);
  font-size: 12px
}

.btn-nx {
  border: 0;
  background: var(--nx-teal);
  color: white;
  font-weight: 800;
  padding: 11px 17px;
  border-radius: 12px
}

.btn-nx:hover {
  background: var(--nx-teal-dark);
  color: white
}

.stat-card {
  padding: 20px;
  height: 100%;
  display: flex;
  align-items: flex-start;
  gap: 14px
}

.stat-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--nx-mint);
  color: var(--nx-teal-dark);
  font-size: 19px
}

.stat-value {
  font-size: 25px;
  font-weight: 850;
  line-height: 1;
  color: var(--nx-navy)
}

.stat-label {
  font-size: 12px;
  color: var(--nx-muted);
  margin-top: 7px
}

.form-control,
.form-select {
  border-color: var(--nx-border);
  border-radius: 11px;
  min-height: 44px;
  font-size: 13px
}

.form-control:focus,
.form-select:focus {
  border-color: #8bded2;
  box-shadow: 0 0 0 .2rem rgba(17, 183, 163, .08)
}

.table>:not(caption)>*>* {
  padding: 14px 14px;
  border-color: #edf0f4
}

.table th {
  color: #7c8898;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 850
}

.table td {
  font-size: 12px;
  vertical-align: middle;
  color: #405064
}

.progress {
  height: 8px;
  background: #edf1f5
}

.progress-bar {
  background: linear-gradient(90deg, var(--nx-teal), #42d4c2)
}

.mobile-toggle {
  display: none
}

@media(max-width:991.98px) {
  .sidebar {
    transform: translateX(-100%)
  }

  .sidebar.show {
    transform: translateX(0)
  }

  .sidebar-close {
    display: grid
  }

  .main {
    margin-left: 0
  }

  .mobile-toggle {
    display: grid
  }

  .topbar {
    padding: 0 18px
  }

  .content {
    padding: 20px
  }
}

@media(max-width:575.98px) {
  .content {
    padding: 14px
  }

  .hero {
    padding: 24px 20px
  }
}


.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px
}

.topic-card {
  background: #fff;
  border: 1px solid var(--nx-border);
  border-radius: 18px;
  padding: 20px;
  transition: .18s ease;
  height: 100%
}

.topic-card:hover {
  transform: translateY(-2px);
  border-color: #a5ded7;
  box-shadow: 0 12px 28px rgba(15, 58, 80, .06)
}

.topic-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--nx-mint);
  color: var(--nx-teal-dark);
  display: grid;
  place-items: center;
  font-size: 20px
}

.topic-card h3 {
  font-size: 16px;
  font-weight: 850;
  color: var(--nx-navy);
  margin: 14px 0 5px
}

.topic-card p {
  font-size: 12px;
  color: var(--nx-muted);
  min-height: 38px
}

.topic-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #748195;
  margin: 12px 0 14px
}

@media(max-width:1199.98px) {
  .topic-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:575.98px) {
  .topic-grid {
    grid-template-columns: 1fr
  }
}
