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

{% block title %}Delete {{ library.name }} — {{ themis_app_name }}{% endblock %}

{% block content %}
<div class="mb-4">
    <a href="{% url 'library:library-detail' uid=library.uid %}" class="btn btn-ghost btn-sm">← {{ library.name }}</a>
</div>

<div class="max-w-lg">
    <h1 class="text-3xl font-bold mb-4 text-error">Delete Library</h1>
    <div class="alert alert-warning mb-6">
        <span>Are you sure you want to delete <strong>{{ library.name }}</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:library-detail' uid=library.uid %}" class="btn btn-ghost">Cancel</a>
        </div>
    </form>
</div>
{% endblock %}
