<?php
session_start();
if (!isset($_SESSION['admin'])) {
  header("Location: login_admin.php");
  exit;
}
?>

<!DOCTYPE html>
<html lang="id">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Menu Admin</title>
  <style>
    body {
      font-family: Arial, sans-serif;
      background: #f0f0f0;
      margin: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100vh;
    }
    .container {
      background: white;
      padding: 30px;
      border-radius: 10px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
      max-width: 400px;
      width: 100%;
      text-align: center;
    }
    h2 {
      margin-bottom: 20px;
      color: #f44336;
    }
    .btn {
      display: block;
      width: 100%;
      padding: 12px;
      margin-top: 10px;
      font-size: 16px;
      border: none;
      border-radius: 6px;
      text-align: center;
      text-decoration: none;
      background-color: #f44336;
      color: white;
      box-sizing: border-box;
    }
    .btn:hover {
      background-color: #d32f2f;
    }
  </style>
</head>
<body>
  <div class="container">
    <h2>🎛️ Menu Admin</h2>
    <a href="semua_order.php" class="btn">📋 Semua Order</a>
    <a href="laporan.php" class="btn">📊 Laporan Omset</a>
    <a href="laporan_laba_rugi.php" class="btn">💰 Laporan Laba Rugi</a>
    <a href="update_resi.php" class="btn">📦 Update Resi</a>
    <a href="tambah_biaya_ads.php" class="btn">📢 Update Biaya Ads</a>
    <a href="tambah_cs.php" class="btn">👤 Tambahkan CS</a>
    <a href="tambah_produk_fisik.php" class="btn">📦 Tambah Produk Fisik</a>
    <a href="tambah_produk_digital.php" class="btn">💾 Tambah Produk Digital</a>
	<a href="laporan_neraca.php" class="btn" style="background-color: #3f51b5;">📘 Laporan Neraca</a>
    <a href="logout_admin.php" class="btn" style="background-color: gray;">🔓 Logout</a>
  </div>
</body>
</html>
