.editor-section, .preview-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.editor-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.pane-label {
    padding: 4px 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

.pane-content {
    flex: 1;
    background-color: var(--pane-bg);
    overflow: auto;
    position: relative;
}

#editor-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.CodeMirror {
    flex: 1;
    height: 100% !important;
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    background: transparent !important;
}

.CodeMirror-gutters {
    background: var(--bg-color);
    border-right: 1px solid var(--border-color);
}

/* Hide original textarea - CodeMirror replaces it */
#main-input {
    display: none;
}

#main-input.compare-active {
    height: 50%;
    border-bottom: 1px solid var(--border-color);
}

#compare-input {
    height: 50%;
}

.resizer {
    width: 6px;
    background-color: var(--border-color);
    cursor: col-resize;
    transition: var(--transition-fast);
    z-index: 5;
}

.resizer:hover, .resizer.dragging {
    background-color: var(--primary-color);
}

#preview-output {
    padding: 2rem;
}

/* Custom Scrollbar */
.pane-content::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.pane-content::-webkit-scrollbar-track {
    background: transparent;
}

.pane-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.pane-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
