<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ title }}</title>
<style>
* {{ margin: 0; padding: 0; box-sizing: border-box; }}
body {{ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; line-height: 1.6; color: #333; padding: 20px; background: #f5f5f5; }}
.container {{ max-width: 1200px; margin: 0 auto; background: white; padding: 30px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }}
h1 {{ color: #2c3e50; margin-bottom: 10px; }}
h2 {{ color: #34495e; margin-top: 30px; margin-bottom: 15px; border-bottom: 2px solid #3498db; padding-bottom: 5px; }}
.timestamp {{ color: #7f8c8d; font-size: 0.9em; margin-bottom: 20px; }}
.summary {{ display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin: 20px 0; }}
.summary-card {{ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 20px; border-radius: 8px; }}
.summary-card h3 {{ font-size: 0.9em; opacity: 0.9; margin-bottom: 5px; }}
.summary-card .value {{ font-size: 2em; font-weight: bold; }}
.system-info {{ background: #ecf0f1; padding: 15px; border-radius: 5px; margin: 20px 0; }}
.system-info p {{ margin: 5px 0; }}
table {{ width: 100%; border-collapse: collapse; margin: 20px 0; }}
th, td {{ padding: 12px; text-align: left; border-bottom: 1px solid #ddd; }}
th {{ background: #3498db; color: white; font-weight: 600; }}
tr:hover {{ background: #f5f5f5; }}
.success {{ color: #27ae60; }}
.failure {{ color: #e74c3c; }}
.duration {{ font-family: monospace; }}
.footer {{ margin-top: 40px; padding-top: 20px; border-top: 1px solid #ddd; text-align: center; color: #7f8c8d; font-size: 0.9em; }}
</style>
</head>
<body>
<div class="container">
<h1>{{ title }}</h1>
<div class="timestamp">Generated: {{ timestamp }}</div>
<h2>Summary</h2>
<div class="summary">
<div class="summary-card">
<h3>Total Benchmarks</h3>
<div class="value">{{ summary.total_benchmarks }}</div>
</div>
<div class="summary-card">
<h3>Successful</h3>
<div class="value">{{ summary.successful_benchmarks }}</div>
</div>
<div class="summary-card">
<h3>Failed</h3>
<div class="value">{{ summary.failed_benchmarks }}</div>
</div>
<div class="summary-card">
<h3>Total Duration</h3>
<div class="value">{{ summary.total_duration }}s</div>
</div>
</div>
<h2>System Information</h2>
<div class="system-info">
<p><strong>OS:</strong> {{ system_info.os }}</p>
<p><strong>CPU:</strong> {{ system_info.cpu }}</p>
<p><strong>Cores:</strong> {{ system_info.cores }}</p>
<p><strong>Memory:</strong> {{ system_info.total_memory }} bytes</p>
<p><strong>Rust Version:</strong> {{ system_info.rust_version }}</p>
</div>
<h2>Benchmark Results</h2>
<table>
<thead>
<tr>
<th>Benchmark</th>
<th>Setup</th>
<th>Execution</th>
<th>Teardown</th>
<th>Total</th>
<th>Status</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class="footer">
<p>Generated by OxiGDAL Benchmark Suite</p>
</div>
</div>
</body>
</html>