/* Compact styling for sidebar / "similar questions" MCQs */

/* Compact styling for sidebar / "similar questions" MCQs */
/* Compact styling for sidebar / "similar questions" MCQs */
.er-mcq-sidebar {
  border-radius: 0;
  border: 1px solid #f1f3f5;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  background-color: #ffffff;
  padding: 0.7rem 0.8rem 0.7rem;

  /* remove white gap between cards */
  margin-bottom: 0;
}


/* Header link (exam · year · Qn) */
.er-mcq-sidebar-header-link {
  color: #0d6efd;
  text-decoration: none;
  font-weight: 500;
}

.er-mcq-sidebar-header-link:hover {
  text-decoration: underline;
}

/* Small, muted wrapper line */
.er-mcq-sidebar-header {
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
  color: #868e96;
}

/* Question text smaller and tighter */
.er-mcq-sidebar h3 {
  font-size: 0.92rem;
  line-height: 1.45;
  margin-bottom: 0.45rem;
  white-space: pre-line;
}

/* Options closer together, slightly smaller text */
.er-mcq-sidebar .form-check {
  margin-bottom: 0.25rem;
}

.er-mcq-sidebar .form-check-input {
  margin-top: 0.4rem;
  margin-right: 0.4rem;
}

/* Turn labels into small pills so success/danger matches the map bubbles. */
.er-mcq-sidebar .form-check-label {
  font-size: 0.86rem;
  display: block;
  padding: 0.2rem 0.45rem;
  border-radius: 0.55rem;
  border: 1px solid transparent;
}

/* Correct / incorrect colouring – same language as bubbles. */
/* Correct / incorrect colouring – same language as bubbles. */
.er-mcq-sidebar .form-check-label.text-success {
  border-color: var(--er-mcq-correct-border) !important;
  background-color: var(--er-mcq-correct-bg) !important;
  color: var(--er-mcq-correct-text) !important;
}

.er-mcq-sidebar .form-check-label.text-danger {
  border-color: var(--er-mcq-incorrect-border) !important;
  background-color: var(--er-mcq-incorrect-bg) !important;
  color: var(--er-mcq-incorrect-text) !important;
}


/* Relevance score chip */
.er-mcq-score-chip {
  background-color: #f1f3f5;
  color: #495057;
  font-size: 0.72rem;
  font-weight: 500;
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
}
/* =======================
 * "Similar questions" panel shell
 * (add class er-mcq-similar-panel on the Views block)
 * ======================= */

.er-mcq-similar-panel {
  border-radius: 0;
  border: 1px solid #e9ecef;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  padding: 0.75rem 0.75rem 0.4rem;
}

/* Header: elegant, intelligent styling */
.er-mcq-similar-panel > h2,
.er-mcq-similar-panel .block-title {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #495057;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e9ecef;
}

/* Elegant green dot indicator */
.er-mcq-similar-panel > h2::before,
.er-mcq-similar-panel .block-title::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background-color: #51cf66;
  box-shadow: 0 0 0 2px rgba(81, 207, 102, 0.15);
  flex-shrink: 0;
}


/* Inside the similar panel: turn each MCQ into a flat row, not a separate card */
.er-mcq-similar-panel .er-mcq-sidebar {
  border-radius: 0;                /* no own rounded corners */
  border: 0;                       /* panel provides the border */
  box-shadow: none;                /* kill inner card shadow */
  padding: 0.55rem 0.25rem;        /* tighter vertical padding */
  margin-bottom: 0;                /* no white gap between rows */
}

/* Add a soft divider between items, but not above the first one */
.er-mcq-similar-panel .er-mcq-sidebar + .er-mcq-sidebar {
  border-top: 1px solid #f1f3f5;
}

/* On hover: make the whole row feel clickable */
.er-mcq-similar-panel .er-mcq-sidebar:hover {
  background-color: #f8f9fa;
}

/* Slightly tighter typography in sidebar items when shown in the panel */
.er-mcq-similar-panel .er-mcq-sidebar-header {
  margin-bottom: 0.25rem;
}

.er-mcq-similar-panel .er-mcq-sidebar h3 {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0.35rem;
  white-space: pre-line;
}
