<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="utf-8">
<title>403 Forbidden</title>

<meta name="viewport" content="width=device-width, initial-scale=1">

<style>
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #ff8c00, #ffb347);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.error-card {
    background: #fff;
    padding: 40px 35px;
    border-radius: 16px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    animation: fadeIn 0.4s ease;
}

.error-code {
    font-size: 60px;
    font-weight: 700;
    color: #ff8c00;
    margin-bottom: 10px;
}

.error-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.error-message {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.btn-dashboard {
    display: inline-block;
    padding: 10px 20px;
    background: #ff8c00;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.btn-dashboard:hover {
    background: #e67700;
}

.btn-back {
    display: inline-block;
    margin-left: 10px;
    padding: 10px 20px;
    background: #6c757d;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.btn-back:hover {
    background: #5a6268;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
</style>

</head>
<body>

<div class="error-card">

    <!-- 🔥 ICON -->
    <div style="font-size:50px; margin-bottom:10px;">🔒</div>

    <!-- 🔥 CODE -->
    <div class="error-code">403</div>

    <!-- 🔥 TITLE -->
    <div class="error-title">Akses Ditolak</div>

    <!-- 🔥 MESSAGE -->
    <div class="error-message">
        Anda tidak memiliki izin untuk mengakses halaman ini.<br>
        Silakan hubungi administrator jika ini adalah kesalahan.
    </div>

    <a href="javascript:history.back()" class="btn-back">
        Kembali
    </a>

</div>

</body>
</html>