<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>CSC Citizen Services Portal - PHP & MySQL Backend</title>
  <script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="bg-slate-900 text-slate-100 min-h-screen flex items-center justify-center p-4">
  <div class="max-w-2xl w-full bg-slate-800 border border-slate-700 rounded-2xl p-6 sm:p-8 shadow-2xl space-y-6">
    <div class="flex items-center justify-between border-b border-slate-700 pb-4">
      <div>
        <h1 class="text-xl font-bold text-white">CSC Citizen Portal - PHP Backend</h1>
        <p class="text-xs text-slate-400">Production REST API & MySQL PDO Connector</p>
      </div>
      <span class="px-3 py-1 text-xs font-bold rounded-full bg-emerald-950 text-emerald-300 border border-emerald-700">
        ● Database Connected      </span>
    </div>

          <div class="grid grid-cols-2 gap-4">
        <div class="bg-slate-900/80 p-4 rounded-xl border border-slate-700">
          <span class="text-xs text-slate-400 block">Total Service Records in MySQL</span>
          <span class="text-2xl font-black text-emerald-400">13</span>
        </div>
        <div class="bg-slate-900/80 p-4 rounded-xl border border-slate-700">
          <span class="text-xs text-slate-400 block">Registered Customers in MySQL</span>
          <span class="text-2xl font-black text-blue-400">8</span>
        </div>
      </div>
    
    <div class="space-y-2">
      <h3 class="text-xs font-bold text-slate-300 uppercase tracking-wider">Available REST Endpoints:</h3>
      <div class="space-y-1.5 font-mono text-xs">
        <a href="api/services.php" target="_blank" class="block p-2.5 bg-slate-900 hover:bg-slate-700/80 rounded-lg text-emerald-400 transition-colors border border-slate-700/60 flex items-center justify-between">
          <span>GET /api/services.php</span>
          <span class="text-[10px] text-slate-400">View Services JSON &rarr;</span>
        </a>
        <a href="api/customers.php" target="_blank" class="block p-2.5 bg-slate-900 hover:bg-slate-700/80 rounded-lg text-blue-400 transition-colors border border-slate-700/60 flex items-center justify-between">
          <span>GET /api/customers.php</span>
          <span class="text-[10px] text-slate-400">View Customers JSON &rarr;</span>
        </a>
        <a href="api/analytics.php" target="_blank" class="block p-2.5 bg-slate-900 hover:bg-slate-700/80 rounded-lg text-purple-400 transition-colors border border-slate-700/60 flex items-center justify-between">
          <span>GET /api/analytics.php</span>
          <span class="text-[10px] text-slate-400">View Analytics JSON &rarr;</span>
        </a>
        <a href="api/settings.php" target="_blank" class="block p-2.5 bg-slate-900 hover:bg-slate-700/80 rounded-lg text-amber-400 transition-colors border border-slate-700/60 flex items-center justify-between">
          <span>GET /api/settings.php</span>
          <span class="text-[10px] text-slate-400">View Settings JSON &rarr;</span>
        </a>
      </div>
    </div>

    <div class="pt-2 border-t border-slate-700 text-center text-xs text-slate-400">
      PHP Version: <strong class="text-white">8.2.33</strong> | Hostinger Server Ready
    </div>
  </div>
</body>
</html>
