<?php
session_start();

// Hakikisha mtu ame-login
if (!isset($_SESSION['user_id'])) {
    die("Access denied");
}
?>
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>Admin Menu</title>
  <style>
    body {
      font-family: Arial, sans-serif;
      background: #f4f6f8;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100vh;
      margin: 0;
    }
    .menu {
      background: #fff;
      padding: 30px;
      border-radius: 12px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.1);
      text-align: center;
    }
    h2 {
      margin-bottom: 20px;
      color: #333;
    }
    .btn {
      display: block;
      width: 220px;
      margin: 12px auto;
      padding: 12px;
      text-decoration: none;
      color: #fff;
      border-radius: 6px;
      font-size: 16px;
      font-weight: bold;
      transition: background 0.3s ease;
    }
    .withdraw { background: #007bff; }
    .withdraw:hover { background: #0069d9; }

    .admin { background: #28a745; }
    .admin:hover { background: #218838; }

    .approve { background: #ffc107; color: #333; }
    .approve:hover { background: #e0a800; }
  </style>
</head>
<body>

<div class="menu">
  <h2>Admin Panel</h2>
  <a href="admin_withdrawals.php" class="btn withdraw">Withdrawals</a>
  <a href="admin_users.php" class="btn admin">Users</a>
  <a href="approve.php" class="btn approve">Recharges</a>
</div>

</body>
</html>
