/* QSE Branding for Redocly API Documentation */

/* CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 0px;
}

.api-content > div:has(h2),
.api-content > div:has(h1) {
  padding: 0px;
}

.api-content > div > div > div > h1,
h2 {
  margin-top: 64px !important;
}

.api-content > div:first-child {
  margin-block: 40px !important;
}
.api-content > div:first-child > div > div > h1 {
  margin-top: 0px !important;
}

button div > div:first-child {
  background-color: #333;
  box-shadow: none;
}

button div > div:nth-child(2) {
  border-top-color: #333;
}

body {
  font-family:
    'Albert Sans',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

/* Enhanced theme transition for smooth switching */
body.theme-transitioning {
  position: relative;
}

body.theme-transitioning::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  animation: themeTransitionOverlay 0.3s ease-in-out;
}

@keyframes themeTransitionOverlay {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

body.theme-transitioning * {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease !important;
}

/* Ensure all theme-dependent elements have smooth transitions */
* {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* CSS Variables for Light Theme */
:root {
  --primary-blue: #2563eb;
  --primary-blue-light: #3b82f6;
  --primary-blue-dark: #1d4ed8;
  --primary-blue-50: #dbeafe;

  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;

  /* Text Colors */
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-tertiary: #6b7280;

  /* Border Colors */
  --border-primary: #e5e7eb;
  --border-secondary: #d1d5db;

  /* Accent Colors */
  --accent-primary: #3b82f6;
  --accent-secondary: #1d4ed8;

  /* Semantic Colors */
  --success: #17c964;
  --success-light: #6fee8d;
  --warning: #fdce01;
  --danger: #dc2626;
  --danger-light: #ef4444;
  --info: #00b7fa;
  --info-light: #01cfea;
}

/* Dark Theme Variables */
.dark {
  --primary-blue: #60a5fa;
  --primary-blue-light: #93c5fd;
  --primary-blue-dark: #3b82f6;
  --primary-blue-50: #1e3a8a;

  /* Background Colors */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;

  /* Text Colors */
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;

  /* Border Colors */
  --border-primary: #334155;
  --border-secondary: #475569;

  /* Accent Colors */
  --accent-primary: #60a5fa;
  --accent-secondary: #3b82f6;

  /* Enhanced Semantic Colors */
  --success: #10b981;
  --success-light: #34d399;
  --success-bg: rgba(16, 185, 129, 0.1);
  --warning: #f59e0b;
  --warning-light: #fbbf24;
  --danger: #ef4444;
  --danger-light: #f87171;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --info: #06b6d4;
  --info-light: #22d3ee;
}

body {
  min-height: 100vh;
}
/* Enhanced Code Sample Styles */

.code-sample:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.dark .code-sample:hover {
  border-color: var(--primary-blue-light);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.2);
}

/* Enhanced Response Styles */
.try-it-response {
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  background: var(--bg-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
}

.try-it-response:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.dark .try-it-response {
  background: var(--bg-secondary);
  border-color: var(--border-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dark .try-it-response:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.try-it-response-header {
  background: linear-gradient(
    135deg,
    var(--bg-tertiary) 0%,
    var(--bg-secondary) 100%
  );
  border-bottom: 1px solid var(--border-primary);
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.dark .try-it-response-header {
  background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
}

.try-it-response-body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  padding: 16px;
  max-height: 400px;
  overflow-y: auto;
  transition: all 0.3s ease;
}

.dark .try-it-response-body {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Simplified Table Styles */
table {
  border-collapse: collapse;
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  transition: all 0.3s ease;
}

.redoc-markdown table {
  border: none !important;
}

.dark table {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
}

.dark .redoc-markdown table {
  border: none !important;
  background: transparent !important;
}

.dark .redoc-markdown table td {
  background-color: #0d1117;
}

th,
td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-primary);
  transition: all 0.3s ease;
}

th {
  background: var(--bg-tertiary);
  font-weight: 600;
  color: var(--text-primary);
}

.dark th {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-primary);
}

.dark td {
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-primary);
}

tr:hover {
  background: var(--bg-tertiary);
  transition: all 0.2s ease;
}

.dark tr:hover {
  background: var(--bg-tertiary);
}

/* Simple code styling within tables */
.dark table td code,
.dark .redoc-wrap table td code {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
}

/* Base Typography */

/* QSE Typography Scale */
h1 {
  font-size: 2.3rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  transition: color 0.3s ease;
}

h2 {
  font-size: 1.875rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

h4 {
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

h5 {
  font-size: 1.125rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

h6 {
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

p,
body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

small,
.text-sm {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-tertiary);
  transition: color 0.3s ease;
}

/* List Styles */
ul,
ol {
  color: var(--text-secondary);
  transition: color 0.3s ease;
  margin: 0 0 1rem 0;
  padding-left: 1.5rem;
}

li {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

ul ul,
ol ol,
ul ol,
ol ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Dark mode list styles */
.dark ul,
.dark ol {
  color: var(--text-secondary);
}

.dark li {
  color: var(--text-secondary);
}

/* Links */
a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-blue-dark);
  text-decoration: underline;
}

.dark a {
  color: var(--primary-blue-light);
}

.dark a:hover {
  color: var(--primary-blue);
}

/* Code and pre elements */
code {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
  transition: all 0.3s ease;
}

pre {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 16px;
  border-radius: 8px;
  font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-x: auto;
  border: 1px solid var(--border-primary);
  transition: all 0.3s ease;
}

pre code {
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

.dark code {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.dark pre {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-primary);
}

.dark pre code {
  background: transparent;
  color: inherit;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid var(--primary-blue);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 16px 20px;
  margin: 16px 0;
  border-radius: 0 8px 8px 0;
  transition: all 0.3s ease;
}

.dark blockquote {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border-left-color: var(--primary-blue-light);
}

/* Strong and emphasis */
strong,
b {
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

em,
i {
  font-style: italic;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.dark strong,
.dark b {
  color: var(--text-primary);
}

.dark em,
.dark i {
  color: var(--text-secondary);
}

/* Header Styling */
header {
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--primary-blue-dark) 100%
  );
  color: white;
  padding: 12px 24px;
  font-family: 'Albert Sans', sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.dark header {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border-bottom-color: #374151;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Header content wrapper */
.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-left-content a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
}

.header-left-content a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

/* Logo/Title styling */
.header-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-title img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* Navigation styling */
.header-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Button styling */
.header-button {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.header-button:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

/* Footer Styling */
footer {
  background: var(--bg-primary);
  color: var(--text-secondary);
  padding: 16px 24px;
  font-family: 'Albert Sans', sans-serif;
  border-top: 1px solid var(--border-primary);
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
  text-align: center;
  font-size: 0.9rem;
}

/* Dark Mode Toggle - Bottom Right */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* QSE Redocly Component Styling with Enhanced Transitions */
.redoc-wrap .api-info {
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--primary-blue-dark) 100%
  );
  padding: 16px;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  width: calc(60% - 32px);
  margin-inline-start: 16px;
}

.redoc-wrap .api-info h1,
.redoc-wrap .api-info span {
  margin: 0px;
  color: white !important;
}

/* Enhanced Redoc transitions */
.redoc-wrap,
.redoc-wrap * {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.redoc-wrap .menu-content {
  background-color: var(--bg-primary);
  border-right: 1px solid var(--border-primary);
  top: 64px !important;
}

.redoc-wrap .menu-content a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.redoc-wrap .menu-content a:hover {
  color: var(--primary-blue);
}

.redoc-wrap .opblock {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: 0.5rem;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.redoc-wrap .opblock.opblock-get {
  border-left: 4px solid #61affe;
}

.redoc-wrap .opblock.opblock-post {
  border-left: 4px solid #49cc90;
}

.redoc-wrap .opblock.opblock-put {
  border-left: 4px solid #fca130;
}

.redoc-wrap .opblock.opblock-delete {
  border-left: 4px solid #f93e3e;
}

.redoc-wrap .btn {
  background-color: var(--primary-blue);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.redoc-wrap .btn:hover {
  background-color: var(--primary-blue-dark);
  transform: translateY(-1px);
}

.redoc-wrap pre {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: 0.375rem;
  padding: 16px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* Hide Redocly branding */
.redoc-wrap [class*='redocly'],
.redoc-wrap a[href*='redocly.com'] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Enhanced Sidebar Styling */
.redoc-wrap .menu-content {
  background: var(--bg-primary) !important;
  border-right: 1px solid var(--border-primary) !important;
  transition: all 0.3s ease !important;
  top: 64px !important;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05) !important;
}

.dark .redoc-wrap .menu-content {
  background: var(--bg-secondary) !important;
  border-right-color: var(--border-primary) !important;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.3) !important;
}

.redoc-wrap .menu-content .menu-item {
  color: var(--text-primary) !important;
  transition: all 0.3s ease !important;
  border-bottom: 1px solid transparent !important;
}

.dark .redoc-wrap .menu-content .menu-item {
  color: var(--text-secondary) !important;
  border-bottom: 1px solid var(--border-primary) !important;
}

.redoc-wrap .menu-content .menu-item:hover {
  background: var(--bg-tertiary) !important;
  color: var(--primary-blue) !important;
}

.dark .redoc-wrap .menu-content .menu-item:hover {
  background: var(--bg-tertiary) !important;
  color: var(--primary-blue) !important;
}

.redoc-wrap .menu-content .menu-item.active {
  background: var(--primary-blue-50) !important;
  color: var(--primary-blue) !important;
  border-right: 3px solid var(--primary-blue) !important;
  font-weight: 600 !important;
}

.dark .redoc-wrap .menu-content .menu-item.active {
  background: rgba(96, 165, 250, 0.1) !important;
  color: var(--primary-blue) !important;
  border-right-color: var(--primary-blue) !important;
  font-weight: 600 !important;
}

/* Sidebar inner elements - ensure all text inherits proper colors */
.redoc-wrap .menu-content * {
  color: inherit !important;
  transition: color 0.3s ease !important;
}

.dark .redoc-wrap .menu-content * {
  color: inherit !important;
}

.dark .redoc-wrap .menu-content label {
  background: var(--bg-tertiary);
}

.redoc-wrap .menu-content label:hover,
.redoc-wrap .menu-content label.active {
  background: #d3d3d4;
}

.dark .redoc-wrap .menu-content label:hover,
.dark .redoc-wrap .menu-content label.active {
  background: var(--bg-secondary);
}

.dark ul li ul li label {
  background: #1e1e1e !important;
}

.dark ul li ul li label:hover,
.dark ul li ul li label.active {
  background: #636262 !important;
}

/* Sidebar links and text elements */
.redoc-wrap .menu-content a,
.redoc-wrap .menu-content span,
.redoc-wrap .menu-content div,
.redoc-wrap .menu-content p {
  color: var(--text-primary) !important;
  transition: color 0.3s ease !important;
}

.dark .redoc-wrap .menu-content a,
.dark .redoc-wrap .menu-content span,
.dark .redoc-wrap .menu-content div,
.dark .redoc-wrap .menu-content p {
  color: var(--text-secondary) !important;
}

/* Sidebar nested elements */
.redoc-wrap .menu-content .menu-item a,
.redoc-wrap .menu-content .menu-item span,
.redoc-wrap .menu-content .menu-item div {
  color: inherit !important;
}

.dark .redoc-wrap .menu-content .menu-item a,
.dark .redoc-wrap .menu-content .menu-item span,
.dark .redoc-wrap .menu-content .menu-item div {
  color: inherit !important;
}

/* Sidebar hover states for all elements */
.redoc-wrap .menu-content .menu-item:hover * {
  color: var(--primary-blue) !important;
}

.dark .redoc-wrap .menu-content .menu-item:hover * {
  color: var(--primary-blue) !important;
}

/* Sidebar active states for all elements */
.redoc-wrap .menu-content .menu-item.active * {
  color: var(--primary-blue) !important;
}

.dark .redoc-wrap .menu-content .menu-item.active * {
  color: var(--primary-blue) !important;
}

/* Simple sidebar scrollbar for dark theme */
.dark .redoc-wrap .menu-content::-webkit-scrollbar {
  width: 6px !important;
}

.dark .redoc-wrap .menu-content::-webkit-scrollbar-track {
  background: var(--bg-tertiary) !important;
}

.dark .redoc-wrap .menu-content::-webkit-scrollbar-thumb {
  background: var(--border-secondary) !important;
  border-radius: 3px !important;
}

.dark .redoc-wrap .menu-content::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary) !important;
}

/* Simple menu group headers */
.dark .redoc-wrap .menu-content .menu-group-label {
  color: var(--text-tertiary) !important;
  font-weight: 600 !important;
  background: var(--bg-tertiary) !important;
  border-bottom: 1px solid var(--border-primary) !important;
}

/* Redoc Content Area Typography */
.redoc-wrap {
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.dark .redoc-wrap {
  color: var(--text-primary);
}

/* Redoc headings */
.redoc-wrap h1,
.redoc-wrap h2,
.redoc-wrap h3,
.redoc-wrap h4,
.redoc-wrap h5,
.redoc-wrap h6 {
  color: var(--text-primary) !important;
  transition: color 0.3s ease !important;
}

.dark .redoc-wrap h1,
.dark .redoc-wrap h2,
.dark .redoc-wrap h3,
.dark .redoc-wrap h4,
.dark .redoc-wrap h5,
.dark .redoc-wrap h6 {
  color: var(--text-primary) !important;
}

/* Redoc paragraphs and text */
.redoc-wrap p,
.redoc-wrap div,
.redoc-wrap span,
.redoc-wrap section {
  color: var(--text-secondary) !important;
  transition: color 0.3s ease !important;
}

.react-tabs__tab-panel p,
.react-tabs__tab-panel div,
.react-tabs__tab-panel span,
.react-tabs__tab-panel section {
  color: #fff !important;
  transition: color 0.3s ease !important;
}

.http-verb + span {
  color: #fff !important;
}

span.http-verb {
  color: #fff !important;
}

.menu-content span.operation-type {
  color: #fff !important;
}

.dark .redoc-wrap p,
.dark .redoc-wrap div,
.dark .redoc-wrap span,
.dark .redoc-wrap section {
  color: var(--text-secondary) !important;
}

/* Redoc lists */
.redoc-wrap ul,
.redoc-wrap ol {
  color: var(--text-secondary) !important;
  transition: color 0.3s ease !important;
}

.redoc-wrap li {
  color: var(--text-secondary) !important;
  transition: color 0.3s ease !important;
}

.dark .redoc-wrap ul,
.dark .redoc-wrap ol {
  color: var(--text-secondary) !important;
}

.dark .redoc-wrap li {
  color: var(--text-secondary) !important;
}

.dark div > div:has(> h5 + svg) + div {
  background: var(--bg-secondary) !important;
}

/* Redoc links */
.redoc-wrap a {
  color: var(--primary-blue) !important;
  transition: color 0.3s ease !important;
}

.redoc-wrap a:hover {
  color: var(--primary-blue-dark) !important;
}

.dark .redoc-wrap a {
  color: var(--primary-blue-light) !important;
}

.dark .redoc-wrap a:hover {
  color: var(--primary-blue) !important;
}

/* Redoc code blocks */
.redoc-wrap code,
.redoc-wrap code span {
  background: transparent !important;
  color: #e2e8f0 !important;
  transition: all 0.3s ease !important;
}

.redoc-wrap pre {
  background: #2d3748 !important;
  color: #e2e8f0 !important;
  border-color: var(--border-primary) !important;
  transition: all 0.3s ease !important;
}

.dark .redoc-wrap code {
  background: transparent !important;
  color: var(--text-primary) !important;
}

.dark .redoc-wrap pre {
  background: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-primary) !important;
}

/* Redoc operation blocks */
.redoc-wrap .opblock {
  background: var(--bg-primary) !important;
  border-color: var(--border-primary) !important;
  color: var(--text-primary) !important;
  transition: all 0.3s ease !important;
}

.dark .redoc-wrap .opblock {
  background: var(--bg-secondary) !important;
  border-color: var(--border-primary) !important;
  color: var(--text-primary) !important;
}

/* Redoc operation content */
.redoc-wrap .opblock .opblock-summary,
.redoc-wrap .opblock .opblock-description,
.redoc-wrap .opblock .opblock-section {
  color: var(--text-secondary) !important;
  transition: color 0.3s ease !important;
}

.dark .redoc-wrap .opblock .opblock-summary,
.dark .redoc-wrap .opblock .opblock-description,
.dark .redoc-wrap .opblock .opblock-section {
  color: var(--text-secondary) !important;
}

/* Redoc parameter tables */
.redoc-wrap .parameters,
.redoc-wrap .responses {
  background: var(--bg-primary) !important;
  border-color: var(--border-primary) !important;
  transition: all 0.3s ease !important;
}

.dark .redoc-wrap .parameters,
.dark .redoc-wrap .responses {
  background: var(--bg-secondary) !important;
  border-color: var(--border-primary) !important;
}

/* Redoc table cells */
.redoc-wrap table th,
.redoc-wrap table td {
  color: var(--text-secondary) !important;
  border-color: var(--border-primary) !important;
  transition: all 0.3s ease !important;
}

.dark .redoc-wrap table th,
.dark .redoc-wrap table td {
  color: var(--text-secondary) !important;
  border-color: var(--border-primary) !important;
}

/* Redoc table headers */
.redoc-wrap table th {
  background: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
  transition: all 0.3s ease !important;
}

.dark .redoc-wrap table th {
  background: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
}

/* Redoc schema and model definitions */
.redoc-wrap .model,
.redoc-wrap .schema {
  background: var(--bg-primary) !important;
  border-color: var(--border-primary) !important;
  color: var(--text-primary) !important;
  transition: all 0.3s ease !important;
}

.dark .redoc-wrap .model,
.dark .redoc-wrap .schema {
  background: var(--bg-secondary) !important;
  border-color: var(--border-primary) !important;
  color: var(--text-primary) !important;
}

/* Redoc property names and types */
.redoc-wrap .prop-name,
.redoc-wrap .prop-type {
  color: var(--text-primary) !important;
  transition: color 0.3s ease !important;
}

.dark .redoc-wrap .prop-name,
.dark .redoc-wrap .prop-type {
  color: var(--text-primary) !important;
}

/* Redoc property descriptions */
.redoc-wrap .prop-description {
  color: var(--text-secondary) !important;
  transition: color 0.3s ease !important;
}

.dark .redoc-wrap .prop-description {
  color: var(--text-secondary) !important;
}

/* Additional Redoc dark mode fixes */
.dark .redoc-wrap .info {
  background: var(--bg-secondary) !important;
  border-color: var(--border-primary) !important;
  color: var(--text-primary) !important;
}

.dark .redoc-wrap .info .title {
  color: var(--text-primary) !important;
}

.dark .redoc-wrap .info .description {
  color: var(--text-secondary) !important;
}

/* Redoc method badges */
.dark .redoc-wrap .http-verb {
  color: var(--text-primary) !important;
}

/* Redoc path display */
.dark .redoc-wrap .opblock-summary-path {
  color: var(--text-primary) !important;
}

/* Redoc operation summary */
.dark .redoc-wrap .opblock-summary-description {
  color: var(--text-secondary) !important;
}

/* Redoc tags */
.dark .redoc-wrap .opblock-tag {
  background: var(--bg-secondary) !important;
  border-color: var(--border-primary) !important;
  color: var(--text-primary) !important;
}

.dark .redoc-wrap .opblock-tag .opblock-tag-section {
  color: var(--text-primary) !important;
}

/* Redoc collapsible sections */
.dark .redoc-wrap .opblock-section-header {
  background: var(--bg-tertiary) !important;
  border-color: var(--border-primary) !important;
  color: var(--text-primary) !important;
}

.dark .redoc-wrap .opblock-section-header h4 {
  color: var(--text-primary) !important;
}

/* Redoc request/response examples */
.dark .redoc-wrap .highlight-code {
  background: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-primary) !important;
}

/* Redoc JSON examples */
.dark .redoc-wrap .microlight {
  background: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
}

/* Redoc error messages */
.dark .redoc-wrap .error-wrapper {
  background: var(--bg-secondary) !important;
  border-color: var(--border-primary) !important;
  color: var(--text-primary) !important;
}

/* Redoc loading states */
.dark .redoc-wrap .loading-container {
  background: var(--bg-secondary) !important;
  color: var(--text-secondary) !important;
}

/* Redoc download button */
.dark .redoc-wrap .download-url-button {
  background: var(--primary-blue) !important;
  color: white !important;
  border-color: var(--primary-blue) !important;
}

.dark .redoc-wrap .download-url-button:hover {
  background: var(--primary-blue-light) !important;
  border-color: var(--primary-blue-light) !important;
}

/* Redoc try it out button */
.dark .redoc-wrap .btn.try-out__btn {
  background: var(--primary-blue) !important;
  color: white !important;
  border-color: var(--primary-blue) !important;
}

.dark .redoc-wrap .btn.try-out__btn:hover {
  background: var(--primary-blue-light) !important;
  border-color: var(--primary-blue-light) !important;
}

/* Redoc execute button */
.dark .redoc-wrap .btn.execute {
  background: var(--success) !important;
  color: white !important;
  border-color: var(--success) !important;
}

.dark .redoc-wrap .btn.execute:hover {
  background: var(--success-light) !important;
  border-color: var(--success-light) !important;
}

/* Redoc cancel button */
.dark .redoc-wrap .btn.cancel {
  background: var(--danger) !important;
  color: white !important;
  border-color: var(--danger) !important;
}

.dark .redoc-wrap .btn.cancel:hover {
  background: var(--danger-light) !important;
  border-color: var(--danger-light) !important;
}

/* Redoc clear button */
.dark .redoc-wrap .btn.clear {
  background: var(--warning) !important;
  color: white !important;
  border-color: var(--warning) !important;
}

.dark .redoc-wrap .btn.clear:hover {
  background: var(--warning-light) !important;
  border-color: var(--warning-light) !important;
}

/* Redoc input fields */
.dark .redoc-wrap input,
.dark .redoc-wrap textarea,
.dark .redoc-wrap select {
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-primary) !important;
}

.dark .redoc-wrap input:focus,
.dark .redoc-wrap textarea:focus,
.dark .redoc-wrap select:focus {
  border-color: var(--primary-blue) !important;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2) !important;
}

/* Redoc labels */
.dark .redoc-wrap label {
  color: var(--text-secondary) !important;
}

/* Redoc required indicators */
.dark .redoc-wrap .required {
  color: var(--danger) !important;
}

/* Redoc enum values */
.dark .redoc-wrap .enum {
  background: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-primary) !important;
}

