<!-- templates/accounts/delete_user.html -->
{% extends 'base.html' %}

{% block title %}Delete User - {{ user.username }} - LMS{% endblock %}

{% block content %}
<div class="container mt-4">
    <div class="row">
        <div class="col-md-6 mx-auto">
            <div class="card">
                <div class="card-header bg-danger text-white">
                    <h3 class="mb-0">Delete User</h3>
                </div>
                <div class="card-body">
                    <p class="lead">Are you sure you want to delete user <strong>{{ user.username }}</strong>?</p>
                    <p class="text-danger">This action cannot be undone. All user data will be permanently deleted.</p>
                    
                    <form method="post">
                        {% csrf_token %}
                        <div class="d-grid gap-2 d-md-flex justify-content-md-end">
                            <a href="{% url 'user_list' %}" class="btn btn-secondary me-md-2">Cancel</a>
                            <button type="submit" class="btn btn-danger">Delete User</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}