/* TPay API Documentation - Professional Design */

:root {
    /* Colors - Dark Theme (Default) */
    --bg-main: #0f0f10;
    --bg-sidebar: #131316;
    --bg-code: #1a1a1f;
    --bg-card: #18181b;
    --bg-hover: #27272a;

    --border: #3f3f46;
    --border-subtle: #27272a;

    --text-primary: #fafafa;
    --text-secondary: #d4d4d8;
    --text-tertiary: #a1a1aa;

    --accent: #818cf8;
    --accent-hover: #a5b4fc;
    --accent-subtle: rgba(129, 140, 248, 0.15);

    --success: #4ade80;
    --success-bg: rgba(74, 222, 128, 0.15);
    --warning: #fbbf24;
    --warning-bg: rgba(251, 191, 36, 0.15);
    --error: #f87171;
    --error-bg: rgba(248, 113, 113, 0.15);
    --info: #60a5fa;
    --info-bg: rgba(96, 165, 250, 0.15);

    --post: #4ade80;
    --get: #60a5fa;
    --put: #fbbf24;
    --delete: #f87171;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Fira Code', 'Monaco', monospace;

    --sidebar-width: 260px;
    --header-height: 60px;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

[data-theme="light"] {
    --bg-main: #ffffff;
    --bg-sidebar: #f8fafc;
    --bg-code: #f1f5f9;
    --bg-card: #ffffff;
    --bg-hover: #f1f5f9;

    --border: #cbd5e1;
    --border-subtle: #e2e8f0;

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-tertiary: #64748b;

    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-subtle: rgba(99, 102, 241, 0.1);

    --success: #16a34a;
    --success-bg: rgba(22, 163, 74, 0.1);
    --warning: #ca8a04;
    --warning-bg: rgba(202, 138, 4, 0.1);
    --error: #dc2626;
    --error-bg: rgba(220, 38, 38, 0.1);
    --info: #2563eb;
    --info-bg: rgba(37, 99, 235, 0.1);

    --post: #16a34a;
    --get: #2563eb;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-main);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    /* Prevent body scroll */
}

/* Top Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 18px;
}

.main-nav {
    display: flex;
    gap: 8px;
}

.main-nav a {
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.15s;
}

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

.main-nav a.active {
    color: var(--text-primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.api-version {
    padding: 4px 10px;
    background: var(--accent-subtle);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.15s;
}

.btn-secondary:hover {
    color: var(--text-primary);
    border-color: var(--text-tertiary);
}

.icon-moon {
    display: none;
}

[data-theme="light"] .icon-sun {
    display: none;
}

[data-theme="light"] .icon-moon {
    display: block;
}

/* Layout */
.layout {
    display: flex;
    padding-top: var(--header-height);
    height: 100vh;
}

/* Sidebar - NO SCROLL */
.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    /* Allow sidebar scroll if too many items */
    padding: 20px 0;
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-title {
    padding: 0 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.15s;
    border-left: 2px solid transparent;
    cursor: pointer;
}

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

.sidebar-link.active {
    color: var(--accent);
    background: var(--accent-subtle);
    border-left-color: var(--accent);
}

.http-method {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: var(--font-mono);
}

.http-method.post {
    background: rgba(34, 197, 94, 0.2);
    color: var(--post);
}

.http-method.get {
    background: rgba(59, 130, 246, 0.2);
    color: var(--get);
}

/* Main Content - NO SCROLL, PAGES SWITCH */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    height: calc(100vh - var(--header-height));
    overflow: hidden;
    /* No scroll in main container */
}

.api-section {
    display: none;
    /* Hidden by default */
    grid-template-columns: 1fr 480px;
    height: 100%;
    overflow: hidden;
}

.api-section.active {
    display: grid;
    /* Show only active section */
}

.section-content {
    padding: 48px;
    max-width: 720px;
    overflow-y: auto;
    /* Only content scrolls */
    height: 100%;
}

.section-code {
    background: var(--bg-code);
    padding: 48px 24px;
    border-left: 1px solid var(--border);
    overflow-y: auto;
    /* Only code scrolls */
    height: 100%;
}

/* Typography */
h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

h3 {
    font-size: 14px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.intro-text {
    font-size: 16px;
    line-height: 1.7;
}

.summary-box {
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-left: 3px solid var(--success);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 24px 0;
}

.summary-box h3 {
    margin-top: 0;
    color: var(--success);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.summary-box p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.summary-box a {
    color: var(--accent);
}

code {
    font-family: var(--font-mono);
    font-size: 12px;
    background: rgba(129, 140, 248, 0.2);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    color: #c4b5fd;
    border: 1px solid rgba(129, 140, 248, 0.3);
}

pre code {
    background: none;
    padding: 0;
    color: var(--text-primary);
    border: none;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    background: var(--accent-subtle);
    color: var(--accent);
}

.badge.recommended {
    background: var(--success-bg);
    color: var(--success);
}

.badge-required {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--error-bg);
    color: var(--error);
}

.badge-optional {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--bg-hover);
    color: var(--text-tertiary);
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

/* Endpoint Header */
.endpoint-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.endpoint-header h1 {
    font-family: var(--font-mono);
    font-size: 20px;
    margin-bottom: 0;
}

.method-badge {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    color: white;
}

.method-badge.post {
    background: var(--post);
}

.method-badge.get {
    background: var(--get);
}

/* Info Card */
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin: 24px 0;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
}

