<?php
session_start();

/* ======================
   HAPUS SESSION ADMIN SAJA
====================== */
unset($_SESSION['username']);
unset($_SESSION['role']);
?>
<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="UTF-8">
<title>Logout Admin | MAYABSEN</title>

<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>

<style>
body{
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg,#eaf2f8,#fdfefe);
}
</style>
</head>

<body>

<script>
Swal.fire({
    icon: 'success',
    title: 'Logout Berhasil 👋',
    text: 'Sampai jumpa kembali, Admin!',
    timer: 1500,
    showConfirmButton: false,
    allowOutsideClick: false
}).then(() => {
    window.location.href = 'login.php';
});
</script>

</body>
</html>
