/* Minimalist Developer Docs Theme - Scoped Layout */
:root {
  --bg-main: #0a0a0a;
  --bg-card: #121212;
  --bg-input: #18181b;
  --border: #27272a;
  --text-main: #e4e4e7;
  --text-muted: #a1a1aa;
  --accent-emerald: #10b981;
  --accent-cyan: #06b6d4;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  font-size: 14px;
}

code, pre, textarea, input, select {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.doc-container {
  width: 100%;
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 0 1rem;
}

header {
  border-bottom: 1px solid var(--border);
  background-color: rgba(10, 10, 10, 0.9);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.header-inner {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  margin-left: 1.5rem;
  transition: color 0.15s;
}

nav a:hover { color: #fff; }

.doc-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

h1 { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
h2 { font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
p { color: var(--text-muted); font-size: 14px; }

.doc-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.doc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
}

.doc-btn {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.doc-btn:hover { background: #27272a; color: #fff; }

.doc-btn-emerald {
  background: #064e3b;
  border-color: #047857;
  color: #6ee7b7;
}

.doc-input-field {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  color: #fff;
  font-size: 12px;
  outline: none;
}

.doc-input-field:focus { border-color: #52525b; }

.doc-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .doc-grid-2 { grid-template-columns: 1fr; }
}

.editor-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.editor-header {
  background: var(--bg-main);
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
}

.tab-btn.active { color: #fff; font-weight: bold; text-decoration: underline; }

textarea {
  width: 100%;
  height: 220px;
  background: var(--bg-main);
  color: var(--text-main);
  border: none;
  padding: 0.75rem;
  font-size: 12px;
  resize: none;
  outline: none;
}

pre {
  background: var(--bg-main);
  padding: 0.75rem;
  font-size: 12px;
  overflow: auto;
  max-height: 220px;
}

.table-ref {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 12px;
}

.table-ref th, .table-ref td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.8rem;
  text-align: left;
}

.table-ref th { background: var(--bg-card); color: #fff; }

.text-emerald { color: var(--accent-emerald); }
.text-cyan { color: var(--accent-cyan); }
.text-amber { color: var(--accent-amber); }
.text-rose { color: var(--accent-rose); }
