/* ========================================
   CSS Variables & Theme System
   ======================================== */

:root {
    /* Dark Theme (Default) */
    --bg-primary: #0d0f12;
    --bg-secondary: #11141a;
    --bg-tertiary: #1a1f27;
    --bg-hover: #222833;

    --border-primary: #1e242d;
    --border-secondary: #2a303a;

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

    --accent-primary: #3b82f6;
    --accent-hover: #2563eb;
    --accent-light: rgba(59, 130, 246, 0.1);

    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #06b6d4;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);

    --editor-bg: #0d0f12;
    --preview-bg: #ffffff;
    --console-bg: #11141a;

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

/* Light Theme */
body.light-mode {
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --bg-hover: #e5e7eb;

    --border-primary: #e5e7eb;
    --border-secondary: #d1d5db;

    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;

    --accent-primary: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: rgba(37, 99, 235, 0.1);

    --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);

    --editor-bg: #ffffff;
    --preview-bg: #ffffff;
    --console-bg: #f9fafb;
}

/* ========================================
   Reset & Base Styles
   ======================================== */

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

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.logo svg {
    color: var(--accent-primary);
    flex-shrink: 0;
}

.logo-text {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.logo-text strong {
    font-weight: 700;
}

.beta-badge {
    background: var(--accent-light);
    color: var(--accent-primary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

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

/* ========================================
   Buttons
   ======================================== */

.icon-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-1px);
}

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

.tool-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
    font-family: var(--font-sans);
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
}

.tool-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateX(2px);
}

.tool-btn:active {
    transform: translateX(0);
}

.tool-btn svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.tool-btn:hover svg {
    opacity: 1;
    color: var(--accent-primary);
}

.tool-btn-secondary {
    background: var(--accent-light);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.tool-btn-secondary:hover {
    background: var(--accent-primary);
    color: white;
}

.tool-btn-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--error);
    color: var(--error);
}

.tool-btn-danger:hover {
    background: var(--error);
    color: white;
}

/* ========================================
   Container & Layout
   ======================================== */

.container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ========================================
   Sidebar
   ======================================== */

.sidebar {
    width: 280px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-primary);
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

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

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

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.file-explorer-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.file-explorer {
    border-radius: 8px;
    border: 1px solid var(--border-secondary);
    background: var(--bg-tertiary);
    padding: 6px 6px 6px 10px;
    max-height: 220px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 12px;
}

.file-explorer::-webkit-scrollbar {
    width: 6px;
}

.file-explorer::-webkit-scrollbar-thumb {
    background: var(--border-secondary);
    border-radius: 3px;
}

.project-item {
    margin-bottom: 4px;
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 11px;
}

.project-header span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.project-files {
    margin-top: 4px;
    padding-left: 14px;
}

.file-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 3px 0;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
}

.file-item span {
    opacity: 0.85;
}

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

.file-item.active {
    background: var(--accent-primary);
    color: #ffffff;
}

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

.nova-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
}

.toggle-input {
    display: none;
}

.toggle-switch {
    width: 34px;
    height: 18px;
    border-radius: 999px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    position: relative;
    transition: all 0.2s ease;
}

.toggle-switch::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 1px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--text-muted);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.toggle-input:checked + .toggle-switch {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.toggle-input:checked + .toggle-switch::after {
    transform: translateX(16px);
    background: #ffffff;
}

.sidebar-helper {
    font-size: 11px;
    color: var(--text-muted);
}

.sidebar-link {
    font-size: 13px;
    color: var(--accent-primary);
    text-decoration: none;
}

.sidebar-link:hover {
    text-decoration: underline;
}

.icon-btn-ghost {
    background: transparent;
    border-color: transparent;
    padding: 6px;
}

.icon-btn-ghost:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-secondary);
}

.hidden {
    display: none !important;
}

/* ========================================
   Onboarding
   ======================================== */

.onboarding-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.onboarding-modal {
    max-width: 520px;
    width: 90%;
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 24px 24px 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-primary);
}

.onboarding-modal h2 {
    margin: 0 0 10px;
    font-size: 20px;
    color: var(--text-primary);
}

.onboarding-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.onboarding-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.onboarding-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-primary);
}

