/* ── Editor pane ─────────────────────────────────────────────────────────── */
.editor-wrap {
    display: flex;
    height: 420px;
    overflow: hidden;
    border-radius: 0 0 0.375rem 0.375rem;
    background: #1e1e1e;
}

.line-numbers {
    min-width: 3rem;
    padding: 0.6rem 0.4rem 0.6rem 0;
    background: #252526;
    color: #858585;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    text-align: right;
    overflow: hidden;
    user-select: none;
    white-space: pre;
    border-right: 1px solid #3c3c3c;
}

.editor-textarea {
    flex: 1;
    resize: none;
    border: none;
    outline: none;
    padding: 0.6rem 0.75rem;
    background: transparent;
    color: #d4d4d4;
    font-size: 0.8rem;
    line-height: 1.5;
    white-space: pre;
    overflow-wrap: normal;
    overflow-x: auto;
    overflow-y: auto;
    tab-size: 2;
    caret-color: #fff;
}

.editor-textarea::placeholder {
    color: #555;
}

/* ── Line highlight overlay ──────────────────────────────────────────────── */
.line-numbers .ln-error {
    background: rgba(220, 53, 69, 0.35);
    color: #f8d7da;
    border-radius: 2px;
    display: block;
}

.line-numbers .ln-active {
    background: rgba(255, 193, 7, 0.45);
    color: #fff3cd;
    border-radius: 2px;
    display: block;
}

/* ── Error list ──────────────────────────────────────────────────────────── */
.error-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #f5c6cb;
    cursor: pointer;
    transition: background 0.15s;
}

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

.error-item:hover {
    background: #fff5f5;
}

.error-item.active {
    background: #fff3cd;
    border-left: 3px solid #ffc107;
}

.error-line-badge {
    flex-shrink: 0;
    font-family: monospace;
    font-size: 0.78rem;
    background: #dc3545;
    color: #fff;
    border-radius: 4px;
    padding: 1px 6px;
    white-space: nowrap;
}

.error-msg {
    font-size: 0.85rem;
    color: #721c24;
    line-height: 1.4;
}

/* ── Status banner icons ─────────────────────────────────────────────────── */
.status-icon {
    font-size: 2rem;
    flex-shrink: 0;
}
