/* Whitehall Playground - Modern UI */

:root {
    /* Match main site colors */
    --bg-primary: #0f1117;
    --bg-secondary: #0c0e12;
    --bg-tertiary: #161921;
    --bg-hover: #1e212a;
    --bg-active: #2d3139;

    --border: #2d3139;
    --border-subtle: #1e212a;

    --text-primary: #e5e7eb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    /* Coral accent from main site */
    --accent: #f87171;
    --accent-hover: #fca5a5;
    --accent-muted: #ef4444;

    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;

    --radius: 6px;
    --radius-sm: 4px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

/* Light mode - GitHub Light colors */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f6f8fa;
    --bg-tertiary: #f6f8fa;
    --bg-hover: #eaeef2;
    --bg-active: #d0d7de;

    --border: #d0d7de;
    --border-subtle: #eaeef2;

    --text-primary: #1f2328;
    --text-secondary: #59636e;
    --text-muted: #6e7781;

    --accent: #0969da;
    --accent-hover: #0550ae;
    --accent-muted: #218bff;

    --success: #1a7f37;
    --warning: #9a6700;
    --error: #d1242f;
}

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

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Header
   ============================================ */

header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    height: 56px;
}

.header-content {
    max-width: 100%;
    height: 100%;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Logo */
#logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
}

.logo-icon {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fef3c7 0%, #fca5a5 50%, #f87171 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-badge {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 2px 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 100px;
}

.header-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--radius);
    transition: all 0.15s ease;
}

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

/* Example navigation */
.example-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.nav-btn:first-child {
    border-radius: var(--radius) 0 0 var(--radius);
    border-right: none;
}

.nav-btn:last-child {
    border-radius: 0 var(--radius) var(--radius) 0;
    border-left: none;
}

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

#examples {
    height: 32px;
    padding: 0 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 13px;
    font-family: var(--font-sans);
    cursor: pointer;
    min-width: 180px;
}

#examples:focus {
    outline: none;
    border-color: var(--accent);
}

/* Buttons */
.btn {
    height: 32px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-sans);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

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

.btn-primary {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: white;
}

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

.btn-sm {
    height: 26px;
    padding: 0 10px;
    font-size: 12px;
}

/* Status indicator */
#status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    margin-left: 8px;
    transition: all 0.2s ease;
}

#status-indicator.compiling {
    background: var(--warning);
    box-shadow: 0 0 8px var(--warning);
    animation: pulse 1.5s ease-in-out infinite;
}

#status-indicator.success {
    background: var(--success);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

#status-indicator.error {
    background: var(--error);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ============================================
   Main Layout - 3 Column
   ============================================ */

main {
    display: flex;
    height: calc(100vh - 56px);
}

/* Preview pane (right column) */
.preview-pane {
    width: 340px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    overflow: hidden;
    transition: width 0.2s ease, opacity 0.2s ease;
}

.preview-pane.collapsed {
    width: 0 !important;
    opacity: 0;
    pointer-events: none;
}

/* Phone frame should not shrink */
.phone-frame {
    flex-shrink: 0;
}

#resize-output-preview.hidden {
    display: none;
}

/* ============================================
   Sidebars
   ============================================ */

#file-sidebar,
#output-file-tree-container {
    width: 200px;
    min-width: 200px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

#output-file-tree-container {
    border-right: 1px solid var(--border);
}

.sidebar-header {
    height: 40px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.sidebar-header span {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.sidebar-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.icon-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

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

/* Settings dropdown */
.settings-dropdown {
    position: relative;
}

.settings-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    min-width: 180px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 100;
    padding: 4px;
}

.settings-menu.hidden {
    display: none;
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background 0.1s ease;
}

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

.settings-item input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
}

#file-tree,
#output-file-tree {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0;
}

/* Collapsed states */
#file-sidebar.collapsed,
#output-file-tree-container.collapsed {
    width: 40px !important;
    min-width: 40px !important;
}

#file-sidebar.collapsed #files-label,
#file-sidebar.collapsed #add-file-btn,
#file-sidebar.collapsed #file-tree,
#output-file-tree-container.collapsed #output-files-label,
#output-file-tree-container.collapsed #output-file-tree {
    display: none;
}

