/* Biostatistics Course — Custom Styles */

/* Clinical Hook Box */
.clinical-hook {
  background: linear-gradient(135deg, #e8f4f8, #d1ecf1);
  border-left: 5px solid #0077b6;
  border-radius: 8px;
  padding: 1.2em 1.5em;
  margin: 1.5em 0;
  font-size: 1.02em;
  line-height: 1.6;
}

.clinical-hook::before {
  content: "🏥 Clinical Scenario";
  display: block;
  font-weight: 700;
  font-size: 1.1em;
  color: #0077b6;
  margin-bottom: 0.5em;
}

/* Key Concept Box */
.key-concept {
  background: linear-gradient(135deg, #fff3cd, #ffeeba);
  border-left: 5px solid #e6a817;
  border-radius: 8px;
  padding: 1.2em 1.5em;
  margin: 1.5em 0;
}

.key-concept::before {
  content: "💡 Key Concept";
  display: block;
  font-weight: 700;
  font-size: 1.1em;
  color: #856404;
  margin-bottom: 0.5em;
}

/* Formula Box */
.formula-box {
  background: #f8f9fa;
  border: 2px solid #6c757d;
  border-radius: 8px;
  padding: 1.2em 1.5em;
  margin: 1.5em 0;
  text-align: center;
}

.formula-box::before {
  content: "📐 Formula";
  display: block;
  font-weight: 700;
  font-size: 1.05em;
  color: #495057;
  margin-bottom: 0.5em;
  text-align: left;
}

/* NEET PG Practice Box */
.neet-practice {
  background: linear-gradient(135deg, #f0e6ff, #e2d1f9);
  border-left: 5px solid #6f42c1;
  border-radius: 8px;
  padding: 1.2em 1.5em;
  margin: 1.5em 0;
}

.neet-practice::before {
  content: "📝 NEET PG Practice";
  display: block;
  font-weight: 700;
  font-size: 1.1em;
  color: #6f42c1;
  margin-bottom: 0.5em;
}

/* Resource Box */
.resources-box {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  border-left: 5px solid #28a745;
  border-radius: 8px;
  padding: 1.2em 1.5em;
  margin: 1.5em 0;
}

.resources-box::before {
  content: "📚 Further Learning";
  display: block;
  font-weight: 700;
  font-size: 1.1em;
  color: #155724;
  margin-bottom: 0.5em;
}

/* Warning / Common Mistake Box */
.common-mistake {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  border-left: 5px solid #dc3545;
  border-radius: 8px;
  padding: 1.2em 1.5em;
  margin: 1.5em 0;
}

.common-mistake::before {
  content: "⚠️ Common Mistake";
  display: block;
  font-weight: 700;
  font-size: 1.1em;
  color: #721c24;
  margin-bottom: 0.5em;
}

/* R Output styling */
.cell-output-display {
  margin: 1em 0;
}

/* ========================================
   Interactive MCQ System
   ======================================== */

.mcq-container {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  padding: 1.2em 1.5em;
  margin: 1.2em 0 1.8em 0;
}

.mcq-question {
  font-size: 1.05em;
  margin-bottom: 0.8em;
  line-height: 1.5;
  color: #1a1a2e;
}

.mcq-option {
  display: block;
  padding: 0.6em 0.8em;
  margin: 0.4em 0;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: white;
  font-size: 0.98em;
  line-height: 1.5;
}

.mcq-option:hover {
  border-color: #6f42c1;
  background: #f8f0ff;
}

.mcq-option input[type="radio"] {
  margin-right: 0.4em;
  accent-color: #6f42c1;
}

.mcq-letter {
  font-weight: 700;
  color: #6f42c1;
  margin-right: 0.2em;
}

.mcq-option.mcq-correct {
  border-color: #28a745;
  background: #d4edda;
}

.mcq-option.mcq-wrong {
  border-color: #dc3545;
  background: #f8d7da;
}

.mcq-check-btn {
  display: inline-block;
  margin-top: 0.8em;
  padding: 0.5em 1.8em;
  background: #6f42c1;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.mcq-check-btn:hover {
  background: #5a32a3;
}

.mcq-check-btn:disabled {
  background: #adb5bd;
  cursor: not-allowed;
}

.mcq-feedback {
  margin-top: 0.8em;
  padding: 0.6em 1em;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1em;
}

.mcq-feedback-correct {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.mcq-feedback-wrong {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.mcq-feedback-warn {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.mcq-explanation {
  margin-top: 0.8em;
  padding: 1em 1.2em;
  background: white;
  border: 1px dashed #6c757d;
  border-radius: 8px;
  font-size: 0.95em;
  line-height: 1.6;
}

.mcq-expl-correct {
  color: #155724;
  margin-bottom: 0.5em;
}

.mcq-expl-wrong {
  color: #6c757d;
  margin-bottom: 0.5em;
}

/* Legacy webexercises compat */
.webex-check {
  margin: 0.5em 0;
}

.webex-solution {
  border: 1px dashed #6c757d;
  border-radius: 6px;
  padding: 1em;
  margin: 0.8em 0;
  background: #f8f9fa;
}

/* Module navigation badges */
.module-badge {
  display: inline-block;
  padding: 0.3em 0.8em;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
  margin-right: 0.5em;
}

.badge-foundation {
  background: #cce5ff;
  color: #004085;
}

.badge-intermediate {
  background: #fff3cd;
  color: #856404;
}

.badge-advanced {
  background: #f8d7da;
  color: #721c24;
}

/* Responsive tables */
.table-responsive {
  overflow-x: auto;
}

/* Print styles */
@media print {
  .clinical-hook, .key-concept, .neet-practice, .resources-box {
    break-inside: avoid;
    border: 1px solid #999;
  }
}
