/* Rabus Security Scanner – Docs Styles (recreated) */

/* CSS Variables */
:root {
  --bg: #0b1220;
  --panel: #0f172a;
  --card: #0c1528;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --border: #1f2937;
  --accent: #60a5fa;
  --brand: #34d399;
  --brand-ink: #052e2b;
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px;
  background:
    radial-gradient(1200px 80px at 20% 0%, rgba(96,165,250,.09), transparent 60%),
    radial-gradient(1200px 100px at 80% 0%, rgba(52,211,153,.08), transparent 60%),
    linear-gradient(180deg, rgba(15,23,42,.9), rgba(15,23,42,.72));
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand-img { height: 20px; width: auto; display: block; }
.brand-text { font-weight: 700; letter-spacing: .2px; font-size: 20px; }
.brand-badge {
  margin-left: 8px; padding: 3px 8px; font-size: 12px; border-radius: 999px;
  background: linear-gradient(180deg, var(--brand), #10b981);
  color: var(--brand-ink);
  box-shadow: 0 0 0 1px rgba(16,185,129,.25) inset, 0 1px 2px rgba(0,0,0,.25);
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.search { position: relative; display: flex; align-items: center; }
.search input {
  width: 280px; max-width: 50vw;
  padding: 10px 36px 10px 12px;
  border: 1px solid var(--border); border-radius: 10px;
  background: linear-gradient(180deg, #0c1529, #0a1326);
  color: var(--text);
  outline: none;
}
.search input::placeholder { color: var(--muted); }
.search .shortcut {
  position: absolute; right: 10px; user-select: none; pointer-events: none;
  font-size: 12px; color: var(--muted);
  border: 1px solid var(--border); border-bottom-width: 2px;
  padding: 2px 6px; border-radius: 6px; background: #0b182f;
}

/* Layout */
.layout { display: grid; grid-template-columns: 280px 1fr; height: calc(100% - 60px); }

.sidebar { border-right: 1px solid var(--border); background: var(--panel); padding: 16px 12px; overflow: auto; }
.sidebar nav ul { list-style: none; padding: 0; margin: 0; }
.sidebar a { color: var(--text); text-decoration: none; display: block; padding: 6px 8px; border-radius: 6px; }
.sidebar a:hover, .sidebar a.active { background: #0b1325; color: #eafcf4; box-shadow: inset 0 0 0 1px #1f2937; }
.sidebar ul ul { margin-left: 8px; border-left: 2px dashed var(--border); padding-left: 8px; }

.content { overflow: auto; padding: 24px 28px; }

/* Section Typography (centered text request) */
.doc-section { max-width: 900px; margin: 0 auto 42px; }
.doc-section h1, .doc-section h2, .doc-section h3 { scroll-margin-top: 80px; }
.doc-section h1 { font-size: 34px; margin-bottom: 10px; letter-spacing: -0.02em; text-align: center; }
.doc-section h2 { font-size: 24px; margin: 28px 0 12px; text-align: center; }
.doc-section h3 { font-size: 18px; margin: 20px 0 10px; color: #cbd5e1; text-align: center; }
.doc-section p { color: #d1d5db; line-height: 1.7; text-align: center; }
.doc-section ul, .doc-section ol { color: #d1d5db; text-align: left; display: inline-block; margin-left: auto; margin-right: auto; }

/* Components */
.callout { border: 1px solid var(--border); background: linear-gradient(180deg, #0d162a, #0b1326); border-radius: 14px; padding: 14px; margin: 14px auto; box-shadow: 0 6px 18px rgba(2,6,23,.25) inset; }
.callout .callout-title { font-weight: 700; margin-bottom: 6px; text-align: center; }
.callout.info { border-color: #1f8a70; }
.callout.warn { border-color: #f59e0b; }

.endpoint { border-left: 3px solid var(--accent); padding-left: 14px; margin: 18px auto; text-align: left; }

details { border: 1px solid var(--border); border-radius: 10px; background: linear-gradient(180deg, #0e1629, #0c1427); margin: 10px auto; overflow: hidden; max-width: 900px; }
details[open] { background: #0d1527; }
summary { cursor: pointer; padding: 10px 12px; font-weight: 600; color: #cbd5e1; }
details pre { margin: 0; border-top: 1px solid var(--border); border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; }

pre { position: relative; background: #0b1020; color: #e5e7eb; border: 1px solid var(--border); border-radius: 12px; padding: 12px; overflow: auto; box-shadow: 0 0 0 1px rgba(2,6,23,.3) inset; max-width: 900px; margin: 10px auto; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); color: var(--muted); padding: 24px 0; margin-top: 40px; text-align: center; }

/* Responsive */
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: relative; width: auto; border-right: none; border-bottom: 1px solid var(--border); }
  .content { padding: 18px; }
  .search input { width: 100%; max-width: none; }
}