.info-row:not(:last-child) {
    border-bottom: 1px solid var(--border-subtle);
}

.info-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
    min-width: 120px;
}

.base-url {
    font-size: 13px;
    background: var(--bg-code);
    padding: 6px 12px;
    border-radius: var(--radius-md);
}

/* Response Types */
.response-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0;
}

.response-type {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.response-type-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    background: var(--bg-card);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.success {
    background: var(--success);
}

.status-dot.error {
    background: var(--error);
}

.response-type pre {
    padding: 16px;
    margin: 0;
    font-size: 12px;
    overflow-x: auto;
    background: var(--bg-code);
}

.response-note {
    padding: 12px 16px;
    font-size: 12px;
    color: var(--text-tertiary);
    margin: 0;
    border-top: 1px solid var(--border-subtle);
}

/* Callouts */
.callout {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-md);
    margin: 20px 0;
}

.callout svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.callout strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

.callout p {
    margin: 0;
    font-size: 13px;
}

.callout a {
    color: inherit;
}

.callout.warning {
    background: var(--warning-bg);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--warning);
}

.callout.info {
    background: var(--info-bg);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--info);
}

.callout.success {
    background: var(--success-bg);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--success);
}

/* Tables */
.params-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 13px;
}

.params-table th {
    text-align: left;
    padding: 10px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    background: var(--bg-code);
    border-bottom: 1px solid var(--border);
}

.params-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    vertical-align: top;
}

.params-table td code {
    color: var(--text-primary);
}

.params-table.compact td {
    padding: 8px 12px;
}

/* Error List */
.error-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0;
}

.error-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.error-item code {
    font-size: 12px;
    flex-shrink: 0;
}

.error-item span {
    color: var(--text-secondary);
    font-size: 13px;
}

/* Status List */
.status-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.status-code {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-mono);
    border-radius: var(--radius-sm);
    color: white;
}

.status-code.success {
    background: var(--success);
}

.status-code.error {
    background: var(--error);
}

.status-code.pending {
    background: var(--warning);
}

.status-name {
    font-weight: 600;
    min-width: 80px;
}

.status-desc {
    color: var(--text-tertiary);
    font-size: 13px;
}

/* Code Panel */
.code-panel {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
}

.code-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.code-panel-header.success {
    background: var(--success-bg);
    color: var(--success);
}

.code-panel-header.error {
    background: var(--error-bg);
    color: var(--error);
}

.status-badge {
    padding: 2px 8px;
    background: var(--success);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 10px;
}

.code-panel pre {
    padding: 16px;
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    overflow-x: auto;
}

