<!DOCTYPE html>
<html lang="pt-BR">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>API de Tarefas</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, 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;
            padding: 50px;
            border-radius: 15px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            text-align: center;
            max-width: 500px;
        }
        
        h1 {
            color: #333;
            margin-bottom: 20px;
            font-size: 32px;
        }
        
        p {
            color: #666;
            margin-bottom: 20px;
            line-height: 1.6;
        }
        
        .buttons {
            display: flex;
            gap: 15px;
            justify-content: center;
            flex-wrap: wrap;
        }
        
        a {
            display: inline-block;
            padding: 12px 30px;
            background: #667eea;
            color: white;
            text-decoration: none;
            border-radius: 5px;
            font-weight: 600;
            transition: background 0.3s;
        }
        
        a:hover {
            background: #764ba2;
        }
        
        .info {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 8px;
            margin-top: 30px;
            text-align: left;
            border-left: 4px solid #667eea;
        }
        
        .info h3 {
            color: #333;
            margin-bottom: 10px;
        }
        
        .info code {
            display: block;
            background: #fff;
            padding: 10px;
            border-radius: 5px;
            margin: 10px 0;
            font-family: 'Courier New', monospace;
            font-size: 12px;
            color: #333;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>🚀 API de Tarefas</h1>
        <p>API REST em PHP puro para gerenciar tarefas com MySQL</p>
        
        <div class="buttons">
            <a href="teste.html">📝 Testador Web</a>
            <a href="README.md">📖 Documentação</a>
        </div>
        
        <div class="info">
            <h3>Endpoints Disponíveis</h3>
            <code>GET /tarefa/ - Listar todas</code>
            <code>GET /tarefa/{id} - Obter uma</code>
            <code>POST /tarefa/ - Criar</code>
            <code>PUT /tarefa/{id} - Atualizar</code>
            <code>DELETE /tarefa/{id} - Deletar</code>
        </div>
    </div>
</body>
</html>