/* Redoc default values */
.dark .redoc-wrap .default {
  color: var(--text-tertiary) !important;
}

/* Redoc example values */
.dark .redoc-wrap .example {
  color: var(--text-tertiary) !important;
}

/* Redoc deprecated items */
.dark .redoc-wrap .deprecated {
  opacity: 0.6 !important;
  color: var(--text-tertiary) !important;
}

/* Redoc read-only indicators */
.dark .redoc-wrap .read-only {
  color: var(--text-tertiary) !important;
}

/* Redoc write-only indicators */
.dark .redoc-wrap .write-only {
  color: var(--text-tertiary) !important;
}

/* Auth Modal Dark Mode Styles */
.dark .auth-modal {
  background: rgba(0, 0, 0, 0.8) !important;
}

.dark .auth-modal-content {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border-primary) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
}

.dark .auth-modal-header {
  background: linear-gradient(
    135deg,
    var(--bg-tertiary) 0%,
    var(--bg-secondary) 100%
  ) !important;
  border-bottom-color: var(--border-primary) !important;
}

.dark .auth-modal-header h3 {
  color: var(--text-primary) !important;
}

.dark .auth-modal-close {
  color: var(--text-tertiary) !important;
}

.dark .auth-modal-close:hover {
  background: rgba(148, 163, 184, 0.1) !important;
  color: var(--text-primary) !important;
}

