<?php
date_default_timezone_set("Asia/Kuala_Lumpur");
$hari = date("l"); // e.g. Monday
$tarikh = date("j F Y"); // e.g. 19 November 2025
$nama_sekolah = "UNIT DIGITAL SMK MUHIBBAH SANDAKAN";

// Data demo (boleh tarik dari DB nanti)
$jumlah_guru = 86;
$jumlah_pelajar = 1284;
?>
<!DOCTYPE html>
<html lang="ms">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Selamat Datang</title>
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
  <style>
    body {
      background: linear-gradient(to bottom right, #eef2f7, #cfe9f5);
      font-family: 'Segoe UI', sans-serif;
      padding: 2rem;
    }
    .card3d {
      background: white;
      border-radius: 1rem;
      box-shadow: 8px 8px 20px rgba(0,0,0,0.08), -4px -4px 12px rgba(255,255,255,0.6);
      transition: 0.3s ease;
    }
    .card3d:hover {
      transform: translateY(-5px);
      box-shadow: 12px 12px 28px rgba(0,0,0,0.12), -6px -6px 16px rgba(255,255,255,0.7);
    }
  </style>
</head>
<body>

<div class="container">
  <div class="text-center mb-5">
    <h1 class="display-5 fw-bold">👋 Selamat Datang</h1>
    <p class="lead">Anda sedang mengakses <strong>Portal Admin</strong> bagi <strong><?= $nama_sekolah ?></strong></p>
    <div class="text-muted"><?= $hari ?>, <?= $tarikh ?></div>
  </div>

  <div class="row justify-content-center g-4">
    <div class="col-md-5">
      <div class="card card3d p-4 text-center">
        <h6 class="text-secondary">Jumlah Guru</h6>
        <h2 class="text-primary"><?= $jumlah_guru ?></h2>
      </div>
    </div>
    <div class="col-md-5">
      <div class="card card3d p-4 text-center">
        <h6 class="text-secondary">Jumlah Pelajar</h6>
        <h2 class="text-success"><?= $jumlah_pelajar ?></h2>
      </div>
    </div>
  </div>
</div>

</body>
</html>
