.exam-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  padding: 0 24px;
  height: 64px;
  box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
}

.exam-header-left .exam-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f1f1f;
}

.exam-header-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.exam-countdown .ant-statistic-title {
  color: #555;
  font-size: 14px;
}

.exam-countdown .ant-statistic-content {
  font-size: 16px;
  font-weight: 600;
  color: #1677ff;
}

.exam-header-right {
  display: flex;
  gap: 10px;
}

.exam-header-right .ant-btn {
  border-radius: 6px;
}

/* Card container */
.create-exam-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 24px;
  margin: 24px;
  transition: box-shadow 0.3s ease;
}

.create-exam-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Tabs styling */
.create-exam-tabs {
  font-size: 16px;
}

.create-exam-tabs .ant-tabs-nav {
  margin-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.create-exam-tabs .ant-tabs-tab {
  font-weight: 500;
  color: #555;
  transition: color 0.2s ease;
  padding: 10px 16px;
  border-radius: 0;
  background: transparent !important;
}

/* ✨ Hover effect – only text color changes */
.create-exam-tabs .ant-tabs-tab:hover {
  color: #1677ff;
  background: transparent !important;
}

/* Active tab – only bold text + blue ink bar */
.create-exam-tabs .ant-tabs-tab-active {
  color: #1677ff !important;
  font-weight: 600;
  background: transparent !important;
}

/* Ink bar – thin blue underline */
.create-exam-tabs .ant-tabs-ink-bar {
  background: #1677ff;
  height: 3px;
  border-radius: 3px;
}

.exam-status-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 24px;
  margin: 24px;
  transition: box-shadow 0.3s ease;
}

.exam-status-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.exam-status-section {
  margin-bottom: 24px;
}

.exam-status-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 16px 12px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-label {
  font-size: 15px;
  font-weight: 500;
  color: #444;
}

/* Avatar badges */
.status-avatar {
  font-weight: 600;
  color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Individual colors for clarity */
.status-avatar.not-visited {
  background-color: #d9d9d9;
}

.status-avatar.not-answered {
  background-color: #ff7875;
}

.status-avatar.answered {
  background-color: #52c41a;
}

.status-avatar.to-review {
  background-color: #faad14;
}

.status-avatar.answered-review {
  background-color: #1890ff;
}

/* Collapse styling */
.exam-accordion .ant-collapse {
  border: none;
  background: #fafafa;
  border-radius: 8px;
}

.exam-accordion .ant-collapse-item {
  border-bottom: 1px solid #f0f0f0;
}

.exam-accordion .ant-collapse-header {
  font-weight: 500;
  color: #333;
  transition: color 0.2s ease;
}

.exam-accordion .ant-collapse-header:hover {
  color: #1677ff;
}

.AttemptQuestionGrid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* space between cards */
  justify-content: flex-start;
}

.question-col {
  flex: 1 1 250px; /* make responsive */
  min-width: 250px;
  max-width: 300px;
}

.question-card {
  margin: 10px;
  border-radius: 12px !important;
  overflow: hidden;
  transition: all 0.2s ease-in-out;
}

/* Add a subtle hover effect */
.question-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Header (title + type tag) */
.question-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

/* Title (avatar + status label) */
.question-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Question content */
.question-content {
  margin-top: 10px;
  line-height: 1.6;
  font-size: 15px;
}

/* Tag styling */
.question-type {
  font-size: 12px;
  border-radius: 8px;
  padding: 2px 8px;
}

.MainExamQuestionLayout {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 36px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  margin: 30px 20px; /* ⬅️ More margin around the card */
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.MainExamQuestionLayout:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.question-header {
  margin-bottom: 20px;
}

.question-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1f1f1f;
  line-height: 1.6;
}

.question-options {
  margin-top: 16px;
  margin-bottom: 24px;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radioStyle {
  font-size: 16px;
  line-height: 1.5;
}

.review-switch {
  margin-bottom: 28px;
}

.question-actions {
  display: flex;
  justify-content: flex-end;
}

.action-buttons {
  display: flex;
  gap: 12px; /* ⬅️ spacing between buttons */
}

.rounded-btn {
  border-radius: 10px !important; /* ⬅️ rounded corners */
  font-size: 15px;
  height: 40px;
  padding: 0 20px;
}

.ant-btn-primary {
  background-color: #1677ff;
  border-color: #1677ff;
}

.ant-btn-primary:hover {
  background-color: #3b89ff;
  border-color: #3b89ff;
}

