             {% if session.get('delete_group_id') == group.id %}
                        <!-- Show compact confirmation controls -->
                        <form action="{{ url_for('delete_group', group_id=group.id) }}" method="POST" class="d-inline">
                            <button type="submit" class="btn btn-sm btn-danger">Confirm Delete</button>
                        </form>
                        <a href="{{ url_for('group_details', group_id=group.id) }}" class="btn btn-sm btn-secondary">Cancel