/* ============================================
   KalqiX API Docs — Dark Hacker Theme
   Inspired by Scalar's clean layout
   ============================================ */

:root {
  /* Background layers */
  --bg-root: #0a0a0f;
  --bg-sidebar: #0d0d14;
  --bg-content: #0f0f18;
  --bg-panel: #0a0a12;
  --bg-card: #13131e;
  --bg-card-hover: #181826;
  --bg-input: #12121c;
  --bg-code: #0c0c16;
  --bg-inline-code: #1a1a2e;

  /* Borders */
  --border: #1e1e32;
  --border-subtle: #16162a;
  --border-active: #2d2d50;

  /* Text */
  --text-primary: #e8e8f0;
  --text-secondary: #8888a8;
  --text-muted: #5a5a78;
  --text-heading: #f0f0ff;

  /* Accent — neon cyan/green */
  --accent: #00e5a0;
  --accent-dim: #00c88a;
  --accent-glow: rgba(0, 229, 160, 0.12);
  --accent-glow-strong: rgba(0, 229, 160, 0.25);

  /* Method colors */
  --method-get: #22d3ee;
  --method-get-bg: rgba(34, 211, 238, 0.08);
  --method-post: #818cf8;
  --method-post-bg: rgba(129, 140, 248, 0.08);
  --method-put: #fbbf24;
  --method-put-bg: rgba(251, 191, 36, 0.08);
  --method-delete: #f87171;
  --method-delete-bg: rgba(248, 113, 113, 0.08);

  /* Status */
  --success: #34d399;
  --warning: #fbbf24;
  --error: #f87171;
  --info: #60a5fa;

  /* Layout */
  --sidebar-width: 280px;
  --right-panel-width: 420px;
  --content-max-width: 720px;
  --header-height: 56px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;

  /* Transitions */
  --transition-fast: 120ms ease;
  --transition-normal: 200ms ease;
}

/* ============ Light Theme ============ */
[data-theme="light"] {
  --bg-root: #f8f9fb;
  --bg-sidebar: #ffffff;
  --bg-content: #ffffff;
  --bg-panel: #f5f6f8;
  --bg-card: #f0f2f5;
  --bg-card-hover: #e8eaef;
  --bg-input: #f0f2f5;
  --bg-code: #f5f6f8;
  --bg-inline-code: #e8ecf0;

  --border: #d8dce3;
  --border-subtle: #e5e8ed;
  --border-active: #c0c5d0;

  --text-primary: #1a1d24;
  --text-secondary: #5a6070;
  --text-muted: #8890a0;
  --text-heading: #0d0f14;

  --accent: #00a870;
  --accent-dim: #009060;
  --accent-glow: rgba(0, 168, 112, 0.1);
  --accent-glow-strong: rgba(0, 168, 112, 0.2);

  --method-get: #0891b2;
  --method-get-bg: rgba(8, 145, 178, 0.08);
  --method-post: #6366f1;
  --method-post-bg: rgba(99, 102, 241, 0.08);
  --method-put: #d97706;
  --method-put-bg: rgba(217, 119, 6, 0.08);
  --method-delete: #dc2626;
  --method-delete-bg: rgba(220, 38, 38, 0.08);

  --success: #16a34a;
  --warning: #d97706;
  --error: #dc2626;
  --info: #2563eb;
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-root);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ============ Scrollbar ============ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-active); }

/* ============ Sidebar ============ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--transition-normal);
}

.sidebar-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-actions {
  display: flex;
  justify-content: flex-end;
  padding: 8px 20px 0;
}

.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark { display: none; }
[data-theme="light"] .theme-icon-light { display: block; }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-heading);
}

.logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.logo-text {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.logo-version {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 500;
}

/* Search */
.sidebar-search {
  padding: 12px 16px;
  position: relative;
}

.sidebar-search input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color var(--transition-fast);
}

.sidebar-search input::placeholder { color: var(--text-muted); }
.sidebar-search input:focus { border-color: var(--accent); }

.search-icon {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-kbd {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

/* Nav */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.nav-section {
  margin-bottom: 4px;
}

.nav-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 20px;
}

.nav-section-label {
  padding: 4px 20px 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.nav-section-title {
  padding: 8px 20px 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  user-select: none;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border-left: 2px solid transparent;
  user-select: none;
}

.nav-item:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.nav-item.active {
  color: var(--accent);
  background: var(--accent-glow);
  border-left-color: var(--accent);
}

.nav-item .method-badge {
  font-size: 9px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.03em;
  flex-shrink: 0;
  min-width: 36px;
  text-align: center;
}

.method-badge.get { color: var(--method-get); background: var(--method-get-bg); }
.method-badge.post { color: var(--method-post); background: var(--method-post-bg); }
.method-badge.put { color: var(--method-put); background: var(--method-put-bg); }
.method-badge.delete { color: var(--method-delete); background: var(--method-delete-bg); }

.nav-endpoint-path {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
}

/* Sidebar footer */
.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border-subtle);
}

