
/* Editor Container (VS Code Style) */
.editor-container {
    display: flex;
    flex: 1;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-dark); /* Match input bg */
    border: 1px solid var(--border-color);
    border-radius: 4px; /* Optional rounded corners */
}

/* Line Numbers Sidebar */
.line-numbers {
    min-width: 45px; /* Slightly wider */
    background-color: var(--bg-sidebar); /* Use sidebar gray for gutter */
    color: #858585; /* Lighter gray for better visibility */
    text-align: right;
    padding: 10px 10px 10px 0; /* More padding on right */
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px; /* Slightly smaller than code */
    line-height: 24px; /* Fixed pixel height to ensure sync */
    user-select: none;
    overflow: hidden;
    border-right: 1px solid #333;
    white-space: pre;
    opacity: 0.7;
}

/* Code Area (Input Textarea & Output Pre) */
.code-area {
    flex: 1;
    background-color: transparent;
    color: #d4d4d4; /* Typical VS Code text color */
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 24px; /* Fixed pixel height to ensure sync with sidebar */
    border: none;
    resize: none;
    padding: 10px 10px 10px 15px; /* Left padding to separate text from gutter border */
    outline: none;
    overflow: auto;
    white-space: pre;
    margin: 0;
}

/* Fix for pre tag specific styles if any override */
pre.code-area {
    margin: 0;
    box-sizing: border-box; 
    /* white-space: pre-wrap;  <-- If user wants wrapping, line numbers break. Keeping 'pre' for now. */
}

/* Remove default textarea styles that might interfere */
/* Override previous textarea styles if necessary */
.io-panel textarea, .io-panel pre {
    border: none !important; /* Managed by container */
    flex: 1;
}

/* Scrollbars for the editor */
.code-area::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
.code-area::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
.code-area::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 5px;
}
.code-area::-webkit-scrollbar-thumb:hover {
    background: #555;
}
