/* ==========================================================================
   Cronode API Client - Comprehensive Self-Contained Stylesheet
   Pure CSS3 + Semantic Theme with 0 external CDN dependencies
   ========================================================================== */

/* 1. Box Sizing & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary: #020617;     /* slate-950 */
  --bg-card: #0f172a;        /* slate-900 */
  --bg-card-muted: #1e293b;  /* slate-800 */
  --bg-input: #020617;       /* slate-950 */
  --border: #1e293b;         /* slate-800 */
  --border-light: #334155;   /* slate-700 */
  
  --text-main: #f8fafc;      /* slate-100 */
  --text-muted: #94a3b8;     /* slate-400 */
  --text-subtle: #64748b;    /* slate-500 */
  
  --sky-400: #38bdf8;
  --sky-500: #0284c7;
  --sky-950: #082f49;
  
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  
  --amber-400: #fbbf24;
  --rose-400: #f87171;
  --rose-600: #e11d48;
  --purple-400: #c084fc;
  --indigo-600: #4f46e5;
}

/* 2. Base Elements */
html, body {
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
}

/* Selections */
::selection {
  background-color: #38bdf8;
  color: #020617;
}

/* SVG Icon safety rules: prevents gigantic SVGs */
svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  max-width: 100%;
}

/* Critical display utilities */
.hidden {
  display: none !important;
}

.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* 3. Layout: Flexbox & Grid */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-baseline { align-items: baseline; }

.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

/* 4. Sizing & Dimensions */
.w-full { width: 100%; }
.h-full { height: 100%; }

