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

:root {
  --primary: #10b981;
  --primary-dark: #059669;
  --bg-dark: #0f172a;
  --bg-sidebar: #1e293b;
  --text: #334155;
  --text-light: #64748b;
  --text-dark: #0f172a;
  --border: #e2e8f0;
  --code-bg: #1e293b;
  --warning-bg: #fef3c7;
  --warning-border: #fcd34d;
  --warning-text: #92400e;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f8fafc;
  color: var(--text);
  line-height: 1.6;
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 280px;
  background: var(--bg-sidebar);
  color: white;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  padding: 24px 0;
}

.sidebar-header {
  padding: 0 24px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  color: white;
}

.logo svg {
  color: var(--primary);
}

.version {
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.sidebar-content {
  padding: 24px;
}

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

.nav-section h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
  font-weight: 600;
}

.nav-section ul {
  list-style: none;
}

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

.nav-section a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}

.nav-section a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.nav-section a.active {
  background: var(--primary);
  color: white;
}

.method {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
}

.method.post {
  background: #3b82f6;
  color: white;
}

.method.get {
  background: var(--primary);
  color: white;
}

/* Main Content */
.content {
  flex: 1;
  margin-left: 280px;
  padding: 48px 64px;
  max-width: 1000px;
}

section {
  margin-bottom: 64px;
  scroll-margin-top: 32px;
}

h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

section:first-of-type h2 {
  border-top: none;
  padding-top: 0;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 32px;
  margin-bottom: 12px;
}

h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

p {
  margin-bottom: 16px;
  color: var(--text);
}

.intro {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 32px;
}

/* Info Cards */
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.info-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.info-card-icon {
  width: 48px;
  height: 48px;
  background: #ecfdf5;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary);
}

.info-card h4 {
  margin-bottom: 4px;
}

.info-card p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 0;
}

/* Base URL */
.base-url {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.base-url h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.base-url code.url {
  display: block;
  background: var(--code-bg);
  color: #e2e8f0;
  padding: 16px 20px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
}

/* Auth Methods */
.auth-methods {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.auth-method {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.auth-method h4 {
  margin-bottom: 12px;
}

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

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-header span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: rgba(255, 255, 255, 0.7);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.code-block pre {
  padding: 20px;
  overflow-x: auto;
}

.code-block code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.7;
}

/* Warning Box */
.warning-box {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  gap: 12px;
  color: var(--warning-text);
}

.warning-box svg {
  flex-shrink: 0;
  margin-top: 2px;
}

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

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  font-size: 14px;
}

tr:last-child td {
  border-bottom: none;
}

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

.required {
  background: #fef2f2;
  color: #dc2626;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.optional {
  background: #f1f5f9;
  color: var(--text-light);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

.status-badge.pending {
  background: #fef3c7;
  color: #92400e;
}

.status-badge.approved {
  background: #dbeafe;
  color: #1e40af;
}

.status-badge.completed {
  background: #d1fae5;
  color: #065f46;
}

.status-badge.rejected {
  background: #fee2e2;
  color: #991b1b;
}

/* Endpoint Header */
.endpoint-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.endpoint-header h2 {
  border-top: none;
  padding-top: 0;
  margin-bottom: 0;
}

.method-badge {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.method-badge.post {
  background: #3b82f6;
  color: white;
}

.method-badge.get {
  background: var(--primary);
  color: white;
}

.endpoint-url {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 24px;
}

.endpoint-url code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--text-dark);
}

/* Footer */
footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
  .sidebar {
    width: 240px;
  }

  .content {
    margin-left: 240px;
    padding: 32px 40px;
  }

  .info-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .content {
    margin-left: 0;
    padding: 24px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }
}
