@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --theme: 'light';
  --bg-main: #f8fafc;
  --bg-sidebar: #ffffff;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --primary: #4f46e5;
  --accent-cyan: #0284c7;
  --accent-emerald: #059669;
  --text-main: #0f172a;
  --text-muted: #475569;
  --code-bg: #0f172a;
}

[data-theme="dark"] {
  --theme: 'dark';
  --bg-main: #07090e;
  --bg-sidebar: #0b0f19;
  --bg-card: rgba(18, 24, 38, 0.7);
  --border-color: rgba(255, 255, 255, 0.08);
  --primary: #6366f1;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --code-bg: #030712;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  display: flex;
  min-height: 100vh;
}

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

.docs-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.docs-nav-group {
  margin-bottom: 1.75rem;
}

.docs-nav-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  margin-bottom: 0.6rem;
}

.docs-nav-links {
  list-style: none;
}

.docs-nav-item {
  margin-bottom: 0.25rem;
}

.docs-nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #cbd5e1;
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  font-size: 0.88rem;
  transition: all 0.2s;
}

.docs-nav-link:hover, .docs-nav-link.active {
  color: #fff;
  background: rgba(99, 102, 241, 0.15);
  border-left: 3px solid var(--primary);
}

.method-tag {
  font-size: 0.68rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.method-post {
  background: rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
}

.method-get {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
}

.method-delete {
  background: rgba(244, 63, 94, 0.2);
  color: #f43f5e;
}

/* Content Area */
.docs-content {
  flex: 1;
  max-width: 1050px;
  padding: 3rem 4rem;
  overflow-y: auto;
}

.docs-section {
  margin-bottom: 4rem;
}

.docs-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 0.75rem;
}

.docs-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.docs-h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin: 2.5rem 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.docs-p {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* Callout Box */
.callout {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.callout-title {
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

/* Code Snippet Box */
.code-box {
  background: var(--code-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  margin: 1.5rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.code-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.lang-tabs {
  display: flex;
  gap: 0.5rem;
}

.lang-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-tab:hover {
  color: #fff;
}

.lang-tab.active {
  background: rgba(99, 102, 241, 0.25);
  color: #fff;
}

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

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

pre {
  padding: 1.25rem;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.86rem;
  line-height: 1.6;
  color: #e2e8f0;
}

/* API Endpoint Bar */
.endpoint-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(18, 24, 38, 0.9);
  border: 1px solid var(--border-color);
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  margin: 1.25rem 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92rem;
}

.endpoint-url {
  color: #fff;
  font-weight: 600;
}

/* Param Table */
.param-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.88rem;
}

.param-table th {
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.param-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.param-name {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-cyan);
  font-weight: 600;
}

.param-type {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.required-badge {
  font-size: 0.7rem;
  color: #f43f5e;
  font-weight: 700;
  margin-left: 0.3rem;
}
