<?php 


session_start();
if (!isset($_SESSION['user'])) {
    header('location: login.php');
    exit();
}
?>
<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
    <title>Beranda</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet" />
    <script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/js/all.min.js" crossorigin="anonymous"></script>
    <style>
        /* Fullscreen Background */
        body {
            margin: 0;
            padding: 0;
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background: url('img/nsp.jpg') no-repeat center center fixed;
            background-size: cover;
            position: relative;
        }

        /* Overlay Gradient */
        body::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to bottom, rgba(128, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
            z-index: 1;
        }

        /* Logout Button */
        .logout-container {
            position: absolute;
            top: 20px;
            right: 20px;
            color: white;
            z-index: 2;

        }


        .logout-btn:hover {
            transform: scale(1.05);
        }
    </style>
</head>
<body>

<div class="logout-container">
        <a href="eng/index.php" class="btn btn-info">
        <i class="fas fa-globe"></i> Ganti Bahasa (ENG)
    </a>

    <a href="logout.php" class="btn btn-danger logout-btn">
        <i class="fas fa-sign-out-alt"></i> Logout
    </a>
</div>

</body>
</html>
