/* Custom Styles for Antigravity OMR Exam System */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
  --primary-color: #1e3a8a;
  --primary-light: #3b82f6;
  --pencil-color: #2b2e34;
  --pencil-glow: rgba(43, 46, 52, 0.4);
  --success-color: #16a34a;
  --danger-color: #dc2626;
  --paper-bg: #fffdfa;
}

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  background-color: #f1f5f9;
  color: #1e293b;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Paper texture effect for exam paper */
.paper-texture {
  background-color: #ffffff;
  background-image: radial-gradient(#e2e8f0 0.75px, transparent 0.75px);
  background-size: 16px 16px;
}

.omr-sheet-bg {
  background-color: #fbfbf8;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border: 2px solid #cbd5e1;
}

/* OMR Bubble Design */
.omr-bubble {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.8px solid #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  background-color: #ffffff;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.omr-bubble:hover {
  border-color: #1e293b;
  transform: scale(1.08);
  background-color: #f8fafc;
}

/* Filled Bubble (Pencil Graphite Effect) */
.omr-bubble.filled {
  background: radial-gradient(circle at 40% 35%, #475569 0%, #1e293b 70%, #0f172a 100%);
  border-color: #0f172a;
  color: #ffffff;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.2);
  transform: scale(1.03);
}

/* Small Bubble for Code / SBD */
.omr-bubble-sm {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  background-color: #ffffff;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.omr-bubble-sm:hover {
  border-color: #0f172a;
  transform: scale(1.1);
}

.omr-bubble-sm.filled {
  background: radial-gradient(circle at 35% 35%, #475569 0%, #1e293b 80%, #0f172a 100%);
  border-color: #0f172a;
  color: #ffffff;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

/* Feedback states after grading */
.omr-bubble.is-correct {
  border-color: #16a34a !important;
  background: #22c55e !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.4);
}

.omr-bubble.is-wrong {
  border-color: #dc2626 !important;
  background: #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.4);
}

.omr-bubble.should-be-correct {
  border-color: #16a34a !important;
  border-style: dashed !important;
  border-width: 2px !important;
  background-color: #f0fdf4 !important;
  color: #15803d !important;
  animation: pulse-border 1.5s infinite;
}

@keyframes pulse-border {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Question active highlight */
.question-item.active-target {
  background-color: #eff6ff;
  border-left: 4px solid #2563eb;
  padding-left: 12px;
  border-radius: 4px;
}

/* Custom Scrollbar */
::-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;
}

/* Print styling */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  .no-print {
    display: none !important;
  }
  .print-only {
    display: block !important;
  }
  .omr-sheet-bg {
    box-shadow: none;
    border: 1px solid #000;
  }
}
