/* Scoped styles for documentation pages */

:root {
  --docs-accent: #2563eb; /* Tailwind indigo-600 vibe */
  --docs-accent-contrast: #fff;
  --docs-muted: #64748b; /* slate-500 */
  --docs-surface: #0f172a; /* slate-900 for dark code blocks */
  --docs-surface-2: #111827; /* gray-900 */
  --docs-border: #e5e7eb; /* gray-200 */
  --docs-highlight: #eef2ff; /* indigo-50 */
}

#docs.container {
  max-width: 1200px;
}

/* Sidebar */
#docs .docs-sidebar .card {
  position: sticky;
  top: 1rem;
  box-shadow: 0 6px 20px rgba(2, 6, 23, 0.08);
  border: 1px solid var(--docs-border);
  border-radius: 0.75rem;
}

#docs .docs-sidebar .card-header {
  background: linear-gradient(135deg, var(--docs-accent) 0%, #4f46e5 100%);
  color: var(--docs-accent-contrast);
  border-bottom: none;
  border-radius: 0.75rem 0.75rem 0 0;
}

#docs .docs-sidebar .list-group-item {
  border-left: none;
  border-right: none;
  transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

#docs .docs-sidebar .list-group-item:hover {
  background: #f8fafc;
  padding-left: 1.25rem;
}

#docs .docs-sidebar .list-group-item.active {
  background: var(--docs-highlight);
  color: #1f2937;
  font-weight: 600;
  border-color: var(--docs-border);
}

/* Headings spacing */
#docs h1 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

#docs h2 {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--docs-border);
}

#docs h3 {
  margin-top: 1.75rem;
}

/* Tables */
#docs table.table {
  border: 1px solid var(--docs-border);
  border-radius: 0.5rem;
  overflow: hidden;
}

#docs .table thead th {
  background: #fafafa;
}

/* Code blocks */
#docs .code-block {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.18);
}

#docs .code-block pre {
  margin: 0;
  padding: 1rem;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95rem;
  line-height: 1.5;
}

#docs .code-block.dark {
  background: var(--docs-surface);
  color: #e5e7eb;
}

#docs .code-block.light {
  background: #f9fafb;
  color: #111827;
  border: 1px solid var(--docs-border);
}

#docs .copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 0.375rem;
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  font-size: 0.825rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

#docs .code-block.light .copy-btn {
  background: #fff;
  color: #111827;
  border-color: var(--docs-border);
}

#docs .copy-btn:hover {
  opacity: 0.9;
}

#docs .anchor-link {
  visibility: hidden;
  margin-left: 0.25rem;
  color: var(--docs-muted);
  text-decoration: none;
}

#docs h2:hover .anchor-link,
#docs h3:hover .anchor-link {
  visibility: visible;
}

/* Alerts */
#docs .alert {
  border-radius: 0.75rem;
  border: 1px solid var(--docs-border);
}

/* Back to top */
#docs-back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1030;
  display: none;
}

#docs-back-to-top.show {
  display: inline-flex;
}


