:root {
    /* Matching homepage dark theme */
    --primary: #6366f1;
    --primary-light: #8b5cf6;
    --accent: #22c55e;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --border: #334155;
    --border-light: #475569;
    --code-bg: #1e293b;
    --code-text: #cbd5e1;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

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

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

.container {
    display: flex;
    min-height: 100vh;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 32px;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.header-logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-logo {
    height: 32px;
    width: auto;
}

.header-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.header-logo-link:hover {
    opacity: 0.8;
}

.header-divider {
    color: var(--border);
    font-size: 24px;
    font-weight: 300;
}

.header-docs-label {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
}

.header h1 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
}

.search-container {
    display: flex;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 600px;
}

.search-input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.2s ease;
    height: 40px;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
    background: var(--bg-secondary);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon::before {
    content: '';
    width: 12px;
    height: 12px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    position: relative;
}

.search-icon::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 6px;
    background: currentColor;
    transform: rotate(45deg);
    top: 10px;
    left: 10px;
}

/* Search filtering styles */
.search-active .section:not(.visible) {
    display: none;
}

.search-active .content > .page-title,
.search-active .content > .page-subtitle {
    display: none;
}

.search-active .no-results {
    display: block;
}

.no-results {
    display: none;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 16px;
}

.search-highlight {
    background: rgba(255, 235, 59, 0.4);
    font-weight: 500;
    padding: 1px 2px;
    border-radius: 2px;
}

/* Tabs */
.tabs-container {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    height: 48px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 32px;
    margin-left: 240px;
    gap: 8px;
    z-index: 99;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
}

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

.tab-btn.active {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.tab-content {
    padding-top: 108px; /* 60px header + 48px tabs */
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}

.tab-content.tab-hiding {
    opacity: 0;
}

.tab-content .container {
    padding-top: 0;
}

/* Playground Tab Styles */
#playgroundTab {
    width: 100%;
}

.playground-tab-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 32px;
}

.playground-tab-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.playground-tab-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.search-stats {
    position: fixed;
    top: 118px;
    right: 24px;
    background: var(--bg-secondary);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-muted);
    border: 1px solid var(--border);
    display: none;
    z-index: 90;
}

.search-active .search-stats {
    display: block;
}

/* Sidebar */
.sidebar {
    width: 240px;
    position: fixed;
    top: 60px;
    left: 0;
    height: calc(100vh - 60px);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    padding: 24px 0 40px 0;
}

.nav-group {
    margin-bottom: 28px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-secondary);
}

.nav-group:last-child {
    border-bottom: none;
}

.nav-group-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 10px 16px;
    margin: 0 8px 12px 8px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    border-radius: 6px;
    border-left: 3px solid var(--primary);
}

.nav-item {
    display: block;
    padding: 7px 24px 7px 28px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.15s ease;
    border-left: 2px solid var(--border-secondary);
    margin-left: 16px;
}

.nav-item:hover {
    color: var(--primary);
    background: var(--bg-primary);
}

.nav-item.active {
    color: var(--primary);
    background: var(--bg-primary);
    border-left-color: var(--primary);
    font-weight: 500;
}

/* Main Content */
.main {
    flex: 1;
    margin-left: 240px;
    margin-top: 108px;
}

.content {
    max-width: 1600px;
    padding: 40px 80px 120px 80px;
}

/* Section Styling - Card-like appearance */
.section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 32px 36px;
    margin-bottom: 32px;
    border: 1px solid var(--border-secondary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.section:hover {
    border-color: var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

/* Typography */
.page-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.page-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.7;
}

h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

h2::before {
    content: "§ ";
    opacity: 0.5;
}

h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 28px 0 14px 0;
    padding: 10px 14px;
    background: linear-gradient(90deg, var(--bg-tertiary) 0%, transparent 100%);
    border-left: 3px solid var(--accent);
    border-radius: 0 6px 6px 0;
}

h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 20px 0 10px 0;
    opacity: 0.9;
}

p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.75;
    font-size: 15px;
}

ul, ol {
    margin: 16px 0 16px 8px;
    color: var(--text-secondary);
    padding-left: 20px;
}

ul {
    list-style: none;
}

ul li::before {
    content: "▸";
    color: var(--primary);
    font-size: 12px;
    margin-right: 10px;
    margin-left: -20px;
}

ol li {
    padding-left: 8px;
}

li {
    margin-bottom: 10px;
    line-height: 1.65;
    font-size: 15px;
}

li strong {
    color: var(--text-primary);
}

