<!DOCTYPE html>
<html lang="en" data-bs-theme="dark">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Error - <?= APP_NAME ?></title>
    <link rel="stylesheet" href="<?= asset('css/bootstrap.min.css') ?>">
    <link rel="stylesheet" href="<?= asset('css/theme.css') ?>">
    <link rel="stylesheet" href="<?= asset('css/style.css') ?>">
    <style>
        body.error-page {
            background: #0D0D0D;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100vh;
            margin: 0;
            font-family: 'Inter', sans-serif;
        }
        .error-container {
            text-align: center;
            padding: 40px;
        }
        .error-code {
            font-size: 120px;
            font-weight: 800;
            background: linear-gradient(135deg, #C8A44E, #E8D48B);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            line-height: 1;
            margin-bottom: 20px;
        }
        .error-message {
            color: #B0B0B0;
            font-size: 18px;
            margin-bottom: 30px;
        }
        .error-btn {
            background: linear-gradient(135deg, #C8A44E, #A8893A);
            border: none;
            padding: 12px 30px;
            border-radius: 8px;
            color: #fff;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s;
        }
        .error-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(200, 164, 78, 0.3);
            color: #fff;
        }
    </style>
</head>
<body class="error-page">
    <div class="error-container animate-fade-in">
        <div class="error-code"><?= e($errorCode ?? 500) ?></div>
        <div class="error-message"><?= e($errorMessage ?? 'Something went wrong.') ?></div>
        <a href="<?= url('') ?>" class="error-btn">
            <i class="fas fa-arrow-left me-2"></i>Back to Dashboard
        </a>
    </div>
</body>
</html>
