<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Nebo API Server</title>
    <style>
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        .container {
            background: white;
            border-radius: 16px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            padding: 40px;
            max-width: 600px;
            width: 100%;
        }
        h1 {
            color: #667eea;
            margin-bottom: 10px;
            font-size: 32px;
        }
        .status {
            color: #10b981;
            font-weight: 600;
            margin-bottom: 30px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .status::before {
            content: "●";
            font-size: 20px;
        }
        h2 {
            color: #374151;
            margin: 30px 0 15px 0;
            font-size: 20px;
        }
        .endpoint {
            background: #f3f4f6;
            padding: 12px 16px;
            border-radius: 8px;
            margin-bottom: 10px;
            transition: all 0.2s;
        }
        .endpoint:hover {
            background: #e5e7eb;
            transform: translateX(4px);
        }
        .endpoint a {
            color: #667eea;
            text-decoration: none;
            font-weight: 500;
            display: block;
        }
        .endpoint small {
            color: #6b7280;
            display: block;
            margin-top: 4px;
        }
        .info {
            background: #eff6ff;
            border-left: 4px solid #3b82f6;
            padding: 12px 16px;
            border-radius: 4px;
            margin-top: 20px;
            color: #1e40af;
            font-size: 14px;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>🚀 Nebo API Server</h1>
        <div class="status">Server Running</div>
        
        <h2>Available Endpoints</h2>
        
        <div class="endpoint">
            <a href="/api.php">Main API</a>
            <small>Core API endpoints for the application</small>
        </div>
        
        <div class="endpoint">
            <a href="/test.php">M-Pesa STK Push Test</a>
            <small>Test M-Pesa payment integration</small>
        </div>
        
        <div class="endpoint">
            <a href="/mpesa-callback.php">M-Pesa Callback Handler</a>
            <small>Webhook endpoint for M-Pesa responses</small>
        </div>
        
        <div class="endpoint">
            <a href="/challenge-payment-callback.php">Challenge Payment Callback</a>
            <small>Webhook endpoint for challenge payments</small>
        </div>
        
        <div class="info">
            <strong>Server Info:</strong><br>
            PHP Version: <?php echo phpversion(); ?><br>
            Server Time: <?php echo date('Y-m-d H:i:s'); ?>
        </div>
    </div>
</body>
</html>
