{% extends "themis/base.html" %}

{% block title %}Delete {{ item.title }} — {{ themis_app_name }}{% endblock %}

{% block content %}
<div class="max-w-lg">
    <h1 class="text-3xl font-bold mb-4 text-error">Delete Item</h1>
    <div class="alert alert-warning mb-6">
        <span>Are you sure you want to delete <strong>{{ item.title }}</strong>? This action cannot be undone.</span>
    </div>
    <form method="post">
        {% csrf_token %}
        <div class="flex gap-2">
            <button type="submit" class="btn btn-error">Delete</button>
            <a href="{% url 'library:item-detail' uid=item.uid %}" class="btn btn-ghost">Cancel</a>
        </div>
    </form>
</div>
{% endblock %}
