/* ============================================================
   NOTES-PRACTICE-INLINE.CSS — Styles extracted from notes-practice.html
   ============================================================ */

@keyframes screenHurt {
  0% { box-shadow: inset 0 0 100px 50px rgba(255, 0, 0, 0.7); }
  100% { box-shadow: inset 0 0 0px 0px rgba(255, 0, 0, 0); }
}
.hurt-active {
  animation: screenHurt 1s ease-out forwards;
}

button.review-correct {
  background-color: var(--color-success) !important;
  color: white !important;
  border-color: var(--color-success) !important;
}
button.review-wrong {
  background-color: var(--color-danger) !important;
  color: white !important;
  border-color: var(--color-danger) !important;
}

/* === Question Type Badge === */
.np-qtype-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid;
}
.np-qtype-badge.mcq {
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.3);
}
.np-qtype-badge.checkbox {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}
.np-qtype-badge.text {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}
.np-qtype-badge.matching {
  background: rgba(244, 114, 182, 0.12);
  color: #f472b6;
  border-color: rgba(244, 114, 182, 0.3);
}
.np-qtype-badge.truefalse {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

/* === Checkbox Bubble (multi-select) === */
.ns-bubble.checkbox-mode {
  border-radius: var(--radius-md);
  position: relative;
}
.ns-bubble.checkbox-mode::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 12px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  border: 2px solid var(--border-color);
  border-radius: 3px;
  background: transparent;
  transition: all 0.15s ease;
}
.ns-bubble.checkbox-mode.selected::before {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.ns-bubble.checkbox-mode.selected::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 12px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: white;
  font-weight: 800;
}

/* === Text Input Question === */
.np-text-input-area {
  width: 100%;
  min-height: 100px;
  background: #161b22;
  border: 2px solid #30363d;
  border-radius: var(--radius-md);
  color: #e6edf3;
  font-size: 1rem;
  font-family: var(--font-sans);
  padding: 1rem;
  resize: vertical;
  line-height: 1.6;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.np-text-input-area:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}
.np-text-input-area:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* === Confirm / Submit Button for non-MCQ === */
.np-confirm-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid var(--color-primary);
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}
.np-confirm-btn:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 4px 16px var(--color-primary-glow);
  transform: translateY(-1px);
}
.np-confirm-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Review mode status badges for different types */
.np-review-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
}
.np-review-badge-correct {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.np-review-badge-wrong {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.np-review-badge-skipped {
  background: rgba(139, 148, 158, 0.15);
  color: #8b949e;
  border: 1px solid rgba(139, 148, 158, 0.3);
}

/* Text answer comparison blocks */
.np-text-compare {
  background: #111111;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  border: 1px solid #333;
  margin-top: 0.5rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.np-text-compare-label {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  display: block;
}

/* === Matching Type Practice UI === */
.np-matching-grid {
  display: flex;
  gap: 2rem;
  width: 100%;
}
.np-matching-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.np-match-item {
  padding: 0.875rem 1rem;
  border: 2px solid #30363d;
  border-radius: var(--radius-md);
  background: #161b22;
  color: #e6edf3;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.np-match-item:hover {
  border-color: var(--color-primary);
  background: rgba(99, 102, 241, 0.06);
}
.np-match-item.np-match-active {
  border-color: var(--color-primary);
  background: rgba(99, 102, 241, 0.12);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}
.np-match-item.np-match-connected {
  border-color: #f472b6;
  background: rgba(244, 114, 182, 0.08);
}
.np-match-item.np-match-correct {
  border-color: var(--color-success) !important;
  background: rgba(16, 185, 129, 0.12) !important;
}
.np-match-item.np-match-wrong {
  border-color: var(--color-danger) !important;
  background: rgba(239, 68, 68, 0.12) !important;
}

/* === True/False Bubble === */
.ns-bubble.np-tf-bubble {
  display: flex;
  align-items: center;
  justify-content: center;
}