/* Code Tabs */
.code-tabs {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.code-tab {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.15s;
}

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

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

.code-content {
    display: block;
}

.code-content.hidden {
    display: none;
}

/* Setup Steps */
.setup-steps {
    margin: 16px 0;
    padding-left: 0;
    list-style: none;
    counter-reset: step;
}

.setup-steps li {
    position: relative;
    padding: 16px 16px 16px 56px;
    margin-bottom: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    counter-increment: step;
}

.setup-steps li::before {
    content: counter(step);
    position: absolute;
    left: 16px;
    top: 18px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
}

.setup-steps li strong {
    display: block;
    margin-bottom: 4px;
}

.setup-steps li p {
    margin: 0;
    font-size: 13px;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-code);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

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

/* Responsive */
@media (max-width: 1400px) {
    .api-section {
        grid-template-columns: 1fr 400px;
    }
}

@media (max-width: 1200px) {
    .api-section {
        grid-template-columns: 1fr;
    }

    .section-code {
        border-left: none;
        border-top: 1px solid var(--border);
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
    }

    .section-content {
        padding: 24px;
    }

    .section-code {
        padding: 24px;
    }

    .response-types {
        grid-template-columns: 1fr;
    }
}

/* Highlight.js overrides */
.hljs {
    background: transparent !important;
}

/* ============================================
   LIGHT THEME COMPREHENSIVE OVERRIDES
   ============================================ */

/* Code panel - keep dark for readability */
[data-theme="light"] .section-code {
    background: #1e293b;
}

[data-theme="light"] .code-panel {
    background: #0f172a;
    border-color: #334155;
}

[data-theme="light"] .code-panel pre code {
    color: #e2e8f0;
}

[data-theme="light"] .code-panel-header {
    background: #1e293b;
    color: #94a3b8;
    border-bottom-color: #334155;
}

[data-theme="light"] .code-panel-header.success {
    background: #064e3b;
    color: #6ee7b7;
}

[data-theme="light"] .code-tabs {
    background: #1e293b;
    border-bottom-color: #334155;
}

[data-theme="light"] .code-tab {
    color: #94a3b8;
}

[data-theme="light"] .code-tab:hover,
[data-theme="light"] .code-tab.active {
    color: #f1f5f9;
    background: #334155;
}

/* Inline code - light background */
[data-theme="light"] code {
    background: #e0e7ff;
    color: #3730a3;
}

[data-theme="light"] pre code {
    background: transparent;
    color: inherit;
}

/* Summary box */
[data-theme="light"] .summary-box {
    background: #f0fdf4;
    border-color: #bbf7d0;
    border-left-color: #22c55e;
}

[data-theme="light"] .summary-box h3 {
    color: #166534;
}

[data-theme="light"] .summary-box p {
    color: #374151;
}

[data-theme="light"] .summary-box a {
    color: #4f46e5;
    text-decoration: underline;
}

/* Status items */
[data-theme="light"] .status-name {
    color: #111827;
}

[data-theme="light"] .status-desc {
    color: #4b5563;
}

[data-theme="light"] .status-item {
    background: #f9fafb;
    border-color: #e5e7eb;
}

/* Callouts */
[data-theme="light"] .callout.warning {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}

[data-theme="light"] .callout.warning strong,
[data-theme="light"] .callout.warning p {
    color: #92400e;
}

[data-theme="light"] .callout.info {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1e40af;
}

[data-theme="light"] .callout.info strong,
[data-theme="light"] .callout.info p {
    color: #1e40af;
}

[data-theme="light"] .callout.success {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}

/* Tables */
[data-theme="light"] .params-table th {
    background: #f9fafb;
    color: #374151;
}

[data-theme="light"] .params-table td {
    color: #374151;
}

/* Cards */
[data-theme="light"] .info-card,
[data-theme="light"] .error-item {
    background: #f9fafb;
    border-color: #e5e7eb;
}

/* Setup steps */
[data-theme="light"] .setup-steps li {
    background: #f9fafb;
    border-color: #e5e7eb;
}

/* Links */
[data-theme="light"] a {
    color: #4f46e5;
}

[data-theme="light"] a:hover {
    color: #4338ca;
}

/* ============================================
   TRY IT PANEL STYLES
   ============================================ */

.try-it-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-top: 24px;
    overflow: hidden;
}

.try-it-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-hover);
    border-bottom: 1px solid var(--border);
}

.try-it-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.try-it-header h3::before {
    content: "⚡";
}

.try-it-body {
    padding: 20px;
}

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

.try-it-section:last-child {
    margin-bottom: 0;
}

.try-it-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

/* Form Fields */
.form-field {
    margin-bottom: 16px;
}

.form-field:last-child {
    margin-bottom: 0;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.form-label-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.form-label-type {
    font-size: 11px;
    color: var(--text-tertiary);
}

.badge-required {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--error-bg);
    color: var(--error);
}

.badge-optional {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--bg-hover);
    color: var(--text-tertiary);
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 13px;
    font-family: var(--font-mono);
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.form-input::placeholder {
    color: var(--text-tertiary);
}

.form-hint {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

/* Try It Button */
.try-it-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.15s;
}

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

.try-it-btn:active {
    transform: translateY(0);
}

.try-it-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.try-it-btn.loading {
    pointer-events: none;
}

.try-it-btn.loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Response Panel */
.response-panel {
    margin-top: 20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.response-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-hover);
    border-bottom: 1px solid var(--border);
}

.response-header span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.response-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-code-badge {
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    font-family: var(--font-mono);
}

.status-code-badge.success {
    background: var(--success);
    color: white;
}

.status-code-badge.error {
    background: var(--error);
    color: white;
}

.status-code-badge.warning {
    background: var(--warning);
    color: #000;
}

.response-time {
    font-size: 11px;
    color: var(--text-tertiary);
}

.response-body {
    padding: 16px;
    background: var(--bg-code);
    max-height: 400px;
    overflow-y: auto;
}

.response-body pre {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Status Codes List */
.status-codes-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.status-code-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.status-code-item .code {
    flex-shrink: 0;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-mono);
    border-radius: var(--radius-sm);
}

.status-code-item .code.s200 { background: var(--success-bg); color: var(--success); }
.status-code-item .code.s400 { background: var(--error-bg); color: var(--error); }
.status-code-item .code.s401 { background: var(--error-bg); color: var(--error); }
.status-code-item .code.s409 { background: var(--warning-bg); color: var(--warning); }
.status-code-item .code.s422 { background: var(--warning-bg); color: var(--warning); }
.status-code-item .code.s500 { background: var(--error-bg); color: var(--error); }

.status-code-item .desc {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Light theme overrides for Try It */
[data-theme="light"] .form-input {
    background: #ffffff;
    border-color: #d1d5db;
}

[data-theme="light"] .form-input:focus {
    border-color: var(--accent);
}

[data-theme="light"] .try-it-panel {
    background: #ffffff;
}

[data-theme="light"] .response-body {
    background: #1e293b;
}

[data-theme="light"] .response-body pre code {
    color: #e2e8f0;
}