<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Automation Reports</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #201715;
            color: white;
            text-align: center;
        }

        h1 {
            margin-top: 20px;
            font-size: 28px;
            color: #FFD700; /* Gold color for title */
        }

        table {
            width: 80%;
            margin: 20px auto;
            border-collapse: collapse;
            table-layout: fixed;
        }

        th, td {
            padding: 15px;
            border: 1px solid #2E2E2E;
            text-align: center;
            font-size: 18px; /* Adjusted font size */
        }

        th {
            background-color: #FFD700;
            color: #201715;
        }

        td {
            background-color: #3A2A2A; /* Slightly darker background for rows */
        }

        td a {
            color: white;
            text-decoration: none;
        }

        td a:hover {
            text-decoration: underline;
        }

        footer {
            margin-top: 20px;
            padding: 10px;
            background-color: #2E2E2E;
            color: white;
            bottom: 0;
            position: fixed;
            width: 100%;
        }

        footer p {
            margin: 0;
            font-size: 14px;
        }

    </style>
</head>
<body>

    <header>
        <h1>Automation Reports</h1>
    </header>

    <main>
        <table>
            <thead>
                <tr>
                    <th>Folder Name</th>
                    <th>Build ID</th>
                    <th>Date</th>
                    <th>Time</th>
                    <th>Link</th>
                </tr>
            </thead>
            <tbody>
                <% reportDirs.forEach(function(report) { %>
                    <tr>
                        <td><%= report.folderName %></td>
                        <td><%= report.buildId %></td>
                        <td><%= report.date %></td>
                        <td><%= report.time %></td>
                        <td><a href="<%= report.link %>">View Report</a></td>
                    </tr>
                <% }) %>
            </tbody>
        </table>
    </main>

    <footer>
        <p>&copy; 2024 Boltic Automation. All rights reserved.</p>
    </footer>

</body>
</html>
