* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; display: flex; min-height: 100vh; background: #f5f7fa; }
.sidebar { width: 260px; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); color: #fff; padding: 2rem 0; position: fixed; height: 100vh; overflow-y: auto; }
.logo { font-size: 1.5rem; font-weight: bold; padding: 0 1.5rem 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar ul { list-style: none; margin-top: 1rem; }
.sidebar li a { display: block; padding: 0.75rem 1.5rem; color: rgba(255,255,255,0.7); text-decoration: none; transition: all 0.3s; }
.sidebar li a:hover, .sidebar li a.active { background: rgba(255,255,255,0.1); color: #fff; border-left: 3px solid #007bff; }
.content { margin-left: 260px; padding: 2rem 3rem; flex: 1; max-width: 1000px; }
h1 { color: #1a1a2e; margin-bottom: 1.5rem; font-size: 2.5rem; }
h2 { color: #16213e; margin: 2rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid #e9ecef; }
h3 { color: #333; margin: 1.5rem 0 0.75rem; }
p { line-height: 1.7; margin-bottom: 1rem; color: #444; }
ul, ol { margin: 1rem 0 1rem 1.5rem; line-height: 1.8; }
a { color: #007bff; }
.card { background: #fff; border-radius: 8px; padding: 1.5rem; margin: 1rem 0; box-shadow: 0 2px 4px rgba(0,0,0,0.08); }
.card h3 { margin-top: 0; }
code { background: #e9ecef; padding: 0.2rem 0.4rem; border-radius: 4px; font-family: "SF Mono", Monaco, monospace; font-size: 0.9em; }
pre { background: #2d2d2d; color: #f8f8f2; padding: 1rem; border-radius: 8px; overflow-x: auto; margin: 1rem 0; }
table { width: 100%; border-collapse: collapse; margin: 1rem 0; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,0.08); }
th, td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid #e9ecef; }
th { background: #f8f9fa; font-weight: 600; color: #333; }
kbd { background: #e9ecef; border: 1px solid #ccc; border-radius: 4px; padding: 0.2rem 0.5rem; font-family: monospace; font-size: 0.85em; box-shadow: 0 1px 1px rgba(0,0,0,0.1); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.feature-card { background: #fff; border-radius: 12px; padding: 2rem; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: transform 0.3s; }
.feature-card:hover { transform: translateY(-4px); }
.feature-card h3 { display: flex; align-items: center; gap: 0.5rem; }
.feature-card .icon { font-size: 1.5rem; }
@media (max-width: 768px) { .sidebar { display: none; } .content { margin-left: 0; padding: 1rem; } }
/* Light theme override */
[data-theme="light"] { --bg: #f8fafc; --sidebar-bg: #f1f5f9; --text: #1e293b; --text-muted: #64748b; --card-bg: #fff; --border: #e2e8f0; }
[data-theme="light"] body { background: var(--bg); }
[data-theme="light"] .sidebar { background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%); }
[data-theme="light"] .sidebar .logo { color: #1e293b; border-bottom-color: #e2e8f0; }
[data-theme="light"] .sidebar li a { color: #475569; }
[data-theme="light"] .sidebar li a:hover, [data-theme="light"] .sidebar li a.active { background: rgba(0,0,0,0.05); color: #1e293b; }
[data-theme="light"] .content h1, [data-theme="light"] .content h2, [data-theme="light"] .content h3 { color: var(--text); }
[data-theme="light"] .content p, [data-theme="light"] .content li { color: var(--text-muted); }
[data-theme="light"] .card, [data-theme="light"] .feature-card { background: var(--card-bg); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
[data-theme="light"] table th { background: #f1f5f9; }
[data-theme="light"] code { background: #e2e8f0; }
[data-theme="light"] pre { background: #1e293b; }
