html { user-select: none;}

.nav-active {
  color: var(--text) !important;
  border-radius: 8px;
}

.docs-wrapper {
  display: flex;
  min-height: calc(100vh - 64px);
  margin-top: 64px;
  background: var(--bg-2);
  padding: 24px 24px 24px 20px;
  gap: 20px;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.docs-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 0 14px;
  position: sticky;
  top: 84px;
  overflow-y: auto;
  max-height: calc(100vh - 108px);
}

.sidebar-label {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding: 0 16px 12px;
  text-transform: uppercase;
}

.sb-category {
  margin: 2px 8px;
}

.sb-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  transition: background 0.15s;
  user-select: none;
}

.sb-cat-header:hover {
  background: rgba(255,255,255,0.05);
}

.sb-cat-header > i {
  font-size: 0.82rem;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
  color: var(--accent);
}

.sb-cat-header > span {
  flex: 1;
}

.sb-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.sb-category.open .sb-chevron {
  transform: rotate(180deg);
}

.sb-cat-items {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 2px 0 6px 14px;
}

.sb-category.open .sb-cat-items {
  display: flex;
}

/* Subcategory */
.sb-subcategory {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sb-subcategory.visible {
  opacity: 1;
  transform: translateX(0);
}

.sb-subcat-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
  user-select: none;
}

.sb-subcat-header:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.sb-subcat-header > i {
  font-size: 0.76rem;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.75;
}

.sb-subcat-header > span {
  flex: 1;
}

.sb-subcat-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  opacity: 0.6;
  transition: transform 0.25s ease;
}

.sb-subcategory.open .sb-subcat-chevron {
  transform: rotate(180deg);
}

.sb-subcat-items {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 2px 0 4px 14px;
}

.sb-subcategory.open .sb-subcat-items {
  display: flex;
}

.sb-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.84rem;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.15s, color 0.15s;
  user-select: none;
}

.sb-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.sb-item:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text);
}

.sb-item.active {
  background: rgba(8,86,255,0.12);
  color: var(--accent);
  font-weight: 600;
}

.sb-item i {
  font-size: 0.78rem;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
  color: var(--accent);
}

.docs-main {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  min-height: calc(100vh - 112px);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.docs-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.88rem;
  opacity: 0.6;
  width: 100%;
  padding: 370px 24px;
  text-align: center;
}

.dc-wrap {
  width: 100%;
  padding: 40px 44px 52px;
  animation: fadeInUp 0.3s ease both;
}

.dc-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.dc-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  line-height: 1.1;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}

.dc-title i {
  color: var(--accent);
  font-size: 1.35rem;
}

.pr-body {
  background: rgba(8,86,255,0.04);
  border: 1px solid rgba(8,86,255,0.18);
  border-radius: 12px;
  padding: 28px 30px 32px;
  margin-bottom: 20px;
}

.pr-body p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.9;
  margin-bottom: 18px;
}

.pr-body p:last-child {
  margin-bottom: 0;
}

.pr-examples {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 26px 28px;
}

.pr-examples-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(8,86,255,0.2);
}

.pr-examples-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pr-examples-list li {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  padding-left: 20px;
  position: relative;
}

.pr-examples-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.65;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .docs-wrapper { flex-direction: column; padding: 12px; gap: 12px; }
  .docs-sidebar { width: 100%; position: static; max-height: none; }
  .docs-main { min-height: 60vh; }
  .dc-wrap { padding: 24px 20px 36px; }
  .pr-body { padding: 20px 18px 24px; }
}