.step-badge {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: var(--accent-light);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

.onboarding-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ========================================
   Main Content Area
   ======================================== */

.main-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

/* ========================================
   Panels (Editor & Preview)
   ======================================== */

.editor-panel,
.preview-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.editor-panel {
    border-right: 1px solid var(--border-primary);
}

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

.panel-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-title svg {
    color: var(--accent-primary);
}

.editor-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* ========================================
   Code Editor
   ======================================== */

.editor-container {
    flex: 1;
    display: flex;
    background: var(--editor-bg);
    overflow: hidden;
    position: relative;
}

.line-numbers {
    background: var(--bg-secondary);
    color: var(--text-muted);
    padding: 20px 0 20px 16px;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.6;
    text-align: right;
    user-select: none;
    border-right: 1px solid var(--border-primary);
    overflow: hidden;
    min-width: 50px;
    max-width: 50px;
    white-space: nowrap;
}

.code-editor {
    flex: 1;
    position: relative;
    background: transparent;
    color: transparent;
    caret-color: var(--text-primary);
    border: none;
    outline: none;
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.6;
    resize: none;
    overflow-y: auto;
    overflow-x: auto;
    tab-size: 4;
    white-space: pre;
}

/* Highlight Layer */
.code-display {
    position: absolute;
    top: 0;
    left: 50px;
    right: 0;
    bottom: 0;
    background: var(--editor-bg);
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.6;
    overflow-y: auto;
    overflow-x: auto;
    pointer-events: none;
    white-space: pre;
    z-index: 0;
}

.line-number {
    height: 1.6em;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
}

.line-number.active {
    color: var(--accent-primary);
}

.code-display .code-selection {
    background: rgba(59, 130, 246, 0.35);
    border-radius: 2px;
}

.code-cursor {
    position: absolute;
    width: 2px;
    height: 1.6em;
    background: var(--accent-primary);
    pointer-events: none;
    z-index: 2;
    animation: editor-caret-blink 1s step-end infinite;
}

@keyframes editor-caret-blink {
    50% {
        opacity: 0;
    }
}

.code-display .tag {
    color: #7dd3fc;
}

.code-display .attr-name {
    color: #a78bfa;
}

.code-display .attr-value {
    color: #86efac;
}

.code-display .doctype {
    color: #fbbf24;
}

.code-display .comment {
    color: #6b7280;
    font-style: italic;
}

/* HELIX syntax */
.code-display .hlx-keyword {
    color: #60a5fa;
}

.code-display .hlx-string {
    color: #fbbf24;
}

.code-display .hlx-block {
    color: #a5b4fc;
}

.code-display .hlx-comment {
    color: #6b7280;
    font-style: italic;
}

body.light-mode .code-display .tag {
    color: #0284c7;
}

body.light-mode .code-display .attr-name {
    color: #7c3aed;
}

body.light-mode .code-display .attr-value {
    color: #059669;
}

body.light-mode .code-display .doctype {
    color: #d97706;
}

body.light-mode .code-display .comment {
    color: #6b7280;
}

.code-editor::placeholder {
    color: var(--text-muted);
}

/* Scrollbars */
.code-editor::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

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

.code-editor::-webkit-scrollbar-thumb {
    background: var(--border-secondary);
    border-radius: 6px;
    border: 2px solid var(--bg-tertiary);
}

.code-editor::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* ========================================
   Preview
   ======================================== */

.preview-container {
    flex: 1;
    background: var(--preview-bg);
    overflow: hidden;
    position: relative;
}

#previewFrame {
    width: 100%;
    height: 100%;
    border: none;
    background: var(--preview-bg);
}

/* ========================================
   Error Console
   ======================================== */

.error-console {
    background: var(--console-bg);
    border-top: 1px solid var(--border-primary);
    max-height: 250px;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    transition: max-height 0.3s ease;
}

.error-console.collapsed {
    max-height: 44px;
}

.console-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.console-header:hover {
    background: var(--bg-tertiary);
}

.console-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.console-title svg {
    color: var(--info);
}

