{% extends "base.html" %}

{% block title %}Error - AutoBackups{% endblock %}

{% block content %}
<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"></i> Error
                </h5>
            </div>
            <div class="card-body">
                <p class="card-text">Ha ocurrido un error en la aplicación:</p>
                <div class="alert alert-danger">
                    <code>{{ error }}</code>
                </div>
                <div class="text-center">
                    <a href="{{ url_for('dashboard') }}" class="btn btn-primary">
                        <i class="bi bi-house"></i> Volver al Dashboard
                    </a>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}
