<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>CodEval Results – {{ASSIGNMENT_NAME}}</title>
  <style>
    body {
      font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
      background: #f0f2f5;
      margin: 0;
      padding: 24px;
    }
    .card {
      max-width: 860px;
      margin: 0 auto;
      background: #fff;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.08);
      overflow: hidden;
    }
    .header {
      background: #1a73e8;
      color: #fff;
      padding: 16px 24px;
    }
    .header h1 {
      margin: 0;
      font-size: 1.25rem;
      font-weight: 600;
    }
    .header p {
      margin: 4px 0 0;
      font-size: 0.9rem;
      opacity: 0.85;
    }
    .meta {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      padding: 14px 24px;
      background: #f8f9fa;
      border-bottom: 1px solid #e0e0e0;
      font-size: 0.88rem;
      color: #444;
    }
    .meta span strong {
      color: #222;
    }
    .score {
      display: flex;
      gap: 12px;
      padding: 12px 24px;
      border-bottom: 1px solid #e0e0e0;
      font-size: 0.9rem;
    }
    .score .pass-count {
      color: #2e7d32;
      font-weight: 600;
    }
    .score .fail-count {
      color: #c62828;
      font-weight: 600;
    }
    .output {
      padding: 16px 24px;
    }
    .output h2 {
      font-size: 0.95rem;
      font-weight: 600;
      margin: 0 0 8px;
      color: #333;
    }
    pre {
      margin: 0;
      font-family: "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
      font-size: 0.82rem;
      line-height: 1.6;
      background: #f8f9fa;
      border: 1px solid #e0e0e0;
      border-radius: 6px;
      padding: 12px 14px;
      white-space: pre-wrap;
      word-break: break-word;
    }
    .pass { color: #2e7d32; font-weight: 600; }
    .fail { color: #c62828; font-weight: 600; }
    .error { color: #e65100; font-weight: 600; }
</style>
</head>
<body>
  <div class="card">
    <div class="header">
      <h1>CodEval Results</h1>
      <p>{{ASSIGNMENT_NAME}}</p>
    </div>
    <div class="meta">
      <span><strong>Student:</strong> {{STUDENT_NAME}}</span>
      <span><strong>Submitted:</strong> {{SUBMITTED}}</span>
      <span><strong>Attempt:</strong> {{ATTEMPT}}</span>
    </div>
    <div class="score">
      <span class="pass-count">&#10003; {{PASS_COUNT}} passed</span>
      <span class="fail-count">&#10007; {{FAIL_COUNT}} failed</span>
    </div>
    <div class="output">
      <h2>Output</h2>
      <pre>{{OUTPUT}}</pre>
    </div>
  </div>
</body>
</html>