.dark .auth-modal-body {
  background: var(--bg-secondary) !important;
}

.dark .auth-status-display {
  background: var(--bg-tertiary) !important;
  border-color: var(--border-primary) !important;
}

.dark .auth-status-label {
  color: var(--text-secondary) !important;
}

.dark .auth-status {
  background: var(--bg-primary) !important;
  color: var(--text-tertiary) !important;
  border: 1px solid var(--border-primary) !important;
}

.dark .auth-status.active {
  background: rgba(16, 185, 129, 0.1) !important;
  color: var(--success) !important;
  border-color: rgba(16, 185, 129, 0.2) !important;
}

.dark .auth-label {
  color: var(--text-secondary) !important;
}

.dark .auth-select,
.dark .auth-input {
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-primary) !important;
}

.dark .auth-select:focus,
.dark .auth-input:focus {
  border-color: var(--primary-blue) !important;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2) !important;
}

.dark .auth-help-text {
  color: var(--text-tertiary) !important;
}

.dark .auth-modal-footer {
  background: var(--bg-tertiary) !important;
  border-top-color: var(--border-primary) !important;
}

.dark .apply-btn {
  background: #28a745 !important;
  color: white !important;
}

.dark .apply-btn:hover {
  background: #218838 !important;
}

.dark .clear-btn {
  background: #dc3545 !important;
  color: white !important;
}

