              class="flex items-center gap-2 px-6 py-3 bg-red-500 text-white rounded-lg hover:bg-red-600 transition-colors duration-300">
                                    <i class="fas fa-trash"></i>
                                    Delete Team
                                </button>
                            </form>
                        {% endif %}
                        <form method="post" action="{% url 'leave_team' %}" class="inline">
                            {% csrf_token %}
          