{% extends "layouts/base.html" %}
{% load static i18n %}

{% block title %}{% trans "Deletar Evento" %} - {% trans "Calendar Manager" %}{% endblock %}

{% block extrastyle %}
{% include 'calendary/manager/_calendar_styles.html' %}
<style>
body .calendar-delete-card {
    border-color: rgba(239, 68, 68, 0.4) !important;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(239, 68, 68, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 30px rgba(239, 68, 68, 0.2) !important;
}

body .calendar-delete-card::before {
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.5), transparent) !important;
}

body .calendar-delete-icon {
    font-size: 5rem !important;
    color: #ef4444 !important;
    text-shadow: 0 0 30px rgba(239, 68, 68, 0.5) !important;
    margin-bottom: 1.5rem !important;
}
</style>
{% endblock %}

{% block content %}
<div class="calendar-manager-bg">
    <div class="container">
        <div class="row justify-content-center">
            <div class="col-lg-6">
                <div class="d-flex flex-column flex-md-row justify-content-between align-items-start align-items-md-center mb-5 calendar-animate-in">
                    <div class="calendar-page-header mb-3 mb-md-0">
                        <h2 class="mb-2">
                            <i class="bi bi-exclamation-triangle text-danger me-2"></i>
                            {% trans "Confirmar Exclusão" %}
                        </h2>
                        <p>{% trans "Esta ação não pode ser desfeita" %}</p>
                    </div>
                </div>

                <div class="calendar-card calendar-delete-card calendar-animate-in">
                    <div class="card-body text-center py-5">
                        <i class="bi bi-exclamation-triangle calendar-delete-icon"></i>
                        <h3 class="text-white mb-4" style="font-weight: 700;">{% trans "Confirmar Exclusão" %}</h3>
                        <p class="text-white mb-4" style="font-size: 1.125rem; opacity: 0.95; line-height: 1.7;">
                            {% trans "Tem certeza que deseja deletar o evento" %} <br>
                            <strong style="color: #0dcaf0;">"{{ event.title }}"</strong>?
                        </p>
                        <p class="text-white mb-4" style="opacity: 0.8; font-size: 0.95rem;">
                            {% trans "Esta ação é permanente e não pode ser desfeita." %}
                        </p>
                        <form method="post" class="mt-5">
                            {% csrf_token %}
                            <div class="d-flex gap-3 justify-content-center">
                                <button type="submit" class="calendar-btn-primary" style="background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important; box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4) !important; min-width: 180px;">
                                    <i class="bi bi-trash me-2"></i>{% trans "Sim, Deletar" %}
                                </button>
                                <a href="{% url 'calendary:manager_event_detail' event_id=event.id %}" class="calendar-btn-solid-white" style="min-width: 180px;">
                                    {% trans "Cancelar" %}
                                </a>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}