body {
  font-family: Arial, sans-serif;
  background: #f8fafc;
  color: #0f172a;
  margin: 0;
  padding: 24px;
}

.card {
  max-width: 900px;
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  margin: 0 auto 16px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

h1, h2 {
  margin-top: 0;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

label {
  display: block;
  margin: 10px 0 4px;
}

input, button, textarea {
  font-size: 14px;
}

input[type="text"], input[type="password"], input[type="datetime-local"], input[type="number"] {
  width: 100%;
  max-width: 340px;
  padding: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

button {
  margin-top: 10px;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  background: #2563eb;
  color: white;
  cursor: pointer;
}

button.secondary {
  background: #475569;
}

.hidden {
  display: none;
}

.question {
  margin: 14px 0;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.exam-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
  align-items: start;
}

.nav-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.question-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.qjump-btn {
  margin-top: 0;
  padding: 6px 0;
  min-width: 0;
  background: #475569;
}

.qjump-btn.current {
  background: #1d4ed8;
}

.qjump-btn.answered {
  background: #059669;
}

.grid-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .exam-layout {
    grid-template-columns: 1fr;
  }
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 12px;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.results-table th,
.results-table td {
  border: 1px solid #e2e8f0;
  padding: 8px;
  text-align: left;
  white-space: nowrap;
}

.results-table th {
  background: #f1f5f9;
}

.message {
  margin-top: 10px;
  color: #1e40af;
}

.error {
  margin-top: 10px;
  color: #b91c1c;
}