.dark .clear-btn:hover {
  background: #c82333 !important;
}

.dark .cancel-btn {
  background: #6c757d !important;
  color: white !important;
}

.dark .cancel-btn:hover {
  background: #5a6268 !important;
}

/* Theme Icon */
.theme-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-icon {
  transform: rotate(180deg);
}

/* Enhanced Form Elements */
.try-it-input,
.try-it-textarea,
.auth-input,
.auth-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  line-height: 1.5;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.try-it-input:hover,
.try-it-textarea:hover,
.auth-input:hover,
.auth-select:hover {
  border-color: var(--border-secondary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.try-it-input:focus,
.try-it-textarea:focus,
.auth-input:focus,
.auth-select:focus {
  border-color: var(--primary-blue);
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.try-it-input::placeholder,
.try-it-textarea::placeholder,
.auth-input::placeholder {
  color: var(--text-tertiary);
  opacity: 0.8;
  font-style: italic;
}

.try-it-input:disabled,
.try-it-textarea:disabled,
.auth-input:disabled,
.auth-select:disabled {
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
  cursor: not-allowed;
  opacity: 0.6;
  border-color: var(--border-primary);
}

.dark .try-it-input,
.dark .try-it-textarea,
.dark .auth-input,
.dark .auth-select {
  background: var(--bg-primary);
  color: var(--text-primary);
  border-color: var(--border-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.dark .try-it-input:hover,
.dark .try-it-textarea:hover,
.dark .auth-input:hover,
.dark .auth-select:hover {
  border-color: var(--border-secondary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dark .try-it-input:focus,
.dark .try-it-textarea:focus,
.dark .auth-input:focus,
.dark .auth-select:focus {
  border-color: var(--primary-blue);
  box-shadow:
    0 0 0 3px rgba(96, 165, 250, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.3);
}

.dark .try-it-input::placeholder,
.dark .try-it-textarea::placeholder,
.dark .auth-input::placeholder {
  color: var(--text-tertiary);
  opacity: 0.7;
}

.dark .try-it-input:disabled,
.dark .try-it-textarea:disabled,
.dark .auth-input:disabled,
.dark .auth-select:disabled {
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
  border-color: var(--border-primary);
}

/* Input Validation States */
.try-it-input.success,
.try-it-textarea.success,
.auth-input.success,
.auth-select.success {
  border-color: var(--success);
  background: rgba(23, 201, 100, 0.05);
  box-shadow: 0 0 0 3px rgba(23, 201, 100, 0.1);
}

.try-it-input.error,
.try-it-textarea.error,
.auth-input.error,
.auth-select.error {
  border-color: var(--danger);
  background: rgba(220, 38, 38, 0.05);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.try-it-input.warning,
.try-it-textarea.warning,
.auth-input.warning,
.auth-select.warning {
  border-color: var(--warning);
  background: rgba(253, 206, 1, 0.05);
  box-shadow: 0 0 0 3px rgba(253, 206, 1, 0.1);
}

.dark .try-it-input.success,
.dark .try-it-textarea.success,
.dark .auth-input.success,
.dark .auth-select.success {
  border-color: var(--success);
  background: rgba(16, 185, 129, 0.1);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.dark .try-it-input.error,
.dark .try-it-textarea.error,
.dark .auth-input.error,
.dark .auth-select.error {
  border-color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.dark .try-it-input.warning,
.dark .try-it-textarea.warning,
.dark .auth-input.warning,
.dark .auth-select.warning {
  border-color: var(--warning);
  background: rgba(245, 158, 11, 0.1);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* Enhanced Button Styles */
.try-it-execute-btn,
.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  line-height: 1.5;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease;
  min-height: 40px;
  margin-bottom: 16px;
}

/* Primary Execute Button */
.try-it-execute-btn {
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--primary-blue-dark) 100%
  );
  color: white;
  border: 1px solid var(--primary-blue-dark);
}

.try-it-execute-btn:hover {
  background: linear-gradient(
    135deg,
    var(--primary-blue-light) 0%,
    var(--primary-blue) 100%
  );
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.try-it-execute-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.try-it-execute-btn:focus {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.3),
    0 4px 12px rgba(37, 99, 235, 0.3);
}

.try-it-execute-btn:disabled {
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
  border-color: var(--border-primary);
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  opacity: 0.6;
}

/* Auth Button Styles */
.auth-btn {
  background: #007bff;
  color: white;
  border: 1px solid #007bff;
}

.auth-btn:hover {
  background: #0056b3;
  border-color: #0056b3;
}

.auth-btn:active {
  background: #004085;
  border-color: #004085;
}

.auth-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.auth-btn:disabled {
  background: #6c757d;
  color: white;
  border-color: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Shimmer Effect - Removed for simpler design */

/* Dark Mode Button Styles */
.dark .try-it-execute-btn {
  background: linear-gradient(
    135deg,
    var(--primary-blue-light) 0%,
    var(--primary-blue) 100%
  );
  border-color: var(--primary-blue);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dark .try-it-execute-btn:hover {
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--primary-blue-dark) 100%
  );
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.4);
}

.dark .try-it-execute-btn:focus {
  box-shadow:
    0 0 0 3px rgba(96, 165, 250, 0.4),
    0 4px 12px rgba(96, 165, 250, 0.4);
}

.dark .try-it-execute-btn:disabled {
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
  border-color: var(--border-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.dark .auth-btn {
  background: #007bff;
  border-color: #007bff;
}

.dark .auth-btn:hover {
  background: #0056b3;
  border-color: #0056b3;
}

.dark .auth-btn:focus {
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.dark .auth-btn:disabled {
  background: #6c757d;
  color: white;
  border-color: #6c757d;
}

/* Button Loading State */
.try-it-execute-btn.loading,
.auth-btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.try-it-execute-btn.loading::after,
.auth-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.try-it-execute-btn.loading::after {
  border-top-color: white;
}

.auth-btn.loading::after {
  border-top-color: white;
}

/* Button Size Variants */
.try-it-execute-btn.small,
.auth-btn.small {
  padding: 8px 16px;
  font-size: 0.85rem;
  min-height: 36px;
}

.try-it-execute-btn.large,
.auth-btn.large {
  padding: 16px 32px;
  font-size: 1.1rem;
  min-height: 52px;
}

/* Secondary Button Variant */
.try-it-execute-btn.secondary {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
}

.try-it-execute-btn.secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dark .try-it-execute-btn.secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border-primary);
}

.dark .try-it-execute-btn.secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-secondary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Enhanced Status Indicators */
.try-it-response-status.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  border: 1px solid rgba(16, 185, 129, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.try-it-response-status.error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  border: 1px solid rgba(239, 68, 68, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.dark .try-it-response-status.success {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 4px 12px rgba(52, 211, 153, 0.5);
  border-color: rgba(52, 211, 153, 0.4);
}

.dark .try-it-response-status.error {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  box-shadow: 0 4px 12px rgba(248, 113, 113, 0.5);
  border-color: rgba(248, 113, 113, 0.4);
}

/* Enhanced Copy Button */

/* Enhanced Loading Spinner */
.try-it-spinner {
  border: 2px solid var(--border-primary);
  border-top: 2px solid var(--primary-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transition: all 0.3s ease;
}

.dark .try-it-spinner {
  border-color: var(--border-primary);
  border-top-color: var(--primary-blue-light);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--border-secondary);
  border-radius: 4px;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

.dark ::-webkit-scrollbar-track {
  background: #374151;
}

.dark ::-webkit-scrollbar-thumb {
  background: #4b5563;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

/* Try-it-Now Container and Layout Styles */
.try-it-container {
  margin: 16px 0;
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  background: var(--bg-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.dark .try-it-container {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.try-it-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-primary);
  background: var(--bg-tertiary);
  border-radius: 8px 8px 0 0;
}

.try-it-tab {
  padding: 12px 24px;
  cursor: pointer;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-tertiary);
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.try-it-tab:hover {
  color: var(--text-primary);
  background: rgba(37, 50, 56, 0.05);
}

.try-it-tab.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
  background: var(--bg-primary);
  font-weight: 600;
}

.try-it-tab:not(.active) {
  opacity: 0.8;
}

.try-it-tab:not(.active):hover {
  opacity: 1;
}

.try-it-content {
  padding: 20px;
  display: block;
}

.try-it-examples-message {
  text-align: center;
  padding: 20px;
  color: var(--text-secondary);
}

.try-it-form-container {
  transition: all 0.3s ease;
}

.try-it-form {
  max-width: 100%;
}

.try-it-section {
  margin-bottom: 24px;
}

.try-it-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.try-it-method-url {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border-radius: 6px;
  margin-bottom: 16px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.9rem;
}

.try-it-method {
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.try-it-method.get {
  background: #e8f5e8;
  color: #2d5a2d;
}

.try-it-method.post {
  background: #fff3e0;
  color: #8b4513;
}

.try-it-method.put {
  background: #e3f2fd;
  color: #1565c0;
}

.try-it-method.delete {
  background: #ffebee;
  color: #c62828;
}

.try-it-method.patch {
  background: #f3e5f5;
  color: #7b1fa2;
}

/* Dark mode styles for HTTP method badges */
.dark .try-it-method.get {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.dark .try-it-method.post {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.dark .try-it-method.put {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.dark .try-it-method.delete {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.dark .try-it-method.patch {
  background: rgba(168, 85, 247, 0.2);
  color: #c4b5fd;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.try-it-url {
  flex: 1;
  color: var(--text-primary);
  word-break: break-all;
}

.try-it-input-group {
  margin-bottom: 16px;
}

.try-it-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.try-it-textarea {
  min-height: 120px;
  max-height: 300px;
  resize: vertical;
  font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  padding: 16px;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.try-it-textarea:focus {
  min-height: 140px;
}

.dark .try-it-textarea {
  background: var(--bg-primary);
  color: var(--text-primary);
  border-color: var(--border-primary);
}

.try-it-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
  font-style: italic;
}

/* Sub-tabs for Samples */
.try-it-sub-tabs {
  display: flex;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-primary);
  gap: 0;
}

.try-it-sub-tab {
  padding: 8px 20px;
  cursor: pointer;
  border: none;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-tertiary);
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.try-it-sub-tab:hover {
  color: var(--text-primary);
  background: rgba(37, 50, 56, 0.03);
}

.try-it-sub-tab.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
}

/* Code Sample Container */
.code-sample-container {
  position: relative;
  margin: 16px 0;
}

.code-sample {
  background: #2d3748;
  color: #e2e8f0 !important;
  padding: 16px 64px 16px 16px;
  border-radius: 6px;
  font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  overflow-x: hidden;
  white-space: pre-wrap;
  word-wrap: break-word;
  border: 1px solid #4a5568;
  transition: all 0.3s ease;
}

.code-sample.curl,
.code-sample.javascript,
.code-sample.go,
.code-sample.python {
  background: #2d3748;
  color: #e2e8f0 !important;
}

.dark .code-sample {
  background: #0d1117;
  color: #e6edf3;
  border-color: #30363d;
}

/* Syntax highlighting for code samples */
.code-sample .comment {
  color: #718096;
}

.code-sample .string {
  color: #9ae6b4;
}

.code-sample .keyword {
  color: #63b3ed;
}

.code-sample .method {
  color: #f6ad55;
}

.code-sample .url {
  color: #81e6d9;
}

/* ========================================
   ADDITIONAL TRY-IT-NOW SPECIFIC STYLES
   (Transferred from Handlebars template)
   ======================================== */

/* Enhanced Tab System - Main Tabs with higher specificity */
.try-it-main-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-primary);
  background: var(--bg-tertiary);
  border-radius: 8px 8px 0 0;
}

.try-it-main-tab {
  flex: 1;
  padding: 12px 24px;
  cursor: pointer;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-tertiary);
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  text-align: center;
  border-radius: 0px;
}

.try-it-main-tab:first-child {
  border-radius: 8px 0px 0 0;
}

.try-it-main-tab:last-child {
  border-radius: 0 8px 0px 0px;
}

.try-it-main-tab:hover {
  color: var(--text-primary);
  background: rgba(37, 50, 56, 0.05);
}

.try-it-main-tab.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
  background: var(--bg-primary);
}

/* Enhanced Copy Button with higher specificity */
.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.copy-btn.copied {
  background: #48bb78;
  color: white;
  border-color: #48bb78;
}

/* Samples Content with higher specificity */
.samples-content {
  padding: 20px;
}

.sample-section {
  display: none;
}

.sample-section.active {
  display: block;
}

/* Global Authorization Modal Styles */
.auth-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.auth-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-modal-content {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease-out;
}

/* Enhanced Mobile Responsive Styles with higher specificity */
@media (max-width: 768px) {
  header {
    padding: 10px 16px;
  }

  .header-content {
    gap: 16px;
  }

  .header-title {
    font-size: 1.3rem;
  }

  .header-logo {
    width: 56px;
    height: 28px;
    font-size: 0.9rem;
  }

  /* Hide navigation links and button on mobile */
  .header-nav a,
  .header-nav button {
    display: none;
  }

  .header-nav {
    gap: 0;
  }

  .redoc-wrap .api-info {
    width: calc(100% - 32px);
  }
}

@media (max-width: 480px) {
  header {
    padding: 8px 12px;
  }

  .header-title {
    font-size: 1.2rem;
    gap: 8px;
  }

  .header-logo {
    width: 48px;
    height: 24px;
    font-size: 0.8rem;
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e1e5e9;
  background: linear-gradient(135deg, #f8fafb 0%, #ffffff 100%);
}

.auth-modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: #253238;
}

.auth-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6c757d;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.auth-modal-close:hover {
  background: rgba(108, 117, 125, 0.1);
  color: #253238;
}

.auth-modal-body {
  padding: 24px;
}

.auth-status-display {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.auth-status-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #495057;
}

.auth-status {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 16px;
  background: #e9ecef;
  color: #6c757d;
}

.auth-status.active {
  background: rgba(72, 187, 120, 0.1);
  color: #38a169;
  border: 1px solid rgba(72, 187, 120, 0.2);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-type-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-input-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #495057;
}

.auth-select,
.auth-input {
  padding: 12px 16px;
  border: 1px solid #ced4da;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background: #ffffff;
}

.auth-select:focus,
.auth-input:focus {
  outline: none;
  border-color: #41d6f7;
  box-shadow: 0 0 0 3px rgba(65, 214, 247, 0.1);
}

.auth-help-text {
  font-size: 0.85rem;
  color: #6c757d;
  font-style: italic;
  margin-top: 4px;
}

.auth-modal-footer {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid #e1e5e9;
  background: #f8f9fa;
  flex-wrap: wrap;
}

.auth-btn {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  flex: 1;
  min-width: 120px;
}

.apply-btn {
  background: #28a745;
  color: #ffffff;
}

.apply-btn:hover {
  background: #218838;
}

.clear-btn {
  background: #dc3545;
  color: #ffffff;
}

.clear-btn:hover {
  background: #c82333;
}

.cancel-btn {
  background: #6c757d;
  color: #ffffff;
}

.cancel-btn:hover {
  background: #5a6268;
}

.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* React Tabs Dark Mode Styles */

.dark .react-tabs__tab-list li.react-tabs__tab--selected {
  background: var(--bg-primary) !important;
  color: var(--primary-blue) !important;
  border-bottom-color: var(--primary-blue) !important;
  font-weight: 600 !important;
}

.dark .react-tabs__tab-list li:hover {
  background: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
}

/* Enhanced Responsive Modal with higher specificity */
@media (max-width: 768px) {
  .auth-modal-content {
    width: 95%;
    margin: 16px;
  }

  .auth-modal-header,
  .auth-modal-body,
  .auth-modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .auth-modal-footer {
    flex-direction: column;
  }

  .auth-btn {
    min-width: unset;
  }

  .theme-toggle {
    bottom: 114px;
    right: 26px;
  }
}

@media (max-width: 480px) {
  .auth-modal-content {
    width: 98%;
    margin: 8px;
  }

  .auth-modal-header h3 {
    font-size: 1.2rem;
  }

  .auth-modal-header,
  .auth-modal-body,
  .auth-modal-footer {
    padding-left: 12px;
    padding-right: 12px;
  }
}
