/**
 * student-practice.css
 * Styling for AutoGrading AI Student Math Practice & Remediation Workspace.
 */

.practice-modal-container {
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  animation: practiceModalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes practiceModalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.practice-q-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--border, #cbd5e1);
  background: #ffffff;
  color: var(--text-main, #1e293b);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.practice-q-pill:hover {
  border-color: #6366f1;
  color: #4f46e5;
  background: #f5f3ff;
}

.practice-q-pill.active {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4f46e5;
  box-shadow: 0 2px 4px rgba(79, 70, 229, 0.25);
}

.practice-q-pill.mastered {
  border-color: #10b981;
  background: #ecfdf5;
  color: #047857;
}

.practice-q-pill.mastered.active {
  background: #059669;
  color: #ffffff;
}

.practice-hint-card {
  border-left: 3px solid #6366f1;
  background: #f8fafc;
  padding: 0.65rem 0.85rem;
  border-radius: 4px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #1e293b;
  animation: practiceHintSlideDown 0.2s ease-out;
}

@keyframes practiceHintSlideDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .practice-split-grid {
    grid-template-columns: 1.15fr 0.85fr !important;
  }
}

@media (max-width: 480px) {
  .practice-modal-header h3 {
    font-size: 1rem !important;
  }
}
