{% extends 'base.html' %}
{% load static %}

{% block title %}Access Denied - 403{% endblock %}

{% block content %}
<div class="container mt-5">
    <div class="row justify-content-center">
        <div class="col-md-8">
            <div class="card shadow">
                <div class="card-body text-center py-5">
                    <div class="mb-4">
                        <i class="fas fa-lock text-warning" style="font-size: 4rem;"></i>
                    </div>
                    <h1 class="display-4 text-warning">403</h1>
                    <h2 class="mb-3">Access Denied</h2>
                    <p class="lead text-muted mb-4">
                        {% if message %}
                            {{ message }}
                        {% else %}
                            You don't have permission to access this resource.
                        {% endif %}
                    </p>
                    <div class="mt-4">
                        <a href="{% url 'dashboard' %}" class="btn btn-primary">
                            <i class="fas fa-home"></i> Go to Dashboard
                        </a>
                        <a href="javascript:history.back()" class="btn btn-secondary">
                            <i class="fas fa-arrow-left"></i> Go Back
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}
