/* EDUTECHND ONLINE EXAM SYSTEM - STYLESHEET */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #1e3a8a;
  --primary-light: #3b82f6;
  --paper-bg: #fdfdfd;
  --paper-border: #cbd5e1;
}

body {
  font-family: 'Crimson Pro', Georgia, serif;
  background-color: #f1f5f9;
  color: #1e293b;
  font-size: 18px;
  line-height: 1.6;
}

/* UI sans-serif for controls, buttons and navigation */
.font-sans-ui {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Exam Paper container styling mimicking actual Vietnamese printed exams */
.exam-paper {
  background-color: var(--paper-bg);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--paper-border);
}

/* Official Exam 2-column Header */
.exam-header-box {
  border: 1.5px solid #334155;
  border-radius: 4px;
}

/* KaTeX custom tweaks for crisp math */
.katex {
  font-size: 1.05em;
}

.katex-display {
  margin: 0.6em 0 !important;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0;
}

/* Dotted lines for student name / info */
.dotted-line {
  border-bottom: 1.5px dotted #64748b;
  display: inline-block;
  min-width: 140px;
}

/* Question Palette Floating & Sticky Styles */
.question-pill {
  transition: all 0.15s ease-in-out;
}

.question-pill:hover {
  transform: translateY(-2px);
}

.question-pill.active {
  ring: 2px solid #2563eb;
  transform: scale(1.08);
}

/* Option Cards for Multiple Choice */
.option-label {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1.5px solid #e2e8f0;
}

.option-label:hover {
  border-color: #93c5fd;
  background-color: #f8fafc;
}

.option-label.selected {
  border-color: #2563eb;
  background-color: #eff6ff;
  color: #1e40af;
}

/* Custom Scrollbar for smooth scrolling */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Sticky top timer banner */
.timer-pulse {
  animation: pulse-danger 1.5s infinite;
}

@keyframes pulse-danger {
  0%, 100% {
    background-color: #ef4444;
  }
  50% {
    background-color: #b91c1c;
  }
}

/* Print simulation */
@media print {
  .no-print {
    display: none !important;
  }
  .exam-paper {
    box-shadow: none;
    border: none;
    padding: 0;
  }
}
