:root {
  --bg-docs: #090c10;
  --bg-sidebar: #0d1117;
  --bg-surface: #161b22;
  --bg-code: #0b0f14;
  --border-docs: rgba(255, 255, 255, 0.1);
  --text-main: #f0f6fc;
  --text-muted: #8b949e;
  --accent-primary: #58a6ff;
  --accent-cyan: #39c5bb;
  --accent-green: #3fb950;
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'Fira Code', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-docs);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
}

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

/* Sidebar */
.sidebar {
  width: 290px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-docs);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-header {
  padding: 1.5rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border-docs);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.brand-icon {
  font-size: 1.2rem;
}

.search-box input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-docs);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-box input:focus {
  border-color: var(--accent-primary);
}

.sidebar-nav {
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.group-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 0.5rem 0.4rem;
  display: block;
}

.nav-item {
  display: block;
  padding: 0.45rem 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.nav-item:hover {
  background: var(--bg-surface);
  color: #fff;
}

.nav-item.active {
  background: rgba(88, 166, 255, 0.12);
  color: var(--accent-primary);
  font-weight: 600;
}

/* Docs Content */
.docs-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.content-body {
  max-width: 820px;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  flex: 1;
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: block;
  margin-bottom: 0.75rem;
}

.doc-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.doc-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.doc-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border-docs);
  padding-bottom: 0.5rem;
  margin-top: 1rem;
}

.doc-section p {
  color: #c9d1d9;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(110, 118, 129, 0.2);
  padding: 0.2em 0.4em;
  border-radius: 5px;
  color: #79c0ff;
}

/* Code Container */
.code-container {
  background: var(--bg-code);
  border: 1px solid var(--border-docs);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.code-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-docs);
  padding: 0.4rem 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tab-list {
  display: flex;
  gap: 0.25rem;
}

.code-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
}

.code-tab.active, .code-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-docs);
  color: var(--text-muted);
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.code-title {
  font-size: 0.8rem;
  color: var(--accent-green);
  font-family: var(--font-mono);
}

.code-block {
  padding: 1.25rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.5;
  color: #e6edf3;
}

.code-block code {
  background: transparent;
  padding: 0;
  color: inherit;
}

/* Callouts */
.callout {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  border-left: 4px solid;
}

.callout-info {
  background: rgba(56, 189, 248, 0.08);
  border-color: #38bdf8;
  color: #bae6fd;
}

/* Table */
.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.doc-table th, .doc-table td {
  border: 1px solid var(--border-docs);
  padding: 0.75rem 1rem;
  text-align: left;
}

.doc-table th {
  background: var(--bg-surface);
  color: #fff;
}

.endpoint-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-surface);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border-docs);
  margin-top: 0.5rem;
}

.http-method {
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}

.http-method.get {
  background: rgba(63, 185, 80, 0.2);
  color: var(--accent-green);
}

.docs-footer {
  border-top: 1px solid var(--border-docs);
  padding: 2rem 2.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .docs-layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; }
  .content-body { padding: 2rem 1.25rem; }
}
