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

:root {
  --primary: #0D7C66;
  --primary-light: #10A37F;
  --sidebar-bg: #0F1117;
  --sidebar-text: #A1A1AA;
  --sidebar-active: #FFFFFF;
  --content-bg: #FFFFFF;
  --code-bg: #0F1117;
  --code-border: #1E1E2E;
  --text: #1A1A1A;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --get: #22C55E;
  --post: #3B82F6;
  --patch: #F59E0B;
  --delete: #EF4444;
  --put: #A855F7;
}

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

/* Sidebar */
#sidebar {
  width: 260px;
  background: var(--sidebar-bg);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  padding: 24px 0;
  z-index: 10;
}

.sidebar-header {
  padding: 0 20px 20px;
  border-bottom: 1px solid #1E1E2E;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  width: 28px;
  height: 28px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 13px;
}

.logo-text {
  color: white;
  font-weight: 600;
  font-size: 16px;
}

.badge {
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.02em;
}

nav {
  padding: 0 12px;
}

.nav-link {
  display: block;
  padding: 7px 12px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.15s;
}

.nav-link:hover {
  color: var(--sidebar-active);
  background: rgba(255,255,255,0.05);
}

.nav-link.active {
  color: var(--sidebar-active);
  background: rgba(255,255,255,0.08);
}

.nav-link.sub {
  padding-left: 28px;
  font-size: 12px;
  font-weight: 400;
  color: #71717A;
}

.nav-link.sub:hover { color: var(--sidebar-text); }

.nav-divider {
  height: 1px;
  background: #1E1E2E;
  margin: 12px 12px;
}

.nav-section-title {
  font-size: 11px;
  font-weight: 600;
  color: #52525B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 12px 4px;
}

/* Main Content */
#content {
  margin-left: 260px;
  flex: 1;
  min-width: 0;
}

section {
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.section-content {
  display: flex;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.text-col {
  flex: 1;
  min-width: 0;
  max-width: 520px;
}

.code-col {
  flex: 1;
  min-width: 0;
  max-width: 520px;
}

h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--text);
}

p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 12px;
}

ol, ul {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-left: 20px;
}

li { margin-bottom: 4px; }

code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  background: #F3F4F6;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text);
}

/* Method badges */
.method {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  color: white;
}
.method.get { background: var(--get); }
.method.post { background: var(--post); }
.method.patch { background: var(--patch); color: #1A1A1A; }
.method.delete { background: var(--delete); }
.method.put { background: var(--put); }

/* Param table */
.param-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 16px;
  font-size: 13px;
}

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

.param-table td:first-child {
  width: 200px;
  white-space: nowrap;
}

.param-table code {
  background: #F3F4F6;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 12px;
}

.type {
  font-size: 11px;
  color: var(--text-muted);
  background: #F3F4F6;
  padding: 1px 6px;
  border-radius: 3px;
  margin-right: 6px;
}

.required {
  font-size: 11px;
  color: var(--delete);
  font-weight: 600;
  margin-right: 6px;
}

/* Code blocks */
.code-block {
  background: var(--code-bg);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--code-border);
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--code-border);
  font-size: 12px;
  color: #71717A;
  font-weight: 500;
}

.copy-btn {
  background: transparent;
  border: 1px solid #333;
  color: #71717A;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  transition: all 0.15s;
}

.copy-btn:hover {
  color: white;
  border-color: #555;
}

.code-block pre {
  padding: 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
}

.code-block code {
  background: none;
  padding: 0;
  color: #E4E4E7;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
}

/* Syntax colors */
.c-key { color: #7DD3FC; }
.c-str { color: #86EFAC; }
.c-num { color: #FCA5A5; }
.c-bool { color: #FCA5A5; }
.c-null { color: #A1A1AA; }
.c-comment { color: #52525B; }
.c-keyword { color: #C4B5FD; }
.c-fn { color: #93C5FD; }

/* Info/Warning boxes */
.info-box {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 13px;
}

.info-box strong {
  display: block;
  margin-bottom: 4px;
  color: var(--primary);
}

.info-box code {
  background: #DCFCE7;
  color: #166534;
}

.warning-box {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 13px;
  color: #92400E;
}

.warning-box strong {
  display: block;
  margin-bottom: 4px;
}

/* Lifecycle */
.lifecycle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 20px;
  flex-wrap: wrap;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

.status-badge.submitted { background: #EFF6FF; color: #1D4ED8; }
.status-badge.reviewing { background: #FFF7ED; color: #C2410C; }
.status-badge.approved { background: #ECFDF5; color: #059669; }
.status-badge.paid { background: #F0FDF4; color: #166534; }

.arrow { color: var(--text-muted); font-size: 16px; }

/* Responsive */
@media (max-width: 1100px) {
  .section-content {
    flex-direction: column;
    padding: 0 24px;
  }
  .text-col, .code-col {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  #sidebar {
    display: none;
  }
  #content {
    margin-left: 0;
  }
}
