
:root {
  --bg: #0d1117;
  --bg-card: #161b22;
  --bg-code: #1c2128;
  --text: #c9d1d9;
  --text-bright: #f0f6fc;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --accent2: #8b5cf6;
  --border: #30363d;
  --sidebar-w: 280px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.docs-layout { display: flex; min-height: 100vh; }
.docs-sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w);
  background: var(--bg-card); border-right: 1px solid var(--border);
  overflow-y: auto; padding: 1.5rem 0; z-index: 10;
}
.sidebar-home { display: block; padding: 0.5rem 1.5rem; color: var(--text-muted); font-size: 0.9rem; }
.sidebar-home:hover { color: var(--accent); }
.sidebar-section { margin-bottom: 1rem; }
.sidebar-title { padding: 0.5rem 1.5rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.sidebar-list { list-style: none; }
.sidebar-list li a {
  display: block; padding: 0.35rem 1.5rem 0.35rem 2rem; color: var(--text-muted);
  font-size: 0.9rem; border-left: 2px solid transparent; transition: all 0.15s;
}
.sidebar-list li a:hover { color: var(--text-bright); background: rgba(88,166,255,0.05); text-decoration: none; }
.sidebar-list li.active a { color: var(--accent); border-left-color: var(--accent); background: rgba(88,166,255,0.08); }
.docs-content {
  margin-left: var(--sidebar-w); flex: 1; max-width: 900px;
  padding: 2rem 3rem; min-width: 0;
}
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.docs-content h1 { font-size: 2rem; color: var(--text-bright); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.docs-content h2 { font-size: 1.5rem; color: var(--text-bright); margin: 2rem 0 1rem; }
.docs-content h3 { font-size: 1.2rem; color: var(--text-bright); margin: 1.5rem 0 0.75rem; }
.docs-content p { margin-bottom: 1rem; }
.docs-content ul, .docs-content ol { margin: 0.5rem 0 1rem 1.5rem; }
.docs-content li { margin-bottom: 0.3rem; }
.docs-content code {
  background: var(--bg-code); padding: 0.15em 0.4em; border-radius: 4px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.9em; color: #e6edf3;
}
.docs-content pre {
  background: var(--bg-code); border: 1px solid var(--border); border-radius: 8px;
  padding: 1rem; overflow-x: auto; margin: 1rem 0;
}
.docs-content pre code { background: none; padding: 0; }
.docs-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.docs-content th, .docs-content td { padding: 0.5rem 0.75rem; border: 1px solid var(--border); text-align: left; }
.docs-content th { background: var(--bg-card); color: var(--text-bright); }
.docs-content blockquote {
  border-left: 3px solid var(--accent); padding: 0.5rem 1rem; margin: 1rem 0;
  background: rgba(88,166,255,0.05); color: var(--text-muted);
}
.admonition {
  border: 1px solid var(--border); border-radius: 8px; padding: 1rem; margin: 1rem 0;
  background: var(--bg-card);
}
.admonition-title { font-weight: 600; margin-bottom: 0.5rem; }
.admonition-tip { border-left: 3px solid #3fb950; }
.admonition-warning { border-left: 3px solid #d29922; }
.admonition-danger { border-left: 3px solid #f85149; }
.docs-nav {
  display: flex; justify-content: space-between; margin-top: 3rem;
  padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.docs-nav a {
  padding: 0.75rem 1.25rem; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 0.9rem;
}
.docs-nav a:hover { border-color: var(--accent); text-decoration: none; }
@media (max-width: 768px) {
  .docs-sidebar { display: none; }
  .docs-content { margin-left: 0; padding: 1rem; }
}