.error-count {
    margin-left: 8px;
    padding: 2px 8px;
    background: var(--accent-light);
    color: var(--accent-primary);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.error-count.has-errors {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.console-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.console-content::-webkit-scrollbar {
    width: 8px;
}

.console-content::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

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

.console-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

.console-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    font-family: var(--font-mono);
    background: var(--bg-tertiary);
    animation: fadeIn 0.2s ease;
}

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

.console-info {
    border-left: 3px solid var(--info);
    color: var(--info);
}

.console-error {
    border-left: 3px solid var(--error);
    color: var(--error);
    background: rgba(239, 68, 68, 0.05);
}

.console-warning {
    border-left: 3px solid var(--warning);
    color: var(--warning);
    background: rgba(245, 158, 11, 0.05);
}

.console-success {
    border-left: 3px solid var(--success);
    color: var(--success);
    background: rgba(16, 185, 129, 0.05);
}

.console-message span {
    color: var(--text-primary);
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

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

@media (max-width: 1200px) {
    .sidebar {
        width: 240px;
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    .preview-panel {
        display: none;
    }
}

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

    .sidebar {
        width: 100%;
        max-height: 40vh;
        border-right: none;
        border-bottom: 1px solid var(--border-primary);
        overflow-y: auto;
    }

    .main-content {
        flex: 1;
    }

    .logo-text {
        display: none;
    }

    .editor-stats {
        display: none;
    }

    .header {
        padding: 10px 12px;
    }

    .beta-badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    .code-editor,
    .code-display {
        font-size: 12px;
    }

    .line-numbers {
        font-size: 12px;
        min-width: 40px;
        max-width: 40px;
        padding: 15px 0 15px 10px;
    }

    .customizer-toggle {
        bottom: 20px;
        right: 16px;
        width: 44px;
        height: 44px;
    }

    .tool-btn {
        font-size: 13px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .header-left {
        gap: 8px;
    }

    .header-right {
        gap: 6px;
    }

    .icon-btn {
        padding: 6px;
    }

    .icon-btn svg {
        width: 18px;
        height: 18px;
    }

    .sidebar-section {
        gap: 6px;
    }

    .section-title {
        font-size: 11px;
    }

    .panel-header {
        padding: 10px 12px;
    }

    .panel-title {
        font-size: 13px;
    }

    .console-message {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* ========================================
   Autocomplete
   ======================================== */

.autocomplete-dropdown {
    position: absolute;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.autocomplete-dropdown.show {
    display: block;
}

.autocomplete-item {
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.15s;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-primary);
}

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

.autocomplete-item .tag-icon {
    color: var(--accent-primary);
    font-weight: 600;
}

.autocomplete-item:hover .tag-icon,
.autocomplete-item.selected .tag-icon {
    color: white;
}

.autocomplete-item .tag-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: auto;
}

.autocomplete-item:hover .tag-desc,
.autocomplete-item.selected .tag-desc {
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   Theme Customizer
   ======================================== */

.theme-customizer {
    position: fixed;
    right: -320px;
    top: 0;
    bottom: 0;
    width: 320px;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-primary);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.theme-customizer.open {
    right: 0;
}

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

.customizer-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.customizer-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

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

.customizer-section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.color-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.color-option label {
    font-size: 13px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-preview {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 2px solid var(--border-secondary);
}

.color-option input[type="color"] {
    width: 40px;
    height: 32px;
    border: 1px solid var(--border-secondary);
    border-radius: 4px;
    cursor: pointer;
    background: transparent;
}

.color-option input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 2px;
}

.color-option input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 2px;
}

.theme-preset {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.preset-btn {
    padding: 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

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

.preset-colors {
    display: flex;
    gap: 4px;
}

.preset-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.customizer-toggle {
    position: fixed;
    right: 20px;
    bottom: 80px;
    width: 48px;
    height: 48px;
    background: var(--accent-primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 999;
}

.customizer-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.customizer-toggle svg {
    animation: spin 4s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.customizer-toggle:hover svg {
    animation-duration: 1s;
}

/* ========================================
   Keyboard Shortcuts Modal
   ======================================== */

.shortcuts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-primary);
}

.shortcut-item kbd {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-primary);
    min-width: 80px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shortcut-item span {
    flex: 1;
    color: var(--text-secondary);
}

/* ========================================
   Utility Classes
   ======================================== */

.hidden {
    display: none !important;
}

.collapsed .console-content {
    display: none;
}

#toggleConsole svg {
    transition: transform 0.3s ease;
}

.error-console.collapsed #toggleConsole svg {
    transform: rotate(180deg);
}

/* ========================================
   Syntax Highlighting Hints
   ======================================== */

body.light-mode .code-editor {
    color: #1f2937;
}

body.light-mode .line-numbers {
    background: var(--bg-tertiary);
}