/* Code Blocks */
.code-block {
    background: var(--code-bg);
    color: var(--code-text);
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: auto;
    position: relative;
}

.code-block .copy-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--code-text);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.code-block:hover .copy-btn {
    opacity: 1;
}

.code-block .copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Inline code */
code {
    background: var(--bg-tertiary);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    font-size: 13px;
}

/* Syntax highlighting */
.token-keyword { color: #c792ea; }
.token-variable { color: #82aaff; }
.token-operator { color: #89ddff; }
.token-number { color: #f78c6c; }
.token-comment { color: #676e95; font-style: italic; }
.token-ticker { color: #ff9cac; font-weight: bold; }

/* Tables */
.api-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.api-table th {
    background: var(--bg-secondary);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.api-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
}

.api-table tr:last-child td {
    border-bottom: none;
}

.api-table .param-name {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}

.api-table .param-type {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 3px;
}

/* Error Code Tables */
.error-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 32px 0;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    font-size: 14px;
}

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

.error-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
    line-height: 1.5;
}

.error-table tr:last-child td {
    border-bottom: none;
}

.error-table tr:hover {
    background: var(--bg-secondary);
}

.error-table td:first-child code {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'SF Mono', Monaco, monospace;
    white-space: nowrap;
}

.error-table td:nth-child(2) {
    font-weight: 500;
    color: var(--text-primary);
}

.error-table td:nth-child(3) {
    color: var(--text-secondary);
}

.error-table td:nth-child(4) {
    color: var(--text-muted);
    font-size: 13px;
}

/* Warning/Info Boxes */
.callout {
    border-radius: 10px;
    padding: 20px 24px;
    margin: 28px 0;
    border-left: 4px solid;
    position: relative;
}

.callout::before {
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 20px;
    opacity: 0.6;
}

.callout-info {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(99, 102, 241, 0.06) 100%);
    border-left-color: var(--primary);
}

.callout-info::before {
    content: "💡";
}

.callout-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.06) 100%);
    border-left-color: #f59e0b;
}

.callout-warning::before {
    content: "⚠️";
}

.callout-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0.06) 100%);
    border-left-color: var(--accent);
}

.callout-success::before {
    content: "✅";
}

.callout h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--text-primary);
    padding: 0;
    background: none;
    border: none;
}

.callout h4::before {
    content: none;
}

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

.callout code {
    background: rgba(0, 0, 0, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

/* Example Sections */
.example-section {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 24px;
    margin: 32px 0;
}

.example-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.example-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 200;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .tabs-container {
        margin-left: 0;
    }

    .main {
        margin-left: 0;
    }

    .content {
        padding: 24px 20px 80px 20px;
    }

    .header {
        padding: 0 20px;
    }

    .header-content {
        gap: 16px;
    }

    .header-logo {
        height: 28px;
    }

    .header-docs-label {
        display: none;
    }

    .header-divider {
        display: none;
    }

    .search-container {
        max-width: none;
        flex: 1;
    }

    .search-input {
        font-size: 13px;
        height: 32px;
        padding: 6px 12px 6px 32px;
    }

    .search-stats {
        position: relative;
        top: auto;
        right: auto;
        margin: 16px 0;
        display: inline-block;
    }

    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        font-size: 18px;
        color: var(--text-primary);
        cursor: pointer;
    }
}

.mobile-menu-btn {
    display: none;
    margin-left: auto;
    flex-shrink: 0;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.nav-item:focus,
button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Syntax Diagram */
.syntax-diagram-container {
    margin: 32px 0;
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow-x: auto;
}

.syntax-diagram {
    width: 100%;
    height: auto;
    display: block;
    max-width: 1000px;
    margin: 0 auto;
}
/* ========================================
   Playground Styles
   ======================================== */

.playground-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    grid-template-rows: auto 1fr;
    gap: 20px;
    margin-top: 24px;
}