.sidebar-footer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.sidebar-footer-link:hover { color: var(--accent); }

/* ============ Main ============ */
.main {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

.content-wrapper {
  display: flex;
}

.content {
  flex: 1;
  max-width: var(--content-max-width);
  padding: 40px 48px 80px;
  margin: 0 auto;
}

.right-panel {
  width: var(--right-panel-width);
  flex-shrink: 0;
  padding: 40px 24px 80px 0;
  display: none; /* shown on API reference pages */
}

.right-panel.visible {
  display: block;
}

/* When right panel is visible, content doesn't center */
.content-wrapper.has-panel .content {
  margin: 0;
  max-width: none;
  flex: 1;
  padding-right: 32px;
}

/* ============ Typography ============ */
.content h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.content h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-heading);
  margin-top: 40px;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-heading);
  margin-top: 28px;
  margin-bottom: 8px;
}

.content h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-heading);
  margin-top: 20px;
  margin-bottom: 6px;
}

.content p {
  margin-bottom: 14px;
  color: var(--text-secondary);
}

.content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast);
}

.content a:hover { border-bottom-color: var(--accent); }

.content ul, .content ol {
  margin-bottom: 14px;
  padding-left: 20px;
  color: var(--text-secondary);
}

.content li { margin-bottom: 4px; }

.content strong { color: var(--text-primary); font-weight: 600; }

.content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

.content img {
  max-width: 100%;
  border-radius: var(--radius-md);
}

/* Inline code */
.content code:not(pre code) {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--bg-inline-code);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

/* Code blocks */
.content pre {
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.content pre code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "calt" 0;
  display: block;
  padding: 16px 20px;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

/* Tables */
.content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 13px;
}

.content th {
  text-align: left;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.content td {
  padding: 8px 12px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.content td code {
  font-size: 12px;
}

/* ============ API Endpoint Card ============ */
.endpoint-card {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
}

.endpoint-card:last-child {
  border-bottom: none;
}

.endpoint-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.endpoint-method {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.endpoint-method.get { color: var(--method-get); background: var(--method-get-bg); border: 1px solid rgba(34,211,238,0.15); }
.endpoint-method.post { color: var(--method-post); background: var(--method-post-bg); border: 1px solid rgba(129,140,248,0.15); }
.endpoint-method.put { color: var(--method-put); background: var(--method-put-bg); border: 1px solid rgba(251,191,36,0.15); }
.endpoint-method.delete { color: var(--method-delete); background: var(--method-delete-bg); border: 1px solid rgba(248,113,113,0.15); }

.endpoint-path {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-heading);
}

.endpoint-path .path-param {
  color: var(--accent);
}

.endpoint-summary {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.endpoint-url-bar {
  display: flex;
  align-items: center;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  gap: 8px;
  overflow-x: auto;
}

.endpoint-url-bar .url-server {
  color: var(--text-muted);
}

.endpoint-url-bar .url-path {
  color: var(--text-primary);
}

/* Auth badge */
.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: var(--warning);
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.15);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.auth-badge.public {
  color: var(--success);
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.15);
}

.auth-badge svg { flex-shrink: 0; }

/* Section labels */
.section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 10px;
  margin-top: 20px;
}

/* Parameter table */
.param-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 20px;
}

.param-table th {
  text-align: left;
  padding: 8px 12px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.param-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.param-name {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text-primary);
  font-size: 12.5px;
}

.param-required {
  color: var(--error);
  font-size: 10px;
  font-weight: 600;
  margin-left: 6px;
}

.param-type {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.param-desc {
  color: var(--text-secondary);
  font-size: 12.5px;
}

.param-default {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-dim);
}

.param-enum {
  display: inline-flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.param-enum-value {
  font-family: var(--font-mono);
  font-size: 10.5px;
  background: var(--bg-inline-code);
  color: var(--text-secondary);
  padding: 1px 6px;
  border-radius: 3px;
}

/* Response section */
.response-group {
  margin-bottom: 16px;
}

.response-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-card);
  width: 100%;
  transition: all var(--transition-fast);
  margin-bottom: 2px;
  color: var(--text-primary);
}

