/* API Documentation Specific Styles */
.api-docs-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  color: #1e293b;
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  background-color: #ffffff;
}

.api-docs-container h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #000000;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.75rem;
}

.api-docs-container h2 {
  font-size: 1.875rem;
  font-weight: 600;
  margin: 2.5rem 0 1.5rem 0;
  color: #000000;
}

.api-docs-container h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 1.75rem 0 1rem 0;
  color: #000000;
}

.api-docs-container h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem 0;
  color: #000000;
}

.api-section {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.api-endpoint {
  background-color: #f8fafc;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-left: 4px solid #333333;
}

.api-docs-container code {
  font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
  background-color: #f1f5f9;
  color: #334155;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-size: 0.9rem;
}

.api-docs-container pre {
  background-color: #0f172a;
  border-radius: 0.375rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.api-docs-container pre code {
  background-color: transparent;
  color: #e2e8f0;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.api-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.api-table th {
  background-color: #f8fafc;
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
  border-bottom: 2px solid #e2e8f0;
}

.api-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.api-table tr:nth-child(even) {
  background-color: #f8fafc;
}

.api-best-practices ol {
  counter-reset: best-practices;
  list-style-type: none;
  margin-left: 0;
}

.api-best-practices ol > li {
  position: relative;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: #f8fafc;
  border-radius: 0.5rem;
}

.api-best-practices ol > li h3 {
  margin-top: 0;
  display: inline-block;
}

.api-best-practices ol > li h3::before {
  content: counter(best-practices);
  counter-increment: best-practices;
  background-color: #333333;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  margin-right: 0.75rem;
  font-size: 1rem;
}

.api-example {
  background-color: #f8fafc;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.api-fields {
  background-color: #ffffff;
  border-radius: 0.375rem;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  margin: 1rem 0;
}

.api-fields h4 {
  margin-top: 0;
}

.api-docs-container a {
  color: #333333;
  text-decoration: none;
  font-weight: 500;
}

.api-docs-container a:hover {
  text-decoration: underline;
}

.endpoint-list {
  list-style: none;
  padding-left: 0;
}

.endpoint-list li {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.endpoint-list li:last-child {
  border-bottom: none;
}

.endpoint-list h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.endpoint-list a {
  color: blue;
  text-decoration: none;
  font-weight: 600;
}

.endpoint-list a:hover {
  text-decoration: underline;
}

.example-box {
  background-color: #f8fafc;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 1rem;
}

.example-box h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.example-box pre {
  margin: 0 0 0.75rem 0;
  background-color: #0f172a;
  border-radius: 0.375rem;
  padding: 1rem;
  overflow-x: auto;
}

.example-box code {
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
  font-size: 0.9rem;
}

.example-box p {
  margin: 0;
  line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .api-docs-container {
    padding: 1rem;
  }
  
  .api-docs-container h1 {
    font-size: 2rem;
  }
  
  .api-docs-container h2 {
    font-size: 1.5rem;
  }
  
  .api-docs-container h3 {
    font-size: 1.25rem;
  }
  
  .api-docs-container pre {
    padding: 0.75rem;
  }
  
  .api-endpoint, .api-example {
    padding: 1rem;
  }
  
  .api-table th, .api-table td {
    padding: 0.5rem;
  }
}