/* Shared form styles for AgentFlow node config editors. Loaded globally. */

.flow-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.flow-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.flow-form-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--rame-text-primary, #1c1e21);
}

.flow-form-hint {
    font-size: 11px;
    color: var(--rame-text-tertiary, #8a8d91);
    line-height: 1.4;
}

.flow-form-field input[type="text"],
.flow-form-field input[type="number"],
.flow-form-field input:not([type]),
.flow-form-field select,
.flow-form-field textarea {
    background: var(--rame-bg-primary, #ffffff);
    border: 1px solid var(--rame-border-light, #e4e6eb);
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 13px;
    color: var(--rame-text-primary, #1c1e21);
    font-family: inherit;
}

.flow-form-field input:focus,
.flow-form-field select:focus,
.flow-form-field textarea:focus {
    outline: none;
    border-color: var(--rame-primary, #0084ff);
    box-shadow: 0 0 0 2px var(--rame-primary-light, #e6f3ff);
}

.flow-form-field textarea {
    resize: vertical;
    min-height: 70px;
    font-family: inherit;
    line-height: 1.5;
}

.flow-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.flow-form-checks {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.flow-form-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--rame-text-primary, #1c1e21);
    cursor: pointer;
    user-select: none;
}

.flow-form-check input[type="checkbox"] {
    cursor: pointer;
}

.flow-form-list-item {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 6px;
    background: var(--rame-bg-tertiary, #f0f2f5);
    border-radius: 6px;
}

.flow-form-list-item input[type="text"],
.flow-form-list-item select {
    flex: 1;
    background: var(--rame-bg-primary, #ffffff);
    border: 1px solid var(--rame-border-light, #e4e6eb);
    border-radius: 4px;
    padding: 4px 6px;
    font-size: 12px;
}

.flow-form-btn {
    background: var(--rame-primary, #0084ff);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.flow-form-btn-danger {
    background: transparent;
    color: var(--rame-text-tertiary, #8a8d91);
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 0 6px;
    line-height: 1;
}

.flow-form-btn-danger:hover {
    color: var(--rame-error, #ef5350);
}

.flow-form-hint--muted {
    background: var(--rame-bg-tertiary, #f0f2f5);
    border-left: 3px solid var(--rame-border-light, #e4e6eb);
    padding: 8px 12px;
    border-radius: 6px;
    margin: 0;
}

.flow-form-field--readonly {
    opacity: 0.85;
}

.flow-form-case-label {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--rame-primary-light, #e6f3ff);
    color: var(--rame-primary, #0084ff);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    cursor: help;
}