.w-1\.5 { width: 0.375rem; }
.h-1\.5 { height: 0.375rem; }
.w-2 { width: 0.5rem; }
.h-2 { height: 0.5rem; }
.w-2\.5 { width: 0.625rem; }
.h-2\.5 { height: 0.625rem; }
.w-3 { width: 0.75rem; }
.h-3 { height: 0.75rem; }
.w-3\.5 { width: 0.875rem; }
.h-3\.5 { height: 0.875rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-9 { width: 2.25rem; }
.h-9 { height: 2.25rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.w-32 { width: 8rem; }
.w-1\/3 { width: 33.333333%; }

.max-w-\[1700px\] { max-width: 1700px; }
.max-w-md { max-width: 28rem; }
.max-w-sm { max-width: 24rem; }
.min-w-0 { min-width: 0px; }

.min-h-screen { min-height: 100vh; }
.min-h-\[190px\] { min-height: 190px; }
.min-h-\[620px\] { min-height: 620px; }
.max-h-\[260px\] { max-height: 260px; }
.max-h-\[700px\] { max-height: 700px; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* 5. Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.top-0 { top: 0px; }
.inset-0 { inset: 0px; }
.inset-y-0 { top: 0px; bottom: 0px; }
.left-0 { left: 0px; }
.right-0 { right: 0px; }

.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

.transform { transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0)); }
.translate-x-full { transform: translateX(100%); }

/* 6. Spacing (Padding & Margin) */
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-3\.5 { padding: 0.875rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }

.py-0\.2 { padding-top: 0.05rem; padding-bottom: 0.05rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pl-3\.5 { padding-left: 0.875rem; }
.pl-10 { padding-left: 2.5rem; }
.pr-1 { padding-right: 0.25rem; }
.pr-3 { padding-right: 0.75rem; }

.m-4 { margin: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 0.25rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.mt-2 { margin-top: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.ml-2 { margin-left: 0.5rem; }

/* 7. Typography */
.text-\[10px\] { font-size: 10px; line-height: 14px; }
.text-\[11px\] { font-size: 11px; line-height: 15px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }

.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.leading-relaxed { line-height: 1.625; }
.text-center { text-align: center; }
.text-left { text-align: left; }

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.break-all { word-break: break-all; }
.break-words { overflow-wrap: break-word; }
.whitespace-pre-wrap { white-space: pre-wrap; }
.select-none { user-select: none; }
.select-all { user-select: all; }

/* 8. Colors: Backgrounds, Text & Borders */
.bg-slate-950 { background-color: #020617; }
.bg-slate-950\/40 { background-color: rgba(2, 6, 23, 0.4); }
.bg-slate-950\/50 { background-color: rgba(2, 6, 23, 0.5); }
.bg-slate-950\/60 { background-color: rgba(2, 6, 23, 0.6); }
.bg-slate-950\/70 { background-color: rgba(2, 6, 23, 0.7); }
.bg-slate-950\/80 { background-color: rgba(2, 6, 23, 0.8); }

.bg-slate-900 { background-color: #0f172a; }
.bg-slate-900\/60 { background-color: rgba(15, 23, 42, 0.6); }
.bg-slate-900\/70 { background-color: rgba(15, 23, 42, 0.7); }
.bg-slate-900\/80 { background-color: rgba(15, 23, 42, 0.8); }
.bg-slate-900\/90 { background-color: rgba(15, 23, 42, 0.9); }
.bg-slate-900\/95 { background-color: rgba(15, 23, 42, 0.95); }

.bg-slate-800 { background-color: #1e293b; }
.bg-slate-800\/30 { background-color: rgba(30, 41, 59, 0.3); }
.bg-slate-800\/80 { background-color: rgba(30, 41, 59, 0.8); }
.bg-slate-800\/90 { background-color: rgba(30, 41, 59, 0.9); }

.bg-slate-700 { background-color: #334155; }
.bg-slate-600 { background-color: #475569; }
.bg-black\/40 { background-color: rgba(0, 0, 0, 0.4); }
.bg-black\/60 { background-color: rgba(0, 0, 0, 0.6); }

.bg-sky-500 { background-color: #0ea5e9; }
.bg-sky-950 { background-color: #082f49; }

.bg-emerald-400 { background-color: #34d399; }
.bg-emerald-500\/20 { background-color: rgba(16, 185, 129, 0.2); }

.bg-rose-950 { background-color: #4c0519; }
.bg-rose-950\/40 { background-color: rgba(76, 5, 25, 0.4); }
.bg-rose-950\/30 { background-color: rgba(76, 5, 25, 0.3); }
.bg-rose-900\/50 { background-color: rgba(136, 19, 55, 0.5); }
.bg-rose-600 { background-color: #e11d48; }
.bg-rose-600\/20 { background-color: rgba(225, 29, 72, 0.2); }
.bg-rose-500\/20 { background-color: rgba(244, 63, 94, 0.2); }

.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, #38bdf8, #4f46e5);
}
.bg-gradient-to-r {
  background-image: linear-gradient(to right, #38bdf8, #4f46e5);
}

/* Text Colors */
.text-white { color: #ffffff; }
.text-slate-100 { color: #f1f5f9; }
.text-slate-200 { color: #e2e8f0; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }

.text-sky-300 { color: #7dd3fc; }
.text-sky-400 { color: #38bdf8; }
.text-sky-500 { color: #0ea5e9; }

.text-emerald-300 { color: #6ee7b7; }
.text-emerald-400 { color: #34d399; }

.text-amber-300 { color: #fcd34d; }
.text-amber-400 { color: #fbbf24; }
.text-amber-400\/90 { color: rgba(251, 191, 36, 0.9); }

.text-purple-400 { color: #c084fc; }
.text-indigo-400 { color: #818cf8; }

.text-rose-200 { color: #fecdd3; }
.text-rose-200\/90 { color: rgba(254, 205, 211, 0.9); }
.text-rose-300 { color: #fda4af; }
.text-rose-400 { color: #fb7185; }

/* Placeholders */
::placeholder {
  color: #64748b;
  opacity: 1;
}
.placeholder-slate-500::placeholder { color: #64748b; }
.placeholder-slate-600::placeholder { color: #475569; }

/* Borders */
.border { border-width: 1px; border-style: solid; border-color: #1e293b; }
.border-4 { border-width: 4px; border-style: solid; border-color: #1e293b; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #1e293b; }
.border-b-2 { border-bottom-width: 2px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; border-top-color: #1e293b; }
.border-l { border-left-width: 1px; border-left-style: solid; border-left-color: #1e293b; }

.border-t-sky-400 { border-top-color: #38bdf8 !important; }
.border-slate-800 { border-color: #1e293b; }
.border-slate-800\/60 { border-color: rgba(30, 41, 59, 0.6); }
.border-slate-800\/80 { border-color: rgba(30, 41, 59, 0.8); }
.border-slate-800\/90 { border-color: rgba(30, 41, 59, 0.9); }
.border-slate-700 { border-color: #334155; }
.border-slate-700\/60 { border-color: rgba(51, 65, 85, 0.6); }
.border-slate-700\/90 { border-color: rgba(51, 65, 85, 0.9); }
.border-sky-400 { border-color: #38bdf8; }
.border-sky-800 { border-color: #075985; }
.border-rose-800\/80 { border-color: rgba(159, 18, 57, 0.8); }
.border-rose-900\/40 { border-color: rgba(136, 19, 55, 0.4); }
.border-rose-500\/30 { border-color: rgba(244, 63, 94, 0.3); }
.border-rose-500\/50 { border-color: rgba(244, 63, 94, 0.5); }
.border-emerald-500\/30 { border-color: rgba(16, 185, 129, 0.3); }
.border-emerald-500\/50 { border-color: rgba(16, 185, 129, 0.5); }
.border-amber-500\/50 { border-color: rgba(245, 158, 11, 0.5); }
.border-transparent { border-color: transparent; }
.border-collapse { border-collapse: collapse; }

.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-t-lg { border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; }
.rounded-t-xl { border-top-left-radius: 0.75rem; border-top-right-radius: 0.75rem; }

/* 9. Interactions & States */
.cursor-pointer { cursor: pointer; }
.disabled\:opacity-50:disabled { opacity: 0.5; }
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }
.pointer-events-none { pointer-events: none; }
.resize-none { resize: none; }
.appearance-none { -webkit-appearance: none; appearance: none; }

.active\:scale-\[0\.98\]:active { transform: scale(0.98); }

.hover\:bg-slate-800:hover { background-color: #1e293b; }
.hover\:bg-slate-800\/30:hover { background-color: rgba(30, 41, 59, 0.3); }
.hover\:bg-slate-700:hover { background-color: #334155; }
.hover\:bg-rose-500:hover { background-color: #f43f5e; }
.hover\:bg-rose-600\/30:hover { background-color: rgba(225, 29, 72, 0.3); }
.hover\:bg-rose-950\/30:hover { background-color: rgba(76, 5, 25, 0.3); }

.hover\:text-white:hover { color: #ffffff; }
.hover\:text-slate-200:hover { color: #e2e8f0; }
.hover\:text-sky-300:hover { color: #7dd3fc; }
.hover\:text-indigo-300:hover { color: #a5b4fc; }
.hover\:text-rose-300:hover { color: #fda4af; }
.hover\:text-rose-400:hover { color: #fb7185; }
.hover\:underline:hover { text-decoration: underline; }

.hover\:from-sky-400:hover {
  background-image: linear-gradient(to right, #38bdf8, #4f46e5);
}
.hover\:to-indigo-500:hover {
  background-image: linear-gradient(to right, #38bdf8, #6366f1);
}

.group:hover .group-hover\:text-sky-400 { color: #38bdf8; }

.focus\:outline-none:focus { outline: none; }
.focus\:ring-0:focus { box-shadow: none; }
.focus\:ring-1:focus { box-shadow: 0 0 0 1px #38bdf8; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px #38bdf8; }
.focus\:ring-sky-500:focus { box-shadow: 0 0 0 2px #38bdf8; }
.focus\:border-sky-500:focus { border-color: #38bdf8; }

.transition-all { transition-property: all; transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-duration: 150ms; }
.transition-transform { transition-property: transform; }
.transition-opacity { transition-property: opacity; }
.duration-150 { transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

/* Shadows */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.3); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6); }
.shadow-inner { box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06); }
.shadow-black\/40 { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4); }
.shadow-sky-500\/20 { box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.2); }
.shadow-sky-500\/25 { box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.25); }

.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-80 { opacity: 0.8; }

.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

/* 10. Responsive Media Queries */
@media (min-width: 640px) {
  .sm\:block { display: block !important; }
  .sm\:inline { display: inline !important; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-start { align-items: flex-start; }
  .sm\:gap-2 { gap: 0.5rem; }
  .sm\:gap-3 { gap: 0.75rem; }
  .sm\:p-4 { padding: 1rem; }
  .sm\:p-5 { padding: 1.25rem; }
  .sm\:w-28 { width: 7rem; }
  .sm\:w-36 { width: 9rem; }
  .sm\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .sm\:col-span-5 { grid-column: span 5 / span 5; }
  .sm\:col-span-7 { grid-column: span 7 / span 7; }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .lg\:p-6 { padding: 1.5rem; }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
}

/* 11. Method Badges */
.method-badge-get {
  background-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.method-badge-post {
  background-color: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.method-badge-put {
  background-color: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.method-badge-patch {
  background-color: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.method-badge-delete {
  background-color: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Status Code Badges */
.status-2xx {
  background-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.status-3xx {
  background-color: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.status-4xx {
  background-color: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.status-5xx {
  background-color: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.status-error {
  background-color: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.5);
}

/* Animations */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes pulse-subtle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-pulse {
  animation: pulse-subtle 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-pulse-subtle {
  animation: pulse-subtle 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 9999;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: toast-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Code Display Block */
pre.code-block {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.5;
  tab-size: 2;
}

/* Card Transitions */
.api-card {
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.api-card:hover {
  transform: translateY(-2px);
  border-color: #475569;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   12. TEMA MODO CLARO (Light Mode)
   ========================================================================== */

html.light {
  --bg-primary: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-muted: #f1f5f9;
  --bg-input: #ffffff;
  --border: #e2e8f0;
  --border-light: #cbd5e1;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
}

html.light body {
  background-color: #f8fafc;
  color: #0f172a;
}

/* Fondos y Superficies en Modo Claro */
html.light .bg-slate-950 { background-color: #f8fafc; }
html.light .bg-slate-950\/40 { background-color: rgba(248, 250, 252, 0.6); }
html.light .bg-slate-950\/50 { background-color: rgba(248, 250, 252, 0.75); }
html.light .bg-slate-950\/60 { background-color: rgba(241, 245, 249, 0.85); }
html.light .bg-slate-950\/70 { background-color: rgba(241, 245, 249, 0.95); }
html.light .bg-slate-950\/80 { background-color: #f1f5f9; }

html.light .bg-slate-900 { background-color: #ffffff; }
html.light .bg-slate-900\/60 { background-color: rgba(255, 255, 255, 0.85); }
html.light .bg-slate-900\/70 { background-color: rgba(255, 255, 255, 0.9); }
html.light .bg-slate-900\/80 { background-color: rgba(255, 255, 255, 0.95); }
html.light .bg-slate-900\/90 { background-color: #ffffff; }
html.light .bg-slate-900\/95 { background-color: #ffffff; }

html.light .bg-slate-800 { background-color: #f1f5f9; }
html.light .bg-slate-800\/30 { background-color: rgba(241, 245, 249, 0.6); }
html.light .bg-slate-800\/80 { background-color: #f1f5f9; }
html.light .bg-slate-800\/90 { background-color: #f1f5f9; }
html.light .bg-slate-700 { background-color: #e2e8f0; }

/* Textos en Modo Claro */
html.light .text-white { color: #0f172a; }
html.light .text-slate-100 { color: #0f172a; }
html.light .text-slate-200 { color: #1e293b; }
html.light .text-slate-300 { color: #334155; }
html.light .text-slate-400 { color: #64748b; }
html.light .text-slate-500 { color: #94a3b8; }

/* Bordes en Modo Claro */
html.light .border { border-color: #e2e8f0; }
html.light .border-b { border-bottom-color: #e2e8f0; }
html.light .border-t { border-top-color: #e2e8f0; }
html.light .border-l { border-left-color: #e2e8f0; }
html.light .border-slate-800 { border-color: #e2e8f0; }
html.light .border-slate-800\/60 { border-color: rgba(226, 232, 240, 0.6); }
html.light .border-slate-800\/80 { border-color: rgba(226, 232, 240, 0.8); }
html.light .border-slate-800\/90 { border-color: #e2e8f0; }
html.light .border-slate-700 { border-color: #cbd5e1; }
html.light .border-slate-700\/60 { border-color: rgba(203, 213, 225, 0.6); }
html.light .border-slate-700\/90 { border-color: #cbd5e1; }

/* Inputs, Textareas y Selects en Modo Claro */
html.light input[type="text"],
html.light textarea,
html.light select {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

html.light input[type="text"]::placeholder,
html.light textarea::placeholder {
  color: #94a3b8 !important;
}

/* Header & Drawer en Modo Claro */
html.light header {
  background-color: rgba(255, 255, 255, 0.9) !important;
  border-bottom-color: #e2e8f0 !important;
}

html.light #history-drawer {
  background-color: #ffffff !important;
  border-left-color: #e2e8f0 !important;
}

/* Pestañas Activas en Modo Claro */
html.light .tab-btn-req.bg-slate-900,
html.light .tab-btn-resp.bg-slate-900 {
  background-color: #ffffff !important;
  color: #0284c7 !important;
}

/* Tarjetas y Sombras en Modo Claro */
html.light .api-card {
  background-color: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
}

html.light .api-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

/* Hover de Botones en Modo Claro */
html.light .hover\:bg-slate-800:hover { background-color: #e2e8f0; }
html.light .hover\:bg-slate-700:hover { background-color: #cbd5e1; }
html.light .hover\:text-white:hover { color: #0284c7; }
html.light .hover\:text-slate-200:hover { color: #0f172a; }

/* Scrollbars en Modo Claro */
html.light ::-webkit-scrollbar-track {
  background: #f1f5f9;
}
html.light ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
}
html.light ::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==========================================================================
   13. CRONODE ENDPOINT EXPLORER & MODAL STYLES
   ========================================================================== */

.rotate-90 {
  transform: rotate(90deg);
}

.transition-transform {
  transition: transform 0.2s ease;
}

.col-span-full { grid-column: 1 / -1 !important; }
.lg\:col-span-3 { grid-column: span 3 / span 3; }
.lg\:col-span-4 { grid-column: span 4 / span 4; }
.lg\:col-span-5 { grid-column: span 5 / span 5; }
.lg\:col-span-6 { grid-column: span 6 / span 6; }
.lg\:col-span-12 { grid-column: span 12 / span 12; }

@media (min-width: 1280px) {
  .xl\:col-span-3 { grid-column: span 3 / span 3; }
  .xl\:col-span-4 { grid-column: span 4 / span 4; }
  .xl\:col-span-5 { grid-column: span 5 / span 5; }
  .xl\:col-span-6 { grid-column: span 6 / span 6; }
  .xl\:col-span-12 { grid-column: span 12 / span 12; }
  .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1536px) {
  .\32 xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

#endpoints-tree-container {
  max-height: calc(100vh - 210px);
  overflow-y: auto;
}

html.light #endpoints-sidebar {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
}

html.light .modal-card {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

/* Modal Card Constraints: ensures modals never take the full screen */
.modal-card {
  width: 92% !important;
  max-width: 520px;
  max-height: 86vh;
  margin: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

#credits-modal .modal-card {
  width: 92% !important;
  max-width: 480px !important;
  max-height: 86vh !important;
}

#credentials-modal .modal-card {
  width: 94% !important;
  max-width: 560px !important;
  max-height: 88vh !important;
}

/* Colores y Utilidades Adicionales de Cronode */
.max-w-lg { max-width: 32rem; }
.max-w-md { max-width: 28rem; }
.max-h-\[85vh\] { max-height: 85vh; }
.max-h-\[86vh\] { max-height: 86vh; }
.max-h-\[88vh\] { max-height: 88vh; }
.bg-black\/75 { background-color: rgba(0, 0, 0, 0.75); }
.bg-indigo-400 { background-color: #818cf8; }
.bg-indigo-500\/20 { background-color: rgba(99, 102, 241, 0.2); }
.bg-indigo-950\/60 { background-color: rgba(30, 27, 75, 0.6); }
.bg-indigo-950\/80 { background-color: rgba(30, 27, 75, 0.8); }
.bg-sky-400 { background-color: #38bdf8; }
.bg-sky-600 { background-color: #0284c7; }

.border-indigo-500\/30 { border-color: rgba(99, 102, 241, 0.3); }
.border-indigo-700\/60 { border-color: rgba(67, 56, 202, 0.6); }
.border-indigo-800 { border-color: #3730a3; }

.hover\:bg-indigo-900:hover { background-color: #312e81; }
.hover\:bg-indigo-900\/60:hover { background-color: rgba(49, 46, 129, 0.6); }
.hover\:bg-sky-500:hover { background-color: #0ea5e9; }
.hover\:bg-slate-800\/40:hover { background-color: rgba(30, 41, 59, 0.4); }
.focus\:ring-indigo-500:focus { box-shadow: 0 0 0 2px #6366f1; }

.gap-3\.5 { gap: 0.875rem; }
.justify-end { justify-content: flex-end; }
.h-7 { height: 1.75rem; }
.w-7 { width: 1.75rem; }
.h-14 { height: 3.5rem; }
.w-14 { width: 3.5rem; }
.m-3 { margin: 0.75rem; }
.max-h-\[220px\] { max-height: 220px; }
.max-h-\[660px\] { max-height: 660px; }
.max-h-\[92vh\] { max-height: 92vh; }
.max-w-\[1800px\] { max-width: 1800px; }
.max-w-xl { max-width: 36rem; }
.min-h-\[160px\] { min-height: 160px; }
.mt-0\.5 { margin-top: 0.125rem; }
.p-1\.5 { padding: 0.375rem; }
.pl-2\.5 { padding-left: 0.625rem; }
.pl-8 { padding-left: 2rem; }
.pl-9 { padding-left: 2.25rem; }
.pr-2\.5 { padding-right: 0.625rem; }
.pt-1\.5 { padding-top: 0.375rem; }
.pt-2\.5 { padding-top: 0.625rem; }
.text-\[9px\] { font-size: 9px; line-height: 12px; }

@media (min-width: 640px) {
  .sm\:gap-2\.5 { gap: 0.625rem; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .sm\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
  .sm\:w-32 { width: 8rem; }
}

@media (min-width: 768px) {
  .md\:inline { display: inline !important; }
}

@media (min-width: 1024px) {
  .lg\:p-5 { padding: 1.25rem; }
}

@media (min-width: 1280px) {
  .xl\:block { display: block !important; }
}

/* ==========================================================================
   14. RENDER VIEW (AMIGABLE PARA USUARIOS NO TÉCNICOS)
   ========================================================================== */

.render-summary-bar {
  background-color: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(51, 65, 85, 0.6);
  backdrop-filter: blur(8px);
}

.render-card {
  background-color: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(51, 65, 85, 0.7);
  border-radius: 1rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.render-card:hover {
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.25), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.render-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(99, 102, 241, 0.25) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.render-field-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.375rem 0;
  border-bottom: 1px solid rgba(51, 65, 85, 0.35);
}

.render-field-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.render-field-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.render-field-value {
  font-size: 0.75rem;
  color: #f1f5f9;
  text-align: right;
  word-break: break-word;
  max-width: 65%;
}

.render-badge-id {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.6875rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  background-color: rgba(30, 41, 59, 0.8);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.render-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.4375rem;
  border-radius: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 500;
  background-color: #1e293b;
  color: #cbd5e1;
  border: 1px solid #334155;
}

/* Modo Claro para Render View */
html.light .render-summary-bar {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
}

html.light .render-card {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
}

html.light .render-card:hover {
  border-color: #38bdf8 !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

html.light .render-avatar {
  background: linear-gradient(135deg, #e0f2fe 0%, #e0e7ff 100%) !important;
  border-color: #bae6fd !important;
  color: #0284c7 !important;
  text-shadow: none;
}

html.light .render-field-row {
  border-bottom-color: #f1f5f9;
}

html.light .render-field-label {
  color: #64748b !important;
}

html.light .render-field-value {
  color: #0f172a !important;
}

html.light .render-badge-id {
  background-color: #f0f9ff !important;
  color: #0284c7 !important;
  border-color: #bae6fd !important;
}

html.light .render-tag-pill {
  background-color: #f8fafc !important;
  color: #334155 !important;
  border-color: #e2e8f0 !important;
}

/* ==========================================================================
   15. PESTAÑAS DE CATEGORÍA DEL CATÁLOGO (JWT vs API KEY)
   ========================================================================== */

.tab-cat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.375rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
  background-color: transparent;
  color: #94a3b8;
}

.tab-cat-btn:hover {
  color: #ffffff;
  background-color: rgba(30, 41, 59, 0.4);
}

.tab-cat-btn.active {
  background-color: #0ea5e9 !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.25);
}

html.light .tab-cat-btn {
  color: #64748b;
}

html.light .tab-cat-btn:hover {
  color: #0284c7;
  background-color: rgba(241, 245, 249, 0.8);
}

html.light .tab-cat-btn.active {
  background-color: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 1px 3px 0 rgba(2, 132, 199, 0.3);
}
