{% extends 'base.html' %}
{% block content %}
<div class="card">
<h2 style="margin-top:0">Reset Database</h2>
<p>This will permanently delete <strong>all submissions</strong> and clear the current finalization.</p>


<form action="{{ url_for('reset_db_action') }}" method="post" onsubmit="return confirm('Are you sure you want to delete all submissions? This cannot be undone.');">
<button class="btn-accent" type="submit">Reset DB</button>
<a href="{{ url_for('results') }}" class="btn-muted" style="margin-left:.5rem;display:inline-flex;align-items:center;padding:.5rem .8rem;border-radius:8px;text-decoration:none">Cancel</a>
</form>
</div>
{% endblock %}