.response-status:hover { background: var(--bg-card-hover); }
.response-status.expanded { border-color: var(--border-active); }

.response-status .status-code { min-width: 28px; }
.response-status .status-code.s2xx { color: var(--success); }
.response-status .status-code.s4xx { color: var(--warning); }
.response-status .status-code.s5xx { color: var(--error); }

.response-status .status-desc {
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 12px;
}

.response-status .chevron {
  margin-left: auto;
  transition: transform var(--transition-fast);
  color: var(--text-muted);
}

.response-status.expanded .chevron { transform: rotate(90deg); }

.response-body {
  display: none;
  padding: 12px 16px;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  margin-bottom: 6px;
}

.response-body.visible { display: block; }

.response-body pre {
  margin: 0;
}

.response-body pre code {
  border: none;
  padding: 0;
  font-size: 12px;
}

/* ============ Right Panel (Code Examples) ============ */
.code-example-card {
  margin-bottom: 24px;
  position: sticky;
  top: 40px;
}

.code-example-tabs {
  display: flex;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
}

.code-tab {
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-sans);
  transition: all var(--transition-fast);
  border-bottom: 2px solid transparent;
}

.code-tab:hover { color: var(--text-secondary); }

.code-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: var(--bg-code);
}

.code-example-body {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  overflow: hidden;
}

.code-example-body pre {
  margin: 0;
}

.code-example-body pre code {
  border: none;
  border-radius: 0;
  font-size: 12px;
  padding: 16px;
  max-height: 500px;
  overflow-y: auto;
}

/* ============ Schema viewer ============ */
.schema-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
}

.schema-title {
  padding: 8px 14px;
  background: var(--bg-card);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
}

.schema-field {
  display: flex;
  gap: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12.5px;
  align-items: flex-start;
}

.schema-field:last-child { border-bottom: none; }

.schema-field-name {
  font-family: var(--font-mono);
  color: var(--text-primary);
  font-weight: 500;
  min-width: 140px;
  flex-shrink: 0;
}

.schema-field-type {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 11px;
  min-width: 60px;
  flex-shrink: 0;
}

.schema-field-desc {
  color: var(--text-secondary);
  font-size: 12px;
  flex: 1;
}

/* ============ Guide page specifics ============ */
.guide-page .content {
  max-width: 780px;
}

/* ============ Hero / Intro ============ */
.hero-section {
  margin-bottom: 40px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(0,229,160,0.04), rgba(0,184,212,0.04));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.hero-section h1 {
  font-size: 32px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--accent), #00b8d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-section p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 560px;
}

.hero-badges {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ============ Tag Group Header ============ */
.tag-group-header {
  margin-top: 48px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.tag-group-header h2 {
  margin: 0;
  border: none;
  padding: 0;
  font-size: 22px;
}

.tag-group-header p {
  margin-top: 6px;
  margin-bottom: 0;
}

/* ============ Copy button ============ */
.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  font-family: var(--font-mono);
  transition: all var(--transition-fast);
  opacity: 0;
}

pre:hover .copy-btn,
.endpoint-url-bar:hover .copy-btn { opacity: 1; }

.copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.copy-btn.copied { color: var(--success); border-color: var(--success); }

/* ============ Mobile nav toggle ============ */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 90;
}

/* ============ Nav section toggle ============ */
.nav-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 20px 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  user-select: none;
  transition: color var(--transition-fast);
}

.nav-section-toggle:hover { color: var(--text-secondary); }

.nav-section-toggle .toggle-chevron {
  font-size: 8px;
}

.nav-section-items { overflow: hidden; }
.nav-section-items.collapsed { display: none; }

/* ============ Loading ============ */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: var(--text-muted);
  font-size: 13px;
}

.loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 10px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============ Responsive ============ */
@media (max-width: 1200px) {
  .right-panel { display: none !important; }
  .content-wrapper.has-panel .content {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding-right: 48px;
  }
}

@media (max-width: 768px) {
  .mobile-nav-toggle { display: flex; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }

  .main { margin-left: 0; }

  .content {
    padding: 60px 20px 40px;
  }

  .hero-section {
    padding: 20px;
  }

  .hero-section h1 {
    font-size: 24px;
  }

  .endpoint-header {
    flex-wrap: wrap;
  }
}

/* ============ No-results ============ */
.no-results {
  padding: 32px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* ============ Request body schema ============ */
.request-body-section {
  margin-top: 20px;
}
