/* ============================================================
 * Shared styles for the inspector tool pages
 * (oidcInspector, dpop, tokenExchange)
 * ============================================================ */

/* ── JSON syntax highlighting ─────────────────────── */
.json-block {
  font-family: "Fira Code", "Cascadia Code", "SF Mono", Consolas, monospace;
  font-size: .82rem; line-height: 1.7;
  white-space: pre-wrap; word-break: break-all;
  background: #1e2235; color: #e2e8f0;
  padding: 1rem; border-radius: 6px;
}
.j-key  { color: #93c5fd; }
.j-str  { color: #86efac; }
.j-num  { color: #fca5a5; }
.j-bool { color: #c4b5fd; }
.j-null { color: #8892a4; }
.j-user { color: #fbbf24; }

/* ── JWT colour bands ─────────────────────────────── */
.jwt-h  { color: #f87171; font-family: monospace; font-size:.75rem; word-break:break-all; }
.jwt-p  { color: #86efac; font-family: monospace; font-size:.75rem; word-break:break-all; }
.jwt-s  { color: #fbbf24; font-family: monospace; font-size:.75rem; word-break:break-all; }

/* ── Spinner ──────────────────────────────────────── */
.oi-spinner {
  display: inline-block; width:2rem; height:2rem;
  border: 3px solid #dee2e6; border-top-color: #0d6efd;
  border-radius: 50%; animation: oi-spin .75s linear infinite;
}
@keyframes oi-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .oi-spinner { animation-duration: 1.5s; }
}

/* ── Tabs (shared system component) ───────────────── */
/* The world's one tab voice: quiet inactive, dark console-navy active. */
.fd-tabs { gap: .25rem; border-bottom: 2px solid #e3e6ea; }
.fd-tab {
  border: none; background: none; padding: .55rem 1.1rem;
  font-size: .9rem; font-weight: 600; color: #6c757d;
  border-radius: 8px 8px 0 0; margin-bottom: -2px;
  border-bottom: 2px solid transparent;
}
.fd-tab:hover { color: #212529; }
.fd-tab:focus-visible { outline: 2px solid #0d6efd; outline-offset: -2px; }
.fd-tab[aria-selected="true"] { background: #1e2235; color: #e2e8f0; border-bottom-color: #1e2235; }

/* ── Page head (shared page-opening pattern) ──────── */
.fd-page-head h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 .35rem; color: #212529; }
.fd-page-sub { color: #6c757d; font-size: .95rem; max-width: 68ch; margin-bottom: 0; }
