{% extends "base.html" %}

{% block content %}
<div class="container mt-5">
    <div class="row justify-content-center">
        <div class="col-md-8">
            <div class="card">
                <div class="card-header bg-warning text-white">
                    <h4 class="mb-0">Conflict</h4>
                </div>
                <div class="card-body">
                    <h5 class="card-title">Data Constraint Error</h5>
                    <p class="card-text">{{ message }}</p>
                    <p class="card-text">This error typically occurs when trying to create a duplicate record or violate a data constraint.</p>
                    <p class="card-text">Please check your input and try again.</p>
                    <a href="{{ url_for('main.index') }}" class="btn btn-primary">Return to Home</a>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %} 