/* Modal Form Styles - Consistent with create_edit_trip.html design */

/* Modal Form Control Height Adjustment */
.modal-body .form-control {
    min-height: 38px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.modal-body .form-control:not(textarea) {
    height: 38px;
}

/* Label styling for modals */
.modal-body .form-label.fw-semibold {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #495057;
    font-size: 0.875rem;
}

.modal-body .form-label.fw-semibold i {
    color: #017bfe;
    font-size: 0.875rem;
}

/* Focus states */
.modal-body .form-control:focus {
    border-color: #017bfe;
    box-shadow: 0 0 0 0.2rem rgba(1, 123, 254, 0.15);
}

/* Select dropdowns */
.modal-body .form-select {
    min-height: 38px;
    height: 38px;
    padding: 0.5rem 0.75rem;
}

/* Textarea specific styling */
.modal-body textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Remove any floating label remnants */
.modal-body .form-floating {
    position: relative;
}

.modal-body .form-floating > .form-control {
    padding: 0.5rem 0.75rem;
    height: 38px;
}

.modal-body .form-floating > .form-control:not(textarea) {
    height: 38px;
    line-height: 1.25;
}

/* Ensure consistent spacing */
.modal-body .mb-3 {
    margin-bottom: 1rem;
}

/* User amount fields in bills */
.modal-body .user-amount-field .form-control {
    height: 38px;
}
