@model Device
@{ ViewData["Title"] = $"Delete: {Model.Name}"; }
<div class="row justify-content-center"><div class="col-md-6"><div class="card border-danger">
    <div class="card-header bg-danger text-white"><h5 class="mb-0"><i class="bi bi-exclamation-triangle me-2"></i>Confirm Deletion</h5></div>
    <div class="card-body">
        <p>Are you sure you want to delete the post <strong>"@Model.Name"</strong>?</p>
        <p class="text-muted">URL: <code>/@Model.Slug</code> · @Model.DeviceSlides.Count slide(s) assigned</p>
        <p class="text-muted">This will remove the device and its playlist. Slides themselves will not be deleted.</p>
        <form asp-action="Delete" method="post">
            @Html.AntiForgeryToken()
            <div class="d-flex gap-2"><button type="submit" class="btn btn-danger"><i class="bi bi-trash me-1"></i>Delete</button><a href="/admin/devices" class="btn btn-outline-secondary">Cancel</a></div>
        </form>
    </div>
</div></div></div>
