/* ==========================================================================
   MODERN API DOC TEMPLATE
   Tailwind-enhanced, dark sidebar, clean content
   ========================================================================== */

/* ------------------------------------------------------------------------------------------
 * Base / Reset overrides
 * ------------------------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

body {
  color: #1e293b;
  background-color: #f8fafc;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p {
  color: #475569;
  line-height: 1.7;
}

a {
  color: #6366f1;
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: #4f46e5; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
}

h1 { font-size: 2.25rem; letter-spacing: -0.025em; }
h2 { font-size: 1.75rem; letter-spacing: -0.02em; }
h3 { font-size: 2.25rem; }
h4 { font-size: 1.05rem; }

/* ------------------------------------------------------------------------------------------
 * App Layout
 * ------------------------------------------------------------------------------------------ */
.app-layout {
  display: flex;
  min-height: 100vh;
}

#content {
  flex: 1;
  margin-left: 280px;
  padding: 40px 60px;
  max-width: 100%;
  min-width: 0;
}

#project { display: none; }

/* ------------------------------------------------------------------------------------------
 * Sections & Articles
 * ------------------------------------------------------------------------------------------ */
section {
  border-top: 1px solid #e2e8f0;
  padding: 36px 0;
}

section h2 {
  margin: 0 0 24px 0;
  padding: 0;
  color: #0f172a;
  position: relative;
}
section h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 2px;
  margin-top: 8px;
}

article {
  padding: 20px 0 36px 0;
}

article h1, article h2, article h3, article h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

article h1 {
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.4;
}
article h2, article h3 { margin: 0 0 12px 0; }
article h4 { margin: 0 0 8px 0; }

td p { margin: 0 0 2px 10px; }

/* ------------------------------------------------------------------------------------------
 * Endpoint rows (method-colored cards)
 * ------------------------------------------------------------------------------------------ */
.row {
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
}

.row .no-float {
  display: table-cell;
  float: none;
  width: 100%;
}

.pre-get { background: rgba(59,130,246,.04); border: 1px solid rgba(59,130,246,.15); }
.pre-post { background: rgba(34,197,94,.04); border: 1px solid rgba(34,197,94,.15); }
.pre-put { background: rgba(245,158,11,.04); border: 1px solid rgba(245,158,11,.15); }
.pre-patch { background: rgba(168,85,247,.04); border: 1px solid rgba(168,85,247,.15); }
.pre-delete { background: rgba(239,68,68,.04); border: 1px solid rgba(239,68,68,.15); }
.pre-head { background: rgba(236,72,153,.04); border: 1px solid rgba(236,72,153,.15); }
.pre-options { background: rgba(20,184,166,.04); border: 1px solid rgba(20,184,166,.15); }

/* ------------------------------------------------------------------------------------------
 * Tables
 * ------------------------------------------------------------------------------------------ */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 0 0 20px 0;
}

th {
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 10px 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  vertical-align: top;
  padding: 10px 12px;
  font-size: 14px;
  border-top: 1px solid #f1f5f9;
}

td.code {
  font-size: 14px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Source Code Pro', monospace;
  font-weight: 500;
  color: #6366f1;
}