/* File items */
.file-item {
    height: 28px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 13px;
    border-left: 2px solid transparent;
    transition: all 0.1s ease;
}

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

.file-item.active {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-left-color: var(--accent);
}

.file-item-icon {
    font-size: 12px;
    opacity: 0.6;
    width: 14px;
    text-align: center;
}

.file-item.active .file-item-icon {
    opacity: 1;
}

.file-item.file-success .file-item-icon {
    color: var(--success);
}

.file-item.file-error .file-item-icon {
    color: var(--error);
}

.file-item-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-item-actions {
    display: none;
    gap: 2px;
}

.file-item:hover .file-item-actions {
    display: flex;
}

.file-item-action-btn {
    padding: 2px 4px;
    font-size: 10px;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 2px;
}

.file-item-action-btn:hover {
    color: var(--text-primary);
    background: var(--bg-active);
}

/* ============================================
   Editor Pane
   ============================================ */

.editor-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 300px;
}

.pane-header {
    height: 40px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

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

.pane-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.delete-btn {
    font-size: 12px;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.delete-btn:hover {
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

#editor {
    flex: 1;
    min-height: 0;
}

/* ============================================
   Output Pane - Split View
   ============================================ */

.output-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 300px;
}

/* Top section: Preview */
.preview-section {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

/* Horizontal resize handle (between columns) */
.resize-handle-vertical {
    width: 6px;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    cursor: ew-resize;
    flex-shrink: 0;
    transition: background 0.15s ease;
    position: relative;
}

.resize-handle-vertical:hover,
.resize-handle-vertical.dragging {
    background: var(--accent);
}

.resize-handle-vertical::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 24px;
    background: var(--text-muted);
    border-radius: 1px;
    opacity: 0.5;
}

.resize-handle-vertical:hover::after,
.resize-handle-vertical.dragging::after {
    opacity: 0;
}

/* Vertical resize handle (between rows) */
.resize-handle {
    height: 6px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    cursor: ns-resize;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.resize-handle:hover,
.resize-handle.dragging {
    background: var(--accent);
}

/* Bottom section: Code output */
.code-output-section {
    height: 280px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

.code-output-content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Tabs */
.tabs {
    height: 40px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.tab {
    height: 40px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.15s ease;
    margin-bottom: -1px;
}

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

.tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent);
}

.error-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 1px 6px;
    background: var(--error);
    color: white;
    border-radius: 100px;
}

.error-badge.hidden {
    display: none;
}

.copy-btn {
    margin-left: auto;
    height: 28px;
}

.output-panels {
    flex: 1;
    overflow: auto;
    background: var(--bg-primary);
}

.panel {
    height: 100%;
}

.panel.hidden {
    display: none;
}

.panel pre {
    padding: 16px;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
}

/* Shiki override */
#kotlin-panel pre {
    background: transparent !important;
}

/* Kotlin error state */
.kotlin-error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    height: 100%;
}

.kotlin-error-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--error) 15%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.kotlin-error-icon svg {
    width: 24px;
    height: 24px;
    color: var(--error);
}

.kotlin-error-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--error);
    margin-bottom: 8px;
}

.kotlin-error-message {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 12px;
    max-width: 300px;
}

.kotlin-error-hint {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   Errors Panel
   ============================================ */

#errors-panel {
    padding: 0;
    overflow: auto;
}

/* Success state */
.success-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
}

.success-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--success) 15%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.success-icon svg {
    width: 24px;
    height: 24px;
    color: var(--success);
}

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

.success-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

/* Simple error list */
.error-list {
    font-family: var(--font-mono);
    font-size: 12px;
}

.error-row {
    display: flex;
    gap: 16px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.1s ease;
}

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

.error-row.clickable {
    cursor: pointer;
}

.error-row.clickable:hover {
    background: var(--bg-hover);
}

.error-line {
    color: var(--error);
    font-weight: 500;
    min-width: 50px;
    flex-shrink: 0;
}

.error-text {
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-word;
}

/* ============================================
   Preview Panel & Phone Frame
   ============================================ */

#preview-panel {
    padding: 0;
    overflow: auto;
    background: var(--bg-secondary);
}

.preview-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 16px;
    transform-origin: center center;
}

