<?php 
// Security Headers
header("X-Frame-Options: SAMEORIGIN"); // cegah clickjacking
header("X-Content-Type-Options: nosniff"); // cegah MIME sniffing
header("X-XSS-Protection: 1; mode=block"); // cegah XSS di browser lama
header("Referrer-Policy: no-referrer-when-downgrade"); // batasi info referrer
header("Content-Security-Policy: default-src 'self' https: data:; script-src 'self' https://cdn.jsdelivr.net https://cdnjs.cloudflare.com; style-src 'self' https://cdn.jsdelivr.net https://fonts.googleapis.com 'unsafe-inline'; img-src 'self' data: https:; font-src 'self' https://fonts.gstatic.com;"); 
?>

<?php

 include 'admin_header.php'; 
 
?>

<!DOCTYPE html>
<html lang="id">
<head>
  <meta charset="UTF-8">
  <title>Dashboard Admin</title>
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
  <style>
    .dashboard-card {
      border-radius: 15px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
      transition: transform 0.2s ease-in-out;
    }
    .dashboard-card:hover {
      transform: translateY(-5px);
    }
    .icon {
      font-size: 40px;
      color: #8B0000;
    }
    .stat-value {
      font-size: 28px;
      font-weight: bold;
      color: #8B0000;
    }
    .stat-label {
      color: #555;
      font-size: 16px;
    }
  </style>
</head>
<body class="bg-light">

<div class="container py-5">
  <h2 class="mb-4 fw-bold">📊 Dashboard Admin</h2>
  <div class="row g-4">
  
 

  <div class="col-md-3">
      <div class="card text-center p-4 dashboard-card bg-white">
        <div class="icon mb-3">📚</div>
        <a href="katalog.php" class="btn btn-primary btn-lg">Katalog Buku</a>
        </div>
    </div>

    <div class="col-md-3">
      <div class="card text-center p-4 dashboard-card bg-white">
        <div class="icon mb-3">📅</div>
        <a href="event.php" class="btn btn-success btn-lg">Event</a>
        </div>
    </div>

    <div class="col-md-3">
      <div class="card text-center p-4 dashboard-card bg-white">
        <div class="icon mb-3">🖼️</div>
        <a href="galeri.php" class="btn btn-warning btn-lg">Galeri</a>
        </div>
    </div>

    <div class="col-md-3">
      <div class="card text-center p-4 dashboard-card bg-white">
        <div class="icon mb-3">🎉</div>
        <a href="promo.php" class="btn btn-info btn-lg">Promo Spesial</a>
        </div>
    </div>

  <div class="mt-4">
    <a href="logout.php"
   class="btn btn-outline-danger"
   onclick="return confirm('Apakah Anda yakin ingin logout?');">
  Logout
</a>
  </div>
</div>
</body>
</html>
