* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: system-ui, -apple-system, sans-serif; background: #0a0a0a; color: #e0e0e0; min-height: 100vh; }

/* Layout */
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 260px; background: #111; border-right: 1px solid #1a1a1a; padding: 20px; position: fixed; top: 0; bottom: 0; overflow-y: auto; }
.content { flex: 1; margin-left: 260px; padding: 40px 60px; max-width: 820px; }

/* Sidebar */
.sidebar-header { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.logo { font-size: 18px; font-weight: 800; color: #c4b5fd; text-decoration: none; }
.version { font-size: 11px; color: #555; background: #1a1a1a; padding: 2px 8px; border-radius: 10px; }
.nav-section { margin-bottom: 20px; }
.nav-section h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #555; margin-bottom: 8px; }
.nav-link { display: block; padding: 6px 12px; color: #888; text-decoration: none; border-radius: 6px; font-size: 14px; transition: 0.15s; margin-bottom: 2px; }
.nav-link:hover { color: #ccc; background: #1a1a1a; }
.nav-link.active { color: #c4b5fd; background: #7c3aed20; }

/* Doc content */
.doc-content h1 { font-size: 32px; font-weight: 800; margin-bottom: 16px; color: #f0f0f0; }
.doc-content h2 { font-size: 24px; font-weight: 700; margin-top: 40px; margin-bottom: 12px; color: #e0e0e0; border-bottom: 1px solid #1a1a1a; padding-bottom: 8px; }
.doc-content h3 { font-size: 18px; font-weight: 600; margin-top: 28px; margin-bottom: 8px; color: #d0d0d0; }
.doc-content p { font-size: 15px; line-height: 1.8; color: #999; margin-bottom: 16px; }
.doc-content ul, .doc-content ol { padding-left: 24px; margin-bottom: 16px; }
.doc-content li { font-size: 15px; line-height: 1.8; color: #999; margin-bottom: 4px; }
.doc-content a { color: #c4b5fd; text-decoration: none; }
.doc-content a:hover { text-decoration: underline; }
.doc-content strong { color: #e0e0e0; }
.doc-content blockquote { border-left: 3px solid #7c3aed; padding: 8px 16px; margin: 16px 0; background: #111; border-radius: 0 8px 8px 0; }

/* Code */
.code-block { background: #111; border: 1px solid #1a1a1a; border-radius: 8px; padding: 16px; overflow-x: auto; margin: 16px 0; font-size: 13px; line-height: 1.6; }
.code-block code { color: #c4b5fd; font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace; }
.inline-code { background: #1a1a1a; padding: 2px 6px; border-radius: 4px; font-size: 13px; color: #c4b5fd; font-family: 'SF Mono', 'Fira Code', monospace; }

/* Playground */
.playground-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-height: 600px; }
.editor-panel, .preview-panel { background: #111; border: 1px solid #1a1a1a; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.editor-header, .preview-header { padding: 10px 16px; border-bottom: 1px solid #1a1a1a; display: flex; align-items: center; gap: 12px; }
.editor-header h3, .preview-header h3 { font-size: 13px; color: #888; }
.example-buttons { display: flex; gap: 4px; flex-wrap: wrap; }
.example-btn { border: none; background: #1a1a1a; color: #888; padding: 3px 10px; border-radius: 6px; cursor: pointer; font-size: 11px; transition: 0.15s; }
.example-btn:hover { background: #222; color: #ccc; }
.code-editor { flex: 1; background: #0a0a0a; border: none; color: #c4b5fd; font-family: 'SF Mono', 'Fira Code', monospace; font-size: 13px; line-height: 1.6; padding: 16px; resize: none; outline: none; tab-size: 2; }
.run-btn { margin: 8px 16px 12px; }
.btn { border: none; padding: 8px 20px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 13px; background: #222; color: #e0e0e0; transition: 0.2s; }
.btn-primary { background: #7c3aed; color: white; }
.btn-primary:hover { background: #6d28d9; }
.preview-frame { flex: 1; border: none; background: white; min-height: 400px; }
