/* Main Docs Styles */
:root {
  --primary: #0284c7;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --sidebar-w: 260px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif; background: var(--bg-main); color: var(--text-main); display: flex; flex-direction: column; min-height: 100vh; }
header { background: #fff; border-bottom: 1px solid var(--border); padding: 0.75rem 1.5rem; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--primary); text-decoration: none; }
.search-box { position: relative; }
.search-box input { padding: 0.4rem 0.8rem; border: 1px solid var(--border); border-radius: 6px; width: 220px; font-size: 0.875rem; }
#search-results { position: absolute; top: 100%; right: 0; background: #fff; border: 1px solid var(--border); border-radius: 6px; width: 280px; max-height: 250px; overflow-y: auto; display: none; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
#search-results a { display: block; padding: 0.5rem; text-decoration: none; color: var(--text-main); border-bottom: 1px solid var(--border); }
#search-results a:hover { background: #f1f5f9; }
.layout { display: flex; flex: 1; }
aside { width: var(--sidebar-w); background: #fff; border-right: 1px solid var(--border); padding: 1.5rem; flex-shrink: 0; }
aside h3 { font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); margin: 1.25rem 0 0.5rem; letter-spacing: 0.05em; }
aside h3:first-child { margin-top: 0; }
aside ul { list-style: none; }
aside li { margin-bottom: 0.35rem; }
aside a { text-decoration: none; color: var(--text-main); font-size: 0.9rem; }
aside a:hover, aside a.active { color: var(--primary); font-weight: 600; }
main { flex: 1; padding: 2rem 3rem; max-width: 900px; }
h1 { font-size: 1.8rem; margin-bottom: 1rem; color: #0f172a; }
h2 { font-size: 1.3rem; margin: 1.5rem 0 0.75rem; color: #1e293b; }
p { line-height: 1.6; margin-bottom: 1rem; color: #334155; }
pre { background: #1e293b; color: #e2e8f0; padding: 1rem; border-radius: 8px; overflow-x: auto; margin-bottom: 1.25rem; position: relative; }
code { font-family: Consolas, Monaco, "Courier New", monospace; font-size: 0.9rem; }
.copy-btn { position: absolute; top: 0.5rem; right: 0.5rem; background: #334155; color: #fff; border: none; padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.75rem; cursor: pointer; }
.copy-btn:hover { background: #475569; }
table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
th, td { border: 1px solid var(--border); padding: 0.5rem 0.75rem; text-align: left; font-size: 0.9rem; }
th { background: #f1f5f9; font-weight: 600; }
.badge { display: inline-block; padding: 0.15rem 0.45rem; border-radius: 4px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.badge-get { background: #dcfce7; color: #166534; }
.badge-post { background: #dbeafe; color: #1e40af; }
.media-box { margin: 1.5rem 0; border: 1px solid var(--border); border-radius: 8px; padding: 1rem; background: #fff; text-align: center; }
.media-box img, .media-box video { max-width: 100%; border-radius: 6px; }
footer { background: #fff; border-top: 1px solid var(--border); padding: 1rem 1.5rem; text-align: center; font-size: 0.85rem; color: var(--text-muted); }
