{% extends "base.html" %}

{% block title %}Delete Event | Roster{% endblock %}

{% block content %}
<div class="container py-5">
    <div class="row justify-content-center">
        <div class="col-md-6">
            <div class="card border-0 shadow-sm rounded-4">
                <div class="card-body p-4 text-center">
                    <div class="bg-danger-subtle rounded-circle d-inline-flex p-3 mb-3">
                        <i class="bi bi-exclamation-triangle text-danger h3 mb-0"></i>
                    </div>
                    <h2 class="fw-bold h4 mb-3">Delete Event?</h2>
                    <p class="text-muted small mb-4">Are you sure you want to delete "<strong>{{ event.title }}</strong>"? This action cannot be undone and all RSVPs will be lost.</p>
                    
                    <form method="POST">
                        {% csrf_token %}
                        <div class="d-grid gap-2">
                            <button type="submit" class="btn btn-danger rounded-pill">Yes, Delete Event</button>
                            <a href="{% url 'event_detail' event.id %}" class="btn btn-light rounded-pill">Cancel</a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}
