/* Wovrix PYQ In-App Question Reporting Modal */
.report-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.report-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.report-modal-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 24px;
  position: relative;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s ease;
}

.report-modal-overlay.active .report-modal-card {
  transform: translateY(0) scale(1);
}

.report-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
}

.report-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-modal-subtitle {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 4px;
}

.report-modal-close {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
}

.report-modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.report-issue-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.report-issue-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #334155;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
  background: #f8fafc;
  transition: all 0.15s ease;
}

.report-issue-label:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.report-issue-label input[type="checkbox"] {
  accent-color: #2563eb;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.report-notes-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  color: #0f172a;
  resize: vertical;
  min-height: 72px;
  margin-bottom: 16px;
  outline: none;
}

.report-notes-textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.report-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn-report-cancel {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-report-cancel:hover {
  background: #f8fafc;
}

.btn-report-submit {
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease;
}

.btn-report-submit:hover {
  background: #1d4ed8;
}

.report-success-state {
  text-align: center;
  padding: 24px 8px;
}

.report-success-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.report-success-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px 0;
}

.report-success-desc {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* Question card report button */
.btn-report-question {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-report-question:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.btn-step-guide {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-step-guide:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.step-criteria-drawer {
  display: none;
  margin-top: 10px;
  padding: 12px 14px;
  background: #f8fafc;
  border-left: 3px solid #3b82f6;
  border-radius: 0 8px 8px 0;
  font-size: 0.82rem;
  color: #334155;
  line-height: 1.5;
}

.step-criteria-drawer.open {
  display: block;
}
