<?php
$code = $code ?? 403;
$message = $message ?? 'Forbidden';
?>

<div class="error-page">
    <div class="error-card">
        <div class="error-code"><?= $code ?></div>
        <div class="error-message"><?= htmlspecialchars($message) ?></div>
        <p class="error-description">
            You do not have permission to access this resource.
        </p>
        <div class="error-actions">
            <a href="/dashboard" class="btn btn-primary">Go to Dashboard</a>
            <button class="btn btn-secondary" onclick="history.back()">Go Back</button>
        </div>
    </div>
</div>
