/* Array Field Styling */
.array-field .array-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}
.array-field .add-array-item {
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.array-item {
    display: flex;
    align-items: center; /* Align items vertically in the middle */
    gap: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md); /* Adjust padding as needed */
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--bg-secondary);
}

.array-item .form-input {
    flex-grow: 1; /* Allow input to take up available space */
    margin-bottom: 0; /* Remove default form-group margin */
}

.array-item .remove-array-item {
    background-color: transparent;
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    width: 28px;
    height: 28px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: all var(--transition-fast);
    line-height: 1;
    flex-shrink: 0; /* Prevent button from shrinking */
    opacity: 0.7;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.array-item .remove-array-item:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-hover);
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px 0 rgb(0 0 0 / 0.1);
}

.array-item .remove-array-item:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--input-focus-ring);
}

.array-item .remove-array-item:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