.playground-editor-panel {
    grid-column: 1;
    grid-row: 1 / 3;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.playground-config-panel {
    grid-column: 2;
    grid-row: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.playground-output-panel {
    grid-column: 2;
    grid-row: 2;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.playground-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.playground-actions {
    display: flex;
    gap: 8px;
}

.btn-playground {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-playground.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-playground.btn-primary:hover {
    background: var(--primary-light);
}

.btn-playground.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-playground.btn-secondary:hover {
    background: var(--border);
}

.btn-playground.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-playground.btn-ghost:hover {
    background: var(--bg-tertiary);
}

.btn-playground.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

.btn-icon {
    font-size: 11px;
}

.playground-editor-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    min-height: 500px;
}

.playground-line-numbers {
    padding: 16px 12px;
    background: #1e293b;
    color: #64748b;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.6;
    text-align: right;
    user-select: none;
    border-right: 1px solid var(--border);
    min-width: 40px;
    overflow: hidden;
    white-space: pre;
}

.playground-editor-container {
    position: relative;
    flex: 1;
    overflow: auto;
}

.playground-highlighter {
    position: absolute;
    top: 0;
    left: 0;
    padding: 16px;
    margin: 0;
    background: #1e293b;
    color: var(--text-primary);
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre;
    overflow-wrap: normal;
    pointer-events: none;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.playground-editor {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 16px;
    background: transparent;
    color: transparent;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.6;
    border: none;
    outline: none;
    resize: none;
    white-space: pre;
    overflow-wrap: normal;
    z-index: 2;
    caret-color: #cbd5e1;
    -webkit-text-fill-color: transparent;
}

.playground-editor::placeholder {
    color: #64748b;
    -webkit-text-fill-color: #64748b;
    opacity: 1;
}

/* Monaco Theme Colors - Dark mode optimized */
.hl-command {
    color: #fbbf24;
    font-weight: 600;
}

.hl-condition {
    color: #60a5fa;
    font-weight: 600;
}

.hl-amount {
    color: #fb923c;
    font-weight: 600;
}

.hl-at {
    color: #34d399;
    font-weight: 600;
}

.hl-variable {
    color: #f472b6;
    font-weight: 600;
}

.hl-ticker {
    color: #2dd4bf;
    font-weight: 600;
}

.hl-comment {
    color: #6ee7b7;
    font-style: italic;
}

.hl-number {
    color: #a78bfa;
}

.playground-variables {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    max-height: 300px;
}

.playground-variable-group {
    margin-bottom: 12px;
}

.playground-variable-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
}

.playground-variable-input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: all 0.2s ease;
}

.playground-variable-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(44, 82, 130, 0.1);
}

.playground-output {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 12px;
    line-height: 1.6;
}

.playground-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 120px;
    text-align: center;
    color: var(--text-muted);
}

.playground-empty-state p {
    margin: 4px 0;
    font-size: 13px;
}

.playground-empty-state .text-muted {
    font-size: 12px;
    color: var(--text-muted);
}

.playground-output-line {
    padding: 6px 8px;
    margin-bottom: 4px;
    border-radius: 4px;
    border-left: 3px solid transparent;
}

.playground-output-line.line-info {
    background: rgba(99, 102, 241, 0.15);
    border-left-color: var(--primary);
}

.playground-output-line.line-success {
    background: rgba(34, 197, 94, 0.15);
    border-left-color: var(--accent);
}

.playground-output-line.line-warning {
    background: rgba(245, 158, 11, 0.15);
    border-left-color: #fb923c;
}

.playground-output-line.line-error {
    background: rgba(239, 68, 68, 0.15);
    border-left-color: #ef4444;
}

.playground-output-line .line-label {
    font-weight: 600;
    margin-right: 8px;
}

.playground-output-line.line-info .line-label {
    color: #a78bfa;
}

.playground-output-line.line-success .line-label {
    color: #4ade80;
}

.playground-output-line.line-warning .line-label {
    color: #fbbf24;
}

.playground-output-line.line-error .line-label {
    color: #f87171;
}

.playground-output-line .line-detail {
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
    display: block;
    margin-top: 4px;
    padding-left: 8px;
}

.playground-output-line .line-action {
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 600;
    display: block;
    margin-top: 4px;
    padding-left: 8px;
}

.playground-output-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.playground-output-section:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.playground-output-section-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 13px;
}

/* Autocomplete Dropdown */
.playground-autocomplete {
    position: absolute;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    min-width: 200px;
}

.autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 13px;
    color: var(--text-primary);
    transition: background-color 0.1s ease;
}

.autocomplete-item:hover {
    background: var(--bg-tertiary);
}

.autocomplete-item.selected {
    background: var(--primary);
    color: white;
}

.autocomplete-item:first-child {
    border-radius: 6px 6px 0 0;
}

.autocomplete-item:last-child {
    border-radius: 0 0 6px 6px;
}

/* Responsive */
@media (max-width: 1024px) {
    .playground-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .playground-editor-panel {
        grid-column: 1;
        grid-row: 1;
    }

    .playground-config-panel {
        grid-column: 1;
        grid-row: 2;
    }

    .playground-output-panel {
        grid-column: 1;
        grid-row: 3;
    }

    .playground-variables {
        max-height: none;
    }
}
