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.1em;
  color: var(--accent);
  padding: 0 16px 10px;
  text-transform: uppercase;
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 8px;
}

.sb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  color: #fff;
  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 {
  color: var(--accent);
  font-size: 0.82rem;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

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

.docs-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.88rem;
  opacity: 0.6;
}

.dc-wrap {
  width: 100%;
  padding: 40px 44px 48px;
  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;
}

.dc-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 860px) {
  .dc-grid { grid-template-columns: 1fr; }
}

.dc-media-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  position: relative;
  cursor: pointer;
}

.dc-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.dc-media-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.dc-media-wrap:hover .dc-media { transform: scale(1.03); }
.dc-media-wrap:hover .dc-media-overlay { opacity: 1; }

.dc-info {
  background: rgba(8,86,255,0.04);
  border: 1px solid rgba(8,86,255,0.18);
  border-radius: 12px;
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dc-info-label {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(8,86,255,0.2);
}

.dc-info p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.85;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(6px);
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.18);
}

.lightbox-inner {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}

.lb-media {
  display: block;
  max-width: 90vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

@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; }
}