.exam-report {
  font-family: 'Segoe UI', Arial, sans-serif;
  max-width: 1080px;
  margin: 32px auto;
  background: #fff;
  padding: 24px 28px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, .18);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.exam-report header {
  text-align: center;
  margin-bottom: 22px;
  border-bottom: 2px solid #0ea5e9;
  padding-bottom: 10px;
}

.exam-report h1,
.exam-report h2 {
  font-size: 1.5rem;
  color: #0f172a;
  margin: 0;
}

.exam-report .meta,
.exam-report .submeta {
  text-align: center;
  font-size: .95rem;
  color: #64748b;
  margin-top: 6px;
}

.exam-report .summary,
.exam-report .summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.exam-report .summary-card {
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 12px;
  padding: 12px 14px;
}

.exam-report .summary-label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748b;
  margin-bottom: 6px;
}

.exam-report .summary-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.exam-results {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
}

.exam-results th,
.exam-results td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

.exam-results thead th {
  background: #f8fafc;
  color: #334155;
  text-align: left;
}

.exam-results tr:nth-child(even) {
  background: #fbfdff;
}

.correct {
  color: #15803d;
  font-weight: 600;
}

.wrong {
  color: #b91c1c;
  font-weight: 600;
}

.exam-report-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 16px;
}

@media print {
  .exam-report {
    box-shadow: none;
    border: none;
    margin: 0;
    padding: 0;
    max-width: none;
  }

  .exam-report-toolbar,
  .btn {
    display: none !important;
  }
}
