/* Editor Styling */

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

#highlight-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: var(--spacing-md);
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.6;
    white-space: pre;
    overflow: auto;
    pointer-events: none;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    tab-size: 4;
}

#highlight-content {
    display: block;
    min-height: 100%;
}

#editor {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    color: transparent;
    caret-color: var(--text-primary);
    border: none;
    padding: var(--spacing-md);
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.6;
    resize: none;
    outline: none;
    tab-size: 4;
    white-space: pre;
    overflow-wrap: normal;
    overflow: auto;
}

#editor::selection {
    background-color: #264f78;
    color: transparent;
}

#editor::-moz-selection {
    background-color: #264f78;
    color: transparent;
}

#editor:focus {
    outline: none;
}

.editor-footer {
    background-color: var(--bg-secondary);
    padding: var(--spacing-xs) var(--spacing-md);
    border-top: 1px solid var(--border-color);
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

/* Syntax highlighting via simple patterns (optional enhancement) */
/* This is a basic approach - for better highlighting, integrate a library like Prism.js or CodeMirror */
.syntax-keyword {
    color: #c586c0;
}

.syntax-string {
    color: #ce9178;
}

.syntax-number {
    color: #b5cea8;
}

.syntax-comment {
    color: #6a9955;
    font-style: italic;
}

.syntax-function {
    color: #dcdcaa;
}

.syntax-type {
    color: #4ec9b0;
}
