/* CSS Variables for theming */
:root {
  --bg-primary: #0f0f23;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #16213e;
  --bg-code: #2a2a3e;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: #334155;
  --accent-primary: #3b82f6;
  --accent-secondary: #8b5cf6;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-code: #e2e8f0;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --accent-primary: #3b82f6;
  --accent-secondary: #8b5cf6;
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* Layout */
.container {
  display: flex;
  min-height: calc(100vh - 60px);
  position: relative;
}

/* Topbar */
.topbar {
  height: 60px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.125rem;
}

.vani-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.topbar-nav {
  display: flex;
  gap: 1rem;
}

.topbar-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.topbar-link:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.theme-toggle:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.access-vani-btn {
  background: var(--accent-primary);
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.access-vani-btn:hover {
  background: var(--accent-secondary);
  transform: translateY(-1px);
}

/* Sidebar */
.sidebar {
  width: 280px;
  min-width: 280px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 1.5rem;
  overflow-y: auto;
  height: calc(100vh - 60px);
  position: sticky;
  top: 60px;
  flex-shrink: 0;
}

.nav-section {
  margin-bottom: 2rem;
}

.nav-title {
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-list {
  list-style: none;
}

.nav-item {
  margin-bottom: 0.25rem;
}

.nav-link {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-link:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.nav-link.active {
  background: var(--accent-primary);
  color: white;
}

/* Separate active states for nav-list and nav-item */
.nav-list {
  transition: all 0.3s ease;
  cursor: pointer;
}

.nav-list:hover {
  background: rgba(59, 130, 246, 0.03);
  border-radius: var(--radius-sm);
}

.nav-list.active {
  background: rgba(59, 130, 246, 0.05);
  border-left: 3px solid var(--accent-primary);
  padding-left: calc(1rem - 3px);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.nav-item {
  transition: all 0.3s ease;
  cursor: pointer;
}

.nav-item:hover {
  background: rgba(59, 130, 246, 0.04);
  border-radius: var(--radius-sm);
  margin: 0.125rem 0;
}

.nav-item.active {
  background: rgba(59, 130, 246, 0.08);
  border-radius: var(--radius-sm);
  margin: 0.125rem 0;
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.15);
}

.nav-item.active .nav-link {
  background: transparent;
}

.nav-item.active .nav-link.active {
  background: var(--accent-primary);
  color: white;
}

/* Ensure accordion triggers maintain active state */
.accordion-trigger.active {
  background: var(--accent-primary) !important;
  color: white !important;
}

/* Content area */
.content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  width: 100%;
  min-width: 0;
}

.section {
  margin-bottom: 3rem;
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

.section-title {
  color: var(--text-primary);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Endpoint headings - smaller than main resource heading */
.section-title.endpoint-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
  /* text-transform: capitalize; */
}

.section-description {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* API Stats */
.api-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Content blocks */
.content-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

.content-block p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.content-block p:last-of-type {
  margin-bottom: 1.5rem;
}

.highlight-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.highlight-box h4 {
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.highlight-box ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.highlight-box li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.75rem;
  padding-left: 0;
}

.highlight-box li:last-child {
  margin-bottom: 0;
}

.highlight-box strong {
  color: var(--text-primary);
}

/* Resource cards */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.resource-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
}

.resource-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.resource-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.resource-header h3 a {
  color: var(--text-primary);
  text-decoration: none;
}

.resource-header h3 a:hover {
  color: var(--accent-primary);
}

.endpoint-count {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
}

.resource-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.resource-actions {
  display: flex;
  gap: 1rem;
}

.btn-primary {
  background: var(--accent-primary);
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: var(--accent-secondary);
  transform: translateY(-1px);
}

/* Accordion Navigation Styles */
.accordion-trigger {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}

.accordion-trigger::after {
  content: '▼';
  font-size: 0.75rem;
  transition: transform 0.3s ease;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.accordion-trigger.active::after {
  transform: rotate(180deg);
}

.accordion-icon {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.accordion-trigger.active .accordion-icon {
  transform: rotate(180deg);
}

.nav-accordion {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  margin: 0.5rem 0 0 0;
}

.nav-accordion.active {
  max-height: 1000px;
  padding: 0.5rem 0;
}

.sub-link {
  font-size: 0.875rem !important;
  padding: 0.5rem 1rem !important;
  margin: 0 !important;
  border-left: 2px solid transparent;
  /* text-transform: capitalize; */
}

.sub-link:hover {
  border-left-color: var(--accent-primary);
  background: var(--bg-secondary);
}

.sub-link.active {
  border-left-color: var(--accent-primary);
  background: var(--bg-secondary);
  color: var(--accent-primary);
}

/* Resource page specific styles */
.method-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-right: 0.75rem;
  text-align: center;
  min-width: 50px;
  letter-spacing: 0.025em;
}

.method-GET { background: var(--success); color: white; }
.method-POST { background: var(--accent-primary); color: white; }
.method-PUT { background: var(--warning); color: white; }
.method-DELETE { background: var(--error); color: white; }
.method-PATCH { background: var(--accent-secondary); color: white; }

/* Small method badges for sidebar */
.method-badge-small {
  display: inline-block;
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-right: 0.5rem;
  text-align: center;
  min-width: 35px;
  letter-spacing: 0.025em;
}

/* OAuth Scope styles */
.oauth-scopes {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.scopes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.scope-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  font-family: 'Monaco', 'Menlo', monospace;
  letter-spacing: 0.025em;
  transition: all 0.2s ease;
  border: 1px solid var(--border-color);
}

/* .scope-badge:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1), var(--shadow-md);
} */

.endpoint-header {
  margin-bottom: 1.5rem;
}

.endpoint-url {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.endpoint-url code {
  color: var(--text-primary);
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 1rem;
  font-weight: 600;
}

.parameters-section {
  margin: 2rem 0;
}

.parameters-table-wrapper {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-secondary);
}

.parameters-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-secondary);
}

.parameters-table thead {
  background: var(--bg-tertiary);
}

.parameters-table th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.parameter-row {
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
}

.parameter-row:hover {
  background: var(--bg-tertiary);
}

.parameter-row:last-child {
  border-bottom: none;
}

.parameters-table td {
  padding: 1.5rem;
  vertical-align: top;
  border-bottom: 1px solid var(--border-color);
}

.parameter-name {
  font-family: 'Monaco', 'Menlo', monospace;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.parameter-type {
  background: var(--accent-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  display: inline-block;
}

.parameter-required {
  background: var(--error);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  display: inline-block;
}

.parameter-required-conditional {
  background: var(--success);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  display: inline-block;
}

.parameter-optional {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  display: inline-block;
}

.parameter-location {
  background: var(--warning);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  display: inline-block;
}

.parameter-description {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
  margin: 0;
}

.parameter-description code {
  background: var(--bg-tertiary);
  color: var(--accent-primary);
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  font-size: 0.875rem;
  font-family: 'Monaco', 'Menlo', monospace;
  font-weight: 500;
}

/* Enhanced Response section layout */
.response-header {
  margin-bottom: 1.5rem;
}

.response-controls {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}

.response-info-inline {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}

.response-status-inline {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.response-status-inline.active {
  display: flex;
}

.response-picker-container, .code-picker-container {
  min-width: 220px;
  flex-shrink: 0;
}

.response-picker, .code-picker {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.response-picker:hover, .code-picker:hover {
  border-color: var(--accent-primary);
  background-color: var(--bg-secondary);
}

.response-picker:focus, .code-picker:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.response-status-badge, .code-language-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  min-width: 50px;
  letter-spacing: 0.025em;
}

/* Status code colors */
.status-200, .status-201, .status-202, .status-204 {
  background: var(--success);
  color: white;
}

.status-400, .status-401, .status-403, .status-404, .status-409, .status-422 {
  background: var(--error);
  color: white;
}

.status-500, .status-502, .status-503 {
  background: var(--error);
  color: white;
}

.status-300, .status-301, .status-302 {
  background: var(--warning);
  color: white;
}

.response-description, .code-language-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
  font-weight: 500;
}

/* Code Examples section */
.code-examples-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  gap: 1.5rem;
}

.code-examples-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}

.code-language-info {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.code-language-info.active {
  display: flex;
}

/* Language badge colors */
.code-language-badge {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.code-language-badge.active {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.code-language-badge[data-language="curl"] {
  background: var(--success);
  color: white;
}

.code-language-badge[data-language="javascript"] {
  background: #f7df1e;
  color: #000;
}

.code-language-badge[data-language="python"] {
  background: #3776ab;
  color: white;
}

/* Responsive design for response and code sections */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    min-width: 100%;
    height: auto;
    position: relative;
    top: 0;
  }

  .content {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
  }

  .response-controls, .code-examples-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .response-picker-container, .code-picker-container {
    width: 100%;
    min-width: unset;
  }

  .response-info-inline, .code-examples-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .response-status-inline, .code-language-info {
    gap: 0.5rem;
  }

  /* Responsive parameters table */
  .parameters-table-wrapper {
    overflow-x: auto;
  }

  .parameters-table {
    min-width: 600px;
  }

  .parameters-table th,
  .parameters-table td {
    padding: 1rem;
  }
}

/* Ensure content doesn't overflow */
* {
  box-sizing: border-box;
}

.content * {
  max-width: 100%;
}

/* Scope Table Styles */

.scope-table-wrapper {

  border: 1px solid var(--border-color);

  border-radius: var(--radius-md);

  overflow: hidden;

  background: var(--bg-secondary);

  margin: 1rem 0;

}



.scope-table {

  width: 100%;

  border-collapse: collapse;

  background: var(--bg-secondary);

  font-size: 0.875rem;

  border: none;

}



.scope-table thead {

  background: var(--bg-tertiary);

}



.scope-table th {

  padding: 0.75rem 1rem;

  text-align: left;

  font-weight: 600;

  color: var(--text-primary);

  border-bottom: 1px solid var(--border-color);

  text-transform: uppercase;

  letter-spacing: 0.025em;

  font-size: 0.8125rem;

}



.scope-table td {

  padding: 0.75rem 1rem;

  color: var(--text-secondary);

  border-bottom: 1px solid var(--border-color);

  vertical-align: top;

}



.scope-table tr:last-child td {

  border-bottom: none;

}



.scope-table tr:hover {

  background: var(--bg-tertiary);

  transition: background-color 0.2s ease;

}



.scope-table td:first-child {

  font-family: 'Monaco', 'Menlo', monospace;

  font-weight: 600;

  color: var(--text-primary);

  background: var(--bg-code);

  border-right: 1px solid var(--border-color);

}



.scope-table td:last-child {

  font-family: 'Monaco', 'Menlo', monospace;

  color: var(--accent-primary);

  font-size: 0.8125rem;

}

/* Fix for code blocks and pre elements */
pre, code {
  overflow-x: auto;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.code-tabs {
  margin: 1rem 0;
}

.tab-btn {
  transition: all 0.3s ease;
}

.tab-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.copy-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.3s ease;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.copy-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--accent-primary);
}

/* Fix for interactive buttons */
.status-btn, .tab-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.875rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.status-btn:hover, .tab-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--accent-primary);
}

.status-btn.active, .tab-btn.active {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

/* Section spacing improvements */
.request-section {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}

.request-section h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.response-section {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}

.response-section h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.code-examples {
  margin-top: 1rem;
  padding-top: 1rem;
}

.parameters-section {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}

/* Language Selector Styles */
.language-selector {
  position: relative;
  margin-left: auto;
}

.language-selector select {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  transition: all 0.2s ease;
}

.language-selector select:hover {
  border-color: var(--accent-primary);
  background-color: var(--bg-tertiary);
}

.language-selector select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.language-selector select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 0.5rem;
}

/* Integration with existing navigation */
.main-nav .language-selector {
  display: flex;
  align-items: center;
}

.header .language-selector {
  display: flex;
  align-items: center;
}

/* Topbar integration */
.topbar-right .language-selector {
  display: flex;
  align-items: center;
  margin-right: 1rem;
}

.topbar-right .language-selector select {
  font-size: 0.8rem;
  padding: 0.4rem 1.5rem 0.4rem 0.6rem;
  min-width: 120px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .language-selector {
    margin-left: 0;
    margin-top: 0.5rem;
  }
  
  .language-selector select {
    width: 100%;
  }
  
  .topbar-right .language-selector {
    margin-right: 0.5rem;
  }
  
  .topbar-right .language-selector select {
    min-width: 100px;
    font-size: 0.75rem;
  }
}
