/* ================================
   API DOCUMENTATION – GLOBAL
================================ */

.api-docs {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  color: #1f2937;
}

/* Headings */
.api-docs h3 {
  font-weight: 700;
  letter-spacing: -0.3px;
}

.api-docs h5 {
  margin-top: 2.5rem;
  font-weight: 600;
  color: #111827;
  border-left: 4px solid #0d6efd;
  padding-left: 10px;
}

/* Section divider */
.api-docs hr {
  margin: 2.5rem 0;
  border-top: 1px solid #e5e7eb;
}

/* Muted text */
.api-docs .text-muted {
  color: #6b7280 !important;
}

/* ================================
   ENDPOINT BADGES
================================ */

.api-docs code {
  background: #f3f4f6;
  color: #0d6efd;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ================================
   CODE BLOCKS (JSON / CURL)
================================ */

.api-docs pre {
  background: #0f172a; /* dark navy */
  color: #e5e7eb;
  padding: 16px 18px;
  border-radius: 10px;
  font-size: 0.85rem;
  overflow-x: auto;
  margin-top: 10px;
  margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

/* Syntax feel */
.api-docs pre::-webkit-scrollbar {
  height: 6px;
}
.api-docs pre::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 10px;
}

/* Highlight keywords visually */
.api-docs pre b {
  color: #38bdf8;
}

/* ================================
   REQUEST / RESPONSE LABELS
================================ */

.api-docs b {
  display: inline-block;
  margin-top: 10px;
  margin-bottom: 6px;
  font-weight: 600;
  color: #0f172a;
}

/* ================================
   INFO CALLOUTS
================================ */

.api-docs small {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
}

/* ================================
   LISTS
================================ */

.api-docs ul {
  margin-top: 10px;
  padding-left: 20px;
}

.api-docs ul li {
  margin-bottom: 6px;
}

/* ================================
   METHOD LABELS
================================ */

.api-docs .method {
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
}

.api-docs .get {
  background: #ecfeff;
  color: #0369a1;
}

.api-docs .post {
  background: #ecfdf5;
  color: #047857;
}

/* ================================
   STATUS COLORS
================================ */

.api-docs .status-success {
  color: #16a34a;
  font-weight: 600;
}

.api-docs .status-pending {
  color: #d97706;
  font-weight: 600;
}

.api-docs .status-error {
  color: #dc2626;
  font-weight: 600;
}

/* ================================
   MOBILE OPTIMIZATION
================================ */

@media (max-width: 768px) {
  .api-docs {
    font-size: 0.95rem;
  }

  .api-docs pre {
    font-size: 0.8rem;
  }

  .api-docs h5 {
    font-size: 1.05rem;
  }
}
