/* API Documentation — 3-column layout (giống payment gateway docs) */
.docs-body { background: var(--doc-center); color: #263238; min-height: 100vh; }
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr 400px;
  min-height: calc(100vh - 48px);
}
.docs-sidebar {
  background: var(--doc-sidebar);
  border-right: 1px solid var(--doc-border);
  overflow-y: auto;
  padding: 16px 0 40px;
}
.docs-sidebar .side-title {
  padding: 8px 20px 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #78909c;
}
.docs-sidebar a {
  display: block;
  padding: 8px 20px 8px 28px;
  font-size: 0.875rem;
  color: var(--doc-sidebar-text);
  text-decoration: none;
  border-left: 3px solid transparent;
}
.docs-sidebar a:hover { background: rgba(255,255,255,0.6); }
.docs-sidebar a.active {
  background: var(--doc-sidebar-active);
  border-left-color: var(--doc-link);
  font-weight: 600;
  color: #1565c0;
}
.docs-sidebar a.sub { padding-left: 40px; font-size: 0.82rem; }

.docs-content {
  background: #fff;
  padding: 28px 32px 60px;
  overflow-y: auto;
  border-right: 1px solid var(--doc-border);
}
.docs-content h1 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #263238;
}
.docs-content .endpoint-line {
  font-size: 0.9rem;
  color: #546e7a;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eceff1;
}
.docs-content .method {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 8px;
  color: #fff;
}
.docs-content .method.get { background: #43a047; }
.docs-content .method.post { background: #1e88e5; }
.docs-content .method.ws { background: #6a1b9a; }
.docs-content p.desc { font-size: 0.9rem; line-height: 1.6; color: #455a64; margin-bottom: 20px; }

.param-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin-bottom: 20px; }
.param-table th {
  text-align: left; padding: 10px 12px;
  background: #eceff1; border: 1px solid #cfd8dc;
  font-weight: 600; color: #37474f;
}
.param-table td {
  padding: 10px 12px; border: 1px solid #e0e0e0;
  vertical-align: top; line-height: 1.5;
}
.param-table td:first-child { font-family: Consolas, monospace; color: #1565c0; white-space: nowrap; }
.param-table .type { color: #78909c; font-size: 0.78rem; }
.param-table ul { margin: 4px 0 0 16px; padding: 0; }
.param-table li { margin-bottom: 2px; }

.notice {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 16px 0 24px;
  color: #5d4037;
}
.notice strong { color: #e65100; }

.docs-content h3 { font-size: 0.95rem; margin: 24px 0 12px; color: #37474f; }

.docs-code {
  background: var(--doc-code-bg);
  color: var(--doc-code-text);
  padding: 20px;
  overflow-y: auto;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.78rem;
  line-height: 1.55;
}
.docs-code .code-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #78909c;
  margin-bottom: 8px;
  margin-top: 20px;
}
.docs-code .code-label:first-child { margin-top: 0; }
.docs-code pre {
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
  color: #80cbc4;
}
.docs-code .url-sample { color: #ffcc80; margin-bottom: 16px; display: block; }
.docs-code .comment { color: #78909c; }
.docs-code .kw { color: #c792ea; }
.docs-code .str { color: #c3e88d; }

@media (max-width: 1100px) {
  .docs-layout { grid-template-columns: 220px 1fr; }
  .docs-code { display: none; }
}