/* Frameless preview mode */
.frameless-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.frameless-preview.hidden {
    display: none;
}

.frameless-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #ffffff;
}

/* Hide phone frame when frameless is active */
.preview-container.frameless .phone-frame {
    display: none;
}

.preview-container.frameless .frameless-preview {
    display: flex;
}

/* Pixel 10 Pro XL style frame */
.phone-frame {
    position: relative;
    width: 300px;
    height: 660px;
    background: #1a1a1a;
    border-radius: 32px;
    padding: 8px;
    box-shadow:
        0 0 0 1px #333,
        0 0 0 3px #1a1a1a,
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px #444;
}

/* Light mode phone frame */
[data-theme="light"] .phone-frame {
    background: #e8e8e8;
    box-shadow:
        0 0 0 1px #ccc,
        0 0 0 3px #e8e8e8,
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        inset 0 0 0 1px #d0d0d0;
}

/* Power button on right side */
.phone-frame::before {
    content: '';
    position: absolute;
    right: -3px;
    top: 120px;
    width: 3px;
    height: 50px;
    background: #333;
    border-radius: 0 2px 2px 0;
}

[data-theme="light"] .phone-frame::before {
    background: #bbb;
}

/* Volume buttons on right side */
.phone-frame::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 190px;
    width: 3px;
    height: 80px;
    background: #333;
    border-radius: 0 2px 2px 0;
}

[data-theme="light"] .phone-frame::after {
    background: #bbb;
}

/* Punch-hole camera (Pixel style) */
.phone-notch {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #000;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 0 2px #1a1a1a;
}

[data-theme="light"] .phone-notch {
    background: #333;
    box-shadow: 0 0 0 2px #e8e8e8;
}

/* No need for notch::before anymore */
.phone-notch::before {
    display: none;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

#preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #ffffff;
    transition: opacity 0.1s ease-out;
}

#preview-iframe.updating {
    opacity: 0.5;
}

/* Gesture bar at bottom (Android style) */
.phone-home-indicator {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 2px;
}

[data-theme="light"] .phone-home-indicator {
    background: rgba(0, 0, 0, 0.2);
}

/* Preview loading state */
.preview-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-size: 13px;
}

.preview-loading .spinner {
    margin-bottom: 12px;
}

/* Preview error state */
.preview-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    height: 100%;
    color: var(--error);
}

.preview-error-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* ============================================
   Toast
   ============================================ */

#toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    font-size: 13px;
    color: var(--text-primary);
    animation: slideIn 0.2s ease-out;
}

#toast.hidden {
    display: none;
}

@keyframes slideIn {
    from {
        transform: translateY(10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================
   Modal
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.modal-overlay.hidden {
    display: none;
}

.modal {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    min-width: 320px;
    max-width: 400px;
    animation: modalIn 0.15s ease-out;
}

@keyframes modalIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    padding: 16px 20px 12px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.modal-body {
    padding: 0 20px 16px;
}

.modal-body p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 12px;
}

.modal-input {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    font-family: var(--font-mono);
}

.modal-input:focus {
    outline: none;
    border-color: var(--accent);
}

.modal-footer {
    padding: 12px 20px 16px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ============================================
   Utilities
   ============================================ */

.hidden {
    display: none !important;
}

.spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Monaco error decorations */
.error-line-decoration {
    background: color-mix(in srgb, var(--error) 10%, transparent) !important;
}

.error-glyph {
    background: var(--error) !important;
    width: 4px !important;
    margin-left: 3px;
    border-radius: 2px;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    /* Hide preview pane on smaller screens */
    .preview-pane {
        display: none;
    }
}

@media (max-width: 768px) {
    main {
        flex-direction: column;
    }

    #file-sidebar,
    #output-file-tree-container {
        width: 100% !important;
        height: 120px;
        min-height: 120px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .editor-pane {
        flex: 1;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .preview-pane {
        display: none;
    }

    .output-pane {
        width: 100%;
        flex: 1;
        min-width: 0;
    }

    .header-left {
        flex-wrap: wrap;
        gap: 12px;
    }

    .example-nav {
        width: 100%;
    }

    #examples {
        flex: 1;
    }

    .file-item-actions {
        display: flex;
    }
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--bg-active);
}
