/* ------------------------------------------------------------------ */
/*  Tool Configuration Modal                                          */
/* ------------------------------------------------------------------ */

.tool-config-modal .modal-content {
    width: min(95vw, 600px);
}

.tool-config-modal .modal-body {
    max-height: 60vh;
    overflow-y: auto;
    padding: 20px;
}

.tool-config-modal .modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
}

.tool-config-modal .close {
    cursor: pointer;
    font-size: 24px;
    color: #64748b;
}

.tool-config-modal .close:hover {
    color: #1e293b;
}

.tool-config-modal .description-section {
    margin-bottom: 24px;
}

.tool-config-modal .description-section p {
    color: #64748b;
    font-size: 14px;
    margin: 0 0 16px 0;
}

.tool-config-modal .description-section .divider {
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.tool-config-modal .inputs-section {
    margin-bottom: 24px;
}

.tool-config-modal .inputs-section h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.tool-config-modal .input-row {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.tool-config-modal .input-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

.tool-config-modal .input-row .required {
    color: #ef4444;
}

.tool-config-modal .mapping-type-selector {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    margin-bottom: 8px;
    background: white;
}

.tool-config-modal .static-value-input,
.tool-config-modal .node-output-selector {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: inherit;
}

.tool-config-modal .auto-execute-section {
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.tool-config-modal .auto-execute-section label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.tool-config-modal .auto-execute-section input[type="checkbox"] {
    margin-right: 8px;
}

.tool-config-modal .auto-execute-section span {
    font-weight: 500;
    color: #374151;
}

.tool-config-modal .modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid #e2e8f0;
}
