{% extends 'base.html' %}
{% block title %}Delete Category - Astron Hosts Expense Tracker{% endblock %}
{% block content %}
<div class="container py-5">
    <div class="row justify-content-center">
        <div class="col-md-6">
            <div class="card shadow-lg rounded-4 border-0">
                <div class="card-body text-center">
                    <h3 class="fw-bold mb-3 text-danger">Delete Category</h3>
                    <p class="mb-4">Are you sure you want to delete the category <span class="fw-bold">"{{ category.name }}"</span>?<br>This action cannot be undone.</p>
                    <form method="post">
                        {% csrf_token %}
                        <div class="d-flex justify-content-center gap-2">
                            <a href="{% url 'categories' %}" class="btn btn-secondary">Cancel</a>
                            <button type="submit" class="btn btn-danger">Delete</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %} 