.table > thead > tr > th { border-bottom: 2px solid #e2e8f0; }
.table > tbody > tr > td,
.table > tbody > tr > th,
.table > tfoot > tr > td { border-top: 1px solid #f1f5f9; }
.table > tbody > tr > td > p > code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  background: #fef3c7;
  color: #92400e;
  padding: 1px 6px;
  border-radius: 4px;
}
.table-hover > tbody > tr:hover { background-color: rgba(99,102,241,.03); }

.headers {
  margin: 0;
  padding: 8px 12px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 8px;
  font-size: 0.95rem;
  color: #334155;
}

.label-optional {
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  font-style: italic;
}

/* ------------------------------------------------------------------------------------------
 * Pre / Code — Dracula-inspired
 * ------------------------------------------------------------------------------------------ */
pre {
  font-family: 'JetBrains Mono', 'Source Code Pro', monospace;
  font-size: 14px;
  font-weight: 400;
  padding: 16px 20px;
  border-radius: 10px;
  position: relative;
  margin: 12px 0 20px 0;
  border: none;
  background: #1e1e2e;
  color: #cdd6f4;
  overflow-x: auto;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
}

code.language-text { word-wrap: break-word; }
pre.language-json { overflow: auto; }

pre code {
  display: block;
  font-family: 'JetBrains Mono', 'Source Code Pro', monospace;
  font-size: 14px;
  font-weight: 400;
  word-wrap: normal;
  white-space: pre;
  color: #cdd6f4;
}

pre code.sample-request-response-json {
  white-space: pre-wrap;
  max-height: 500px;
  overflow: auto;
}

/* Full endpoint pre */
.full-pre {
  margin: 0;
  padding: 14px 20px;
  border-radius: 10px;
  background: #1e1e2e;
  display: flex;
  align-items: center;
  gap: 14px;
}

.full-pre .typ {
  font-size: 11px;
  font-weight: 700;
  min-width: 60px;
  padding: 5px 10px;
  text-align: center;
  border-radius: 6px;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  color: #fff;
  letter-spacing: 0.05em;
}
.full-pre .url {
  font-size: 14px;
  font-weight: 500;
  color: #cdd6f4;
  word-break: break-all;
}

/* Method type labels (in pre) */
pre .typ-get { background: linear-gradient(135deg, #3b82f6, #2563eb); }
pre .typ-post { background: linear-gradient(135deg, #22c55e, #16a34a); }
pre .typ-put { background: linear-gradient(135deg, #f59e0b, #d97706); }
pre .typ-patch { background: linear-gradient(135deg, #a855f7, #9333ea); }
pre .typ-delete { background: linear-gradient(135deg, #ef4444, #dc2626); }
pre .typ-head { background: linear-gradient(135deg, #ec4899, #db2777); }
pre .typ-options { background: linear-gradient(135deg, #14b8a6, #0d9488); }

/* Language labels */
pre.language-html { margin: 20px 0; }
pre.language-html:before {
  content: attr(data-type);
  position: absolute;
  top: -28px;
  left: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 12px;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.05em;
}
pre.language-html[data-type="get"]:before { background: linear-gradient(135deg, #3b82f6, #2563eb); }
pre.language-html[data-type="put"]:before { background: linear-gradient(135deg, #f59e0b, #d97706); }
pre.language-html[data-type="post"]:before { background: linear-gradient(135deg, #22c55e, #16a34a); }
pre.language-html[data-type="delete"]:before { background: linear-gradient(135deg, #ef4444, #dc2626); }

pre.language-api .str { color: #a6e3a1; }
pre.language-api .pln, pre.language-api .pun { color: #a6e3a1; }

/* ------------------------------------------------------------------------------------------
 * Dark example panel
 * ------------------------------------------------------------------------------------------ */
.section-example {
  padding: 0;
  height: 100%;
  background: #1e1e2e;
  border-radius: 0 12px 12px 0;
}

/* ------------------------------------------------------------------------------------------
 * Sidebar
 * ------------------------------------------------------------------------------------------ */
#sidenav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background: linear-gradient(180deg, #0f172a 50%, #163300 100%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#scrollingNav {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

/* Sidebar brand / logo */
.sidenav-brand {
  padding: 28px 24px 12px;
  flex-shrink: 0;
}
.sidenav-logo {
  text-align: center;
}
.sidenav-logo img {
  display: block;
  margin: 0 auto 10px;
  width: 56px;
  filter: drop-shadow(0 0 12px rgba(99,102,241,.3));
}
.sidenav-logo h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 2.25rem;
  color: #f1f5f9;
  letter-spacing: -0.02em;
  margin: 0 0 4px 0;
}
.sidenav-credit {
  display: block;
  font-size: 12px;
  color: #64748b;
  padding-bottom: 4px;
}
.sidenav-credit a {
  color: #818cf8;
  font-weight: 500;
}
.sidenav-credit a:hover { color: #a5b4fc; }

/* Sidebar search */
.sidenav-search-wrap {
  padding: 0 16px 12px;
  flex-shrink: 0;
}
.sidenav-search {
  position: relative;
}
.sidenav-search .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}
.sidenav-search .search {
  width: 100%;
  height: 36px;
  padding: 0 36px 0 36px;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #1e293b;
  color: #e2e8f0;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  transition: all 0.2s ease;
  box-shadow: none;
}
.sidenav-search .search:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
  background: #0f172a;
}
.sidenav-search .search::placeholder { color: #475569; }
.search-reset {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #475569;
  font-size: 14px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s;
}
.search-reset:hover { color: #e2e8f0; background: #334155; }

/* Sidebar nav list */
.sidenav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 0 24px;
  margin: 0;
  list-style: none;
  border-top: 1px solid #1e293b;
}
.sidenav::-webkit-scrollbar { width: 4px; }
.sidenav::-webkit-scrollbar-track { background: transparent; }
.sidenav::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
.sidenav::-webkit-scrollbar-thumb:hover { background: #475569; }

.sidenav > li > a {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 20px;
  border: none;
  border-left: 3px solid transparent;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 13.5px;
  color: #94a3b8;
  transition: all 0.15s ease;
  text-decoration: none;
}
.sidenav > li > a:hover {
  background: rgba(99,102,241,.08);
  color: #e2e8f0;
  border-left-color: rgba(99,102,241,.3);
}
.sidenav > .active > a,
.sidenav > .active > a:hover {
  background: rgba(99,102,241,.12);
  color: #f1f5f9;
  border-left-color: #6366f1;
  font-weight: 500;
}

/* Nav headers (group titles) */
.sidenav > li.nav-header > a {
  padding: 12px 20px 6px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  border: none;
  background: transparent;
}
.sidenav > li.nav-header > a:hover {
  color: #94a3b8;
  background: transparent;
}

.nav-list-item { padding-top: 0; }

/* Method badges in nav */
.nav-list-item .typ-name {
  padding: 2px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  min-width: 34px;
  text-align: right;
  margin-right: 0;
  text-transform: uppercase;
}
.nav-list-item .typ-name.typ-get { color: #60a5fa; }
.nav-list-item .typ-name.typ-post { color: #4ade80; }
.nav-list-item .typ-name.typ-put { color: #fbbf24; }
.nav-list-item .typ-name.typ-patch { color: #c084fc; }
.nav-list-item .typ-name.typ-delete { color: #f87171; }
.nav-list-item .typ-name.typ-head { color: #f472b6; }
.nav-list-item .typ-name.typ-options { color: #2dd4bf; }

/* Modifications / new markers */
.sidenav > li.has-modifications a { border-right: 3px solid #4ade80; }
.sidenav > li.is-new a { border-left-color: #6366f1; }

/* ------------------------------------------------------------------------------------------
 * Tabs (dark code examples)
 * ------------------------------------------------------------------------------------------ */
ul.nav-tabs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  border: none;
  border-radius: 12px 12px 0 0;
}
.nav-tabs > li > a {
  display: block;
  padding: 10px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #6c7086;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s;
}
.nav > li > a { border: none; text-decoration: none; }
.nav-tabs > li > a:hover,
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:focus,
.nav-tabs > li.active > a:hover {
  background: #1e1e2e;
  color: #cdd6f4;
  border: none;
}

/* ------------------------------------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------------------------------------ */
.btn {
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border: none;
  color: #fff;
  padding: 10px 28px;
  font-size: 14px;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99,102,241,.3);
}

button.version.btn.dropdown-toggle {
  display: none;
}
button#version {
  padding: 4px 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 15px;
  color: #334155;
}

.json-schema {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #6366f1;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  pointer-events: none;
  cursor: default;
  opacity: 0.7;
}

/* ------------------------------------------------------------------------------------------
 * Forms (sample request)
 * ------------------------------------------------------------------------------------------ */
.form-control {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #334155;
  background: #fff;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.form-control:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}
.input-group-addon {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}

/* ------------------------------------------------------------------------------------------
 * Labels & Permissions
 * ------------------------------------------------------------------------------------------ */
.label {
  font-size: 12px !important;
  font-weight: 500;
  border-radius: 6px;
  padding: 3px 8px;
  box-shadow: none;
  border: none;
}
.label-info {
  background: linear-gradient(135deg, #6366f1, #818cf8);
}
.label-permission {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
}

.open-left { right: 0; left: auto; }

/* ------------------------------------------------------------------------------------------
 * Compare
 * ------------------------------------------------------------------------------------------ */
ins {
  background: #dcfce7;
  text-decoration: none;
  color: #166534;
  padding: 1px 4px;
  border-radius: 3px;
}
del {
  background: #fee2e2;
  color: #991b1b;
  padding: 1px 4px;
  border-radius: 3px;
}
.label-ins { background-color: #4ade80; }
.label-del { background-color: #f87171; text-decoration: line-through; }
pre.ins { background-color: #166534; }
pre.del { background-color: #991b1b; text-decoration: line-through; }
table.ins th, table.ins td { background-color: #dcfce7; }
table.del th, table.del td { background-color: #fee2e2; text-decoration: line-through; }
tr.ins td { background-color: #dcfce7; }
tr.del td { background-color: #fee2e2; text-decoration: line-through; }

/* ------------------------------------------------------------------------------------------
 * Generator
 * ------------------------------------------------------------------------------------------ */
#generator .content {
  color: #94a3b8;
  border-top: 1px solid #e2e8f0;
  padding: 16px 0;
  font-size: 13px;
}

/* ------------------------------------------------------------------------------------------
 * Loader
 * ------------------------------------------------------------------------------------------ */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f8fafc;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modern-spinner {
  text-align: center;
}
.spinner-ring {
  width: 48px;
  height: 48px;
  border: 3px solid #e2e8f0;
  border-top-color: #6366f1;
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.8s ease-in-out infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.modern-spinner p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #94a3b8;
  font-weight: 500;
}

/* ------------------------------------------------------------------------------------------
 * Modal
 * ------------------------------------------------------------------------------------------ */
.modal {
  animation-duration: 0.3s;
  text-align: center;
  padding: 0 !important;
}
.modal:before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle;
  margin-right: -4px;
}
.modal-dialog {
  display: inline-block;
  text-align: left;
  vertical-align: middle;
}
.modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
  overflow: hidden;
}
.modal-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 24px;
}
.modal-body {
  padding: 0;
}
.modal-footer {
  border-top: 1px solid #e2e8f0;
  padding: 12px 24px;
}
.modal-footer button {
  border: none;
  background: #f1f5f9;
  color: #475569;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.15s;
}
.modal-footer button:hover { background: #e2e8f0; }
.modal-clipboard {
  position: absolute;
  top: 14px;
  right: 50px;
  font-size: 20px;
  cursor: pointer;
  color: #94a3b8;
  transition: color 0.15s;
}
.modal-clipboard:hover { color: #6366f1; }

#json-pre {
  background-color: #1e1e2e;
  padding: 8px 16px;
  max-height: 70vh;
  overflow: auto;
}

/* ------------------------------------------------------------------------------------------
 * Mobile nav toggle
 * ------------------------------------------------------------------------------------------ */
.nav-toggle-btn {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1001;
  padding: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1);
  cursor: pointer;
  color: #334155;
  transition: all 0.2s;
  line-height: 1;
}
.nav-toggle-btn:hover {
  background: #f1f5f9;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

/* Overlay */
.sidenav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15,23,42,.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.sidenav-overlay.is-open { opacity: 1; }

/* ------------------------------------------------------------------------------------------
 * Scrollbar (content)
 * ------------------------------------------------------------------------------------------ */
body::-webkit-scrollbar { width: 8px; }
body::-webkit-scrollbar-track { background: #f8fafc; }
body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
body::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.modal-body::-webkit-scrollbar { width: 6px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }
.modal-body::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }

/* ------------------------------------------------------------------------------------------
 * Print
 * ------------------------------------------------------------------------------------------ */
@media print {
  #sidenav, .nav-toggle-btn, .sidenav-overlay,
  #version, #versions, section .version, section .versions {
    display: none !important;
  }
  #content { margin-left: 0; padding: 20px; }
  a { text-decoration: none; color: inherit; }
  a:after { content: " [" attr(href) "] "; }
  pre { border: 1px solid #e2e8f0; }
  .hide-print { display: none; }
}

/* ------------------------------------------------------------------------------------------
 * Responsive — Tablet (<=991px)
 * ------------------------------------------------------------------------------------------ */
@media (max-width: 991px) {
  .nav-toggle-btn { display: block; }

  #sidenav {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    z-index: 1000;
    width: 300px;
  }
  #sidenav.is-open {
    transform: translateX(0);
    box-shadow: 8px 0 30px rgba(0,0,0,.2);
  }

  .sidenav-overlay.is-open { display: block; }

  #content {
    margin-left: 0;
    padding: 24px 20px;
    padding-top: 68px;
  }

  .row .col-md-7.no-float {
    display: block;
    width: 100%;
    float: none;
  }
  .row .col-md-4.section-example {
    display: block;
    width: 100%;
    float: none;
    margin-top: 16px;
    border-radius: 12px;
  }

  .table-responsive-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table-responsive-wrapper .table { min-width: 500px; }
}

/* ------------------------------------------------------------------------------------------
 * Responsive — Phone (<=767px)
 * ------------------------------------------------------------------------------------------ */
@media (max-width: 767px) {
  #content {
    padding: 20px 16px;
    padding-top: 64px;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.25rem; }
  article h1 { font-size: 1.1rem; }

  pre { font-size: 13px; padding: 12px 14px; border-radius: 8px; }

  .modal-dialog { margin: 12px; max-width: calc(100% - 24px); }
  #json-pre { max-height: 60vh; }

  .full-pre { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* ------------------------------------------------------------------------------------------
 * Responsive — Desktop (>=992px)
 * ------------------------------------------------------------------------------------------ */
@media (min-width: 992px) {
  .sidenav-overlay { display: none !important; }
  #sidenav { transform: none !important; }
}

/* ------------------------------------------------------------------------------------------
 * Animations
 * ------------------------------------------------------------------------------------------ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fadeIn { animation: fadeIn 0.3s ease; }

section {
  animation: fadeIn 0.4s ease;
}
