@import 'tailwindcss';

@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';
@source '../**/*.blade.php';
@source '../**/*.js';
@source '../**/*.jsx';
@source '../**/*.tsx';

@theme {
    --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
        'Segoe UI Symbol', 'Noto Color Emoji';
}

/* Pretty notification styles */
.notif {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: calc(100% - 32px);
  max-width: 640px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}
.notif__content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  color: #fff;
}
.notif--info {
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
}
.notif--success {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}
.notif--warning {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}
.notif__icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  margin-top: 2px;
}
.notif__title {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  margin-bottom: 2px;
}
.notif__message {
  font-size: 13px;
  opacity: 0.95;
}
.notif__close {
  margin-left: auto;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}
.notif__close:hover {
  opacity: 1;
}
@media (prefers-color-scheme: light) {
  .notif__content { color: #fff; }
}

/* Exam start modal (custom, avoid clash with Bootstrap .modal) */
.exam-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
}
.exam-modal {
  width: calc(100% - 32px);
  max-width: 720px;
  border-radius: 16px;
  overflow: hidden;
  background: #0b1220;
  color: #fff;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.exam-modal__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #4f46e5, #22c55e);
}
.exam-modal__icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255,255,255,0.3);
}
.exam-modal__title { font-size: 16px; font-weight: 700; }
.exam-modal__subtitle { font-size: 12px; opacity: 0.9; }
.exam-modal__close {
  margin-left: auto;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}
.exam-modal__body { padding: 16px 18px; }
.exam-modal__row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.exam-modal__label { font-size: 13px; opacity: 0.9; }
.exam-modal__value { font-size: 14px; font-weight: 600; }
.exam-modal__note { margin-top: 10px; font-size: 12px; opacity: 0.85; }
.exam-modal__footer { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 18px; border-top: 1px solid rgba(255,255,255,0.08); }

/* Option letter circle inside check */
.option-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--bs-primary);
  color: var(--bs-primary);
  font-weight: 600;
  margin-right: 10px;
  line-height: 1;
}

.form-check-input:checked + label .option-circle,
.form-check-input:checked + .form-check-label .option-circle {
  background-color: var(--bs-primary);
  color: #fff;
}

.form-check-label:hover .option-circle {
  border-color: #0b5ed7; /* slightly darker primary */
  color: #0b5ed7;
}

/* Exam options: hide default radio bullet, keep label clickable */
.exam-options .form-check-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.exam-options .form-check-label {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 6px;
}
.exam-options .form-check-input:checked + .form-check-label {
  background-color: rgba(13, 110, 253, 0.08); /* bs-primary at low opacity */
}
.exam-options .form-check-input:checked + .form-check-label::after {
  content: '✓';
  margin-left: 8px;
  color: var(--bs-success);
  font-weight: 700;
}
.exam-options .form-check-input:checked + .form-check-label .fw-semibold {
  color: var(--bs-primary);
}
