.api-docs-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
}

.docs-header {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
  border-bottom: none;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15);
}

.docs-header h1 {
  font-size: 42px;
  margin-bottom: 12px;
  color: white;
  font-weight: 700;
}

.docs-header p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
}

.docs-content {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 20px;
}

.docs-sidebar {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.docs-nav h3 {
  font-size: 12px;
  font-weight: 700;
  color: #1f2937;
  margin: 24px 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-left: 12px;
  border-left: 3px solid #2563eb;
}

.docs-nav h3:first-child {
  margin-top: 0;
}

.docs-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.docs-nav li {
  margin: 0 0 8px 0;
}

.docs-nav a {
  color: #6b7280;
  font-size: 13px;
  transition: all 0.3s ease;
  display: block;
  padding: 8px 12px;
  border-radius: 4px;
  border-left: 2px solid transparent;
  padding-left: 12px;
}

.docs-nav a:hover {
  color: #2563eb;
  background: #eff6ff;
  border-left-color: #2563eb;
}

.docs-nav a.active {
  color: #2563eb;
  background: #eff6ff;
  border-left-color: #2563eb;
  font-weight: 600;
}

.docs-main {
  min-height: 100vh;
}

.doc-section {
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid #e5e7eb;
  scroll-margin-top: 100px;
}

.doc-section:last-child {
  border-bottom: none;
}

.doc-section h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #1f2937;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.doc-section h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 28px;
  background: #2563eb;
  border-radius: 2px;
}

.doc-section h3 {
  font-size: 18px;
  margin-top: 32px;
  margin-bottom: 16px;
  color: #1f2937;
  font-weight: 600;
}

.doc-section p {
  color: #6b7280;
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 14px;
}

.doc-section ul {
  margin-left: 20px;
  margin-bottom: 16px;
}

.doc-section li {
  color: #6b7280;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.6;
}

.code-block {
  background: #1f2937;
  color: #e5e7eb;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 16px;
  border: 1px solid #374151;
  position: relative;
}

.code-block::before {
  content: 'CODE';
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 10px;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 1px;
}

.code-block pre {
  margin: 0;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.6;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: pre-wrap;
  word-break: break-word;
}

.code-block code {
  color: #e5e7eb;
}

.endpoint-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  margin-right: 8px;
  letter-spacing: 0.5px;
}

.endpoint-badge.post {
  background: #dbeafe;
  color: #1e40af;
}

.endpoint-badge.get {
  background: #dcfce7;
  color: #166534;
}

.response-example {
  background: #f0f9ff;
  border-left: 4px solid #2563eb;
  padding: 16px;
  border-radius: 4px;
  margin: 16px 0;
}

.response-example h4 {
  margin: 0 0 12px 0;
  color: #1e40af;
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .docs-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .docs-sidebar {
    position: static;
    top: auto;
  }
}

@media (max-width: 768px) {
  .docs-header {
    padding: 60px 20px;
  }

  .docs-header h1 {
    font-size: 28px;
  }

  .docs-header p {
    font-size: 14px;
  }

  .doc-section h2 {
    font-size: 22px;
  }

  .doc-section h3 {
    font-size: 16px;
  }

  .code-block {
    font-size: 11px;
  }
}
