.code-tool-container {
    max-width: 100%;
}

.tool-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: #f8fafc;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.tool-actions {
    display: flex;
    gap: 10px;
}

.btn-tool {
    padding: 8px 16px;
    border: 1px solid #cbd5e1;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    color: #475569;
    transition: all 0.2s;
}

.btn-tool:hover {
    border-color: #94a3b8;
    color: #1e293b;
}

.btn-primary {
    background: var(--ast-global-color-0, #0274be);
    color: white;
    border-color: var(--ast-global-color-0, #0274be);
}

.btn-primary:hover {
    background: #025ca3;
    /* slightly darker */
    color: white;
}

.editor-container {
    display: grid;
    gap: 20px;
}

textarea.code-editor {
    width: 100%;
    min-height: 400px;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 14px;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    line-height: 1.5;
    resize: vertical;
    white-space: pre;
    overflow-x: auto;
}

textarea.code-editor:focus {
    outline: none;
    border-color: var(--ast-global-color-0, #0274be);
}

.status-msg {
    margin-left: 10px;
    font-size: 0.9em;
    color: #166534;
    display: none;
}