<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Test Orchestrator Report</title>
    <style>
        /* Inline CSS for styling */
        body {
            font-family: sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f4f4f4;
            color: #333;
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 20px auto;
            background-color: #fff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }

        h1 {
            text-align: center;
            color: #3498db;
        }

        h2 {
            margin-top: 20px;
            color: #2c3e50;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 10px;
        }

        th, td {
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid #ddd;
        }

        th {
            background-color: #3498db;
            color: white;
        }

        tr:nth-child(even) {
            background-color: #f2f2f2;
        }

        .status-passed {
            color: green;
        }

        .status-failed {
            color: red;
        }

        .status-skipped {
            color: orange;
        }

        .summary {
            margin-top: 30px;
            padding: 15px;
            background-color: #eaf2ff;
            border-left: 5px solid #3498db;
            border-radius: 4px;
        }

        .summary p {
            margin: 5px 0;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .container {
                width: 95%;
                padding: 10px;
            }

            th, td {
                padding: 8px 10px;
                font-size: 0.9em;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <!-- Main Heading -->
        <h1>Test Orchestrator Report</h1>

        <!-- Report Summary -->
        <div class="summary">
            <h2>Summary</h2>
            <p><strong>Total Tests:</strong> {{total_tests}}</p>
            <p><strong>Passed:</strong> <span class="status-passed">{{passed_tests}}</span></p>
            <p><strong>Failed:</strong> <span class="status-failed">{{failed_tests}}</span></p>
            <p><strong>Skipped:</strong> <span class="status-skipped">{{skipped_tests}}</span></p>
            <p><strong>Pass Rate:</strong> {{pass_rate}}%</p>
            <p><strong>Start Time:</strong> {{start_time}}</p>
            <p><strong>End Time:</strong> {{end_time}}</p>
            <p><strong>Duration:</strong> {{duration}}</p>
        </div>

        <!-- Test Results Table -->
        <h2>Test Results</h2>
        <table>
            <thead>
                <tr>
                    <th>Test Name</th>
                    <th>Status</th>
                    <th>Duration</th>
                    <th>Error Message</th>
                </tr>
            </thead>
            <tbody>
                {{test_results}}
            </tbody>
        </table>

        <!-- Additional Information -->
        <h2>Additional Information</h2>
        <p>{{additional_info}}</p>

        <!-- Footer -->
        <p style="text-align: center; margin-top: 20px;">Generated by Test Orchestrator</p>
    </div>
</body>
</html>