<!DOCTYPE html>
<html lang="en"><head>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<title>Reports - Admin Panel</title>
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&amp;display=swap" rel="stylesheet"/>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&amp;family=Plus+Jakarta+Sans:wght@600;700&amp;display=swap" rel="stylesheet"/>
<script id="tailwind-config">
        tailwind.config = {
          darkMode: "class",
          theme: {
            extend: {
              colors: {
                  primary: "#006948",
                  "primary-container": "#00855d",
                  "on-primary": "#ffffff",
                  "surface": "#F8FAFC",
                  "on-surface": "#0F172A",
                  "surface-container": "#F1F5F9",
                  "surface-container-highest": "#E2E8F0",
                  "surface-container-lowest": "#ffffff",
                  "outline-variant": "#CBD5E1"
              }
            }
          }
        }
</script>
</head>
<body class="bg-surface text-on-surface antialiased flex">

<!-- SideNavBar -->
<nav class="hidden md:flex flex-col fixed left-0 top-0 h-full py-8 bg-surface-container border-r border-outline-variant w-72 z-50">
    <div class="px-6 mb-8 flex items-center gap-4">
        <div>
            <h1 class="text-2xl font-bold text-primary m-0">Admin Panel</h1>
            <p class="text-sm text-gray-600 m-0">Kesantrian & Admin</p>
        </div>
    </div>
    <div class="flex-1 overflow-y-auto">
        <ul class="space-y-2">
            <li>
                <a class="flex items-center gap-3 px-4 py-3 text-gray-700 hover:bg-surface-container-highest transition-all rounded-lg mx-2" href="/<?= ($user['role'] == 'admin') ? 'admin' : 'kesantrian' ?>">
                    <span class="material-symbols-outlined">dashboard</span>
                    <span>Dashboard</span>
                </a>
            </li>
            <li>
                <a class="flex items-center gap-3 px-4 py-3 text-gray-700 hover:bg-surface-container-highest transition-all rounded-lg mx-2" href="/users">
                    <span class="material-symbols-outlined">manage_accounts</span>
                    <span>User Management</span>
                </a>
            </li>
            <li>
                <a class="flex items-center gap-3 px-4 py-3 bg-primary text-on-primary rounded-lg mx-2 transition-all opacity-80" href="/reports">
                    <span class="material-symbols-outlined">assessment</span>
                    <span>Reports</span>
                </a>
            </li>
        </ul>
    </div>
    <div class="mt-auto px-6">
        <a class="flex items-center gap-3 px-4 py-3 text-gray-700 hover:bg-surface-container-highest transition-all rounded-lg mx-2" href="/auth/logout">
            <span class="material-symbols-outlined">logout</span>
            <span>Logout</span>
        </a>
    </div>
</nav>

<!-- Main Content Area -->
<main class="flex-1 md:ml-72 flex flex-col min-h-screen">
    <!-- TopNavBar (Mobile Only) -->
    <header class="md:hidden flex justify-between items-center p-4 bg-surface-container-lowest border-b border-outline-variant">
        <h1 class="text-xl font-bold text-primary">Reports</h1>
        <a href="/<?= ($user['role'] == 'admin') ? 'admin' : 'kesantrian' ?>" class="text-gray-600">
            <span class="material-symbols-outlined">arrow_back</span>
        </a>
    </header>

    <div class="pt-8 px-6 pb-24 w-full mx-auto">
        <div class="mb-8">
            <h2 class="text-3xl font-bold text-on-surface">System Reports</h2>
            <p class="text-gray-600 mt-1">Export data perizinan santri dan statistik lainnya.</p>
        </div>

        <div class="bg-white rounded-xl border border-gray-200 shadow-sm p-8 text-center flex flex-col items-center justify-center min-h-[400px]">
            <span class="material-symbols-outlined text-gray-300 text-[80px] mb-4">construction</span>
            <h3 class="text-2xl font-bold text-gray-700 mb-2">Modul Laporan Sedang Dalam Pengembangan</h3>
            <p class="text-gray-500 max-w-md">Fitur ini akan segera hadir. Anda akan dapat mengunduh laporan perizinan harian, mingguan, dan bulanan dalam format PDF atau Excel.</p>
            
            <a href="/<?= ($user['role'] == 'admin') ? 'admin' : 'kesantrian' ?>" class="mt-6 px-6 py-2 bg-primary text-white rounded-lg hover:bg-primary-container transition-colors inline-flex items-center gap-2">
                <span class="material-symbols-outlined text-sm">arrow_back</span>
                Kembali ke Dashboard
            </a>
        </div>
    </div>
</main>
</body>
</html>
