:root {
  --sidebar-width: 280px;
  --header-height: 56px;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #f8f9fa; color: #1a1a2e; }

.docs-wrapper { display: flex; min-height: 100vh; }

/* Sidebar */
.docs-sidebar {
  width: var(--sidebar-width);
  background: #1e1b4b;
  color: #e2e8f0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform .3s;
}
.sidebar-header { padding: 20px 16px 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-search { padding: 12px 16px; }
.sidebar-nav { list-style: none; padding: 8px 0; margin: 0; flex: 1; }
.sidebar-nav li a {
  display: flex;
  align-items: center;
  padding: 8px 20px;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: .875rem;
  transition: all .15s;
  border-left: 3px solid transparent;
}
.sidebar-nav li a:hover { color: white; background: rgba(255,255,255,.06); }
.sidebar-nav li a.active { color: #a78bfa; border-left-color: #a78bfa; background: rgba(167,139,250,.1); }
.sidebar-nav .nav-section {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  padding: 16px 20px 6px;
}

/* Main content */
.docs-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.docs-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.docs-body {
  max-width: 860px;
  padding: 48px 32px;
}

/* Typography */
.docs-body h1 { font-size: 2rem; font-weight: 800; margin-bottom: .5rem; color: #1e1b4b; }
.docs-body h2 { font-size: 1.35rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: .75rem; color: #312e81; border-bottom: 2px solid #e5e7eb; padding-bottom: .5rem; }
.docs-body h3 { font-size: 1.1rem; font-weight: 600; margin-top: 1.5rem; color: #4338ca; }
.docs-body p  { line-height: 1.7; color: #374151; }
.docs-body code { background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 4px; padding: 2px 6px; font-size: .875em; color: #6d28d9; }
.docs-body pre { background: #1e1b4b; border-radius: 8px; overflow: auto; margin: 1rem 0; }
.docs-body pre code { background: transparent; border: none; color: inherit; padding: 1rem; font-size: .85rem; display: block; }
.docs-body a { color: #4f46e5; }
.docs-body a:hover { color: #4338ca; }

/* Alerts */
.docs-body .alert { border-radius: 8px; border-left: 4px solid; }
.docs-body .alert-info    { border-left-color: #3b82f6; background: #eff6ff; color: #1e40af; }
.docs-body .alert-warning { border-left-color: #f59e0b; background: #fffbeb; color: #92400e; }
.docs-body .alert-danger  { border-left-color: #ef4444; background: #fef2f2; color: #991b1b; }

/* Steps */
.steps { display: flex; flex-direction: column; gap: 12px; margin: 1rem 0; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  width: 32px; height: 32px;
  background: #4f46e5;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: .875rem;
}
.step-body { padding-top: 6px; line-height: 1.6; }

/* Doc cards */
.doc-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  height: 100%;
}
.doc-card-icon { font-size: 1.75rem; color: #4f46e5; display: block; margin-bottom: 8px; }

/* Tables */
.docs-body .table { font-size: .875rem; }
.docs-body .table-dark th { background: #1e1b4b; }

/* Mobile */
@media (max-width: 991px) {
  .docs-sidebar { transform: translateX(-100%); }
  .docs-sidebar.show { transform: translateX(0); }
  .docs-content { margin-left: 0; }
  .docs-body { padding: 24px 16px; }
}
