/* ======================================================
   ProwessApps Learning Progress Tracker UI
   File: /css/progress-tracker.css
====================================================== */

.progress-complete-box {
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  border: 1px solid #bbf7d0;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.progress-complete-box h3 {
  font-size: 1.15rem;
  font-weight: 900;
  color: #14532d;
  margin-bottom: 6px;
}

.progress-complete-box p {
  color: #166534;
  margin-bottom: 14px;
}

.progress-complete-box .btn {
  border-radius: 999px;
  font-weight: 850;
}

.progress-status-text {
  display: inline-flex;
  margin-top: 10px;
  color: #166534;
  font-size: 0.9rem;
  font-weight: 800;
}

.progress-complete-box.completed {
  animation: paCompletePulse 0.5s ease;
  border-color: #22c55e;
}

@keyframes paCompletePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.015); }
  100% { transform: scale(1); }
}

.progress-check-icon {
  margin-left: auto;
  color: #16a34a;
  font-style: normal;
  font-weight: 950;
  display: none;
}

.pa-completed .progress-check-icon {
  display: inline-flex;
}

.pa-completed:not(.active) {
  border-color: #bbf7d0 !important;
  background: #f0fdf4 !important;
}

.pa-completed:not(.active) strong::after {
  content: " Completed";
  color: #16a34a;
  font-size: 0.72rem;
  font-weight: 950;
  margin-left: 6px;
}

.learning-progress-summary-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.learning-progress-summary-box h3 {
  font-size: 1.2rem;
  font-weight: 950;
  color: #0f172a;
}

.learning-progress-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.learning-progress-summary-grid div {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}

.learning-progress-summary-grid strong {
  display: block;
  color: #0d6efd;
  font-size: 1.4rem;
  font-weight: 950;
}

.learning-progress-summary-grid span {
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 800;
}

@media (max-width: 575.98px) {
  .learning-progress-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ======================================================
   Top Completed Status Box
====================================================== */

.progress-top-status-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  border: 1px solid #86efac;
  border-left: 5px solid #16a34a;
  border-radius: 16px;
  padding: 16px 18px;
  margin: 18px 0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.progress-top-status-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #16a34a;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.progress-top-status-box strong {
  display: block;
  color: #14532d;
  font-size: 1rem;
  font-weight: 950;
  margin-bottom: 4px;
}

.progress-top-status-box p {
  color: #166534;
  font-size: 0.92rem;
  line-height: 1.55;
}

.progress-completed-date {
  font-weight: 900;
  color: #14532d;
}

@media (max-width: 575.98px) {
  .progress-top-status-box {
    padding: 14px;
    gap: 12px;
  }

  .progress-top-status-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

/* ======================================================
   coding practice progress
====================================================== */
.practice-card {
  position: relative;
}

.practice-card.pa-completed {
  border-color: #86efac !important;
  background: #f0fdf4 !important;
}

.practice-card .progress-check-icon {
  display: none;
  color: #16a34a;
  font-style: normal;
  font-weight: 950;
  margin-left: auto;
  flex-shrink: 0;
}

.practice-card.pa-completed .progress-check-icon {
  display: inline-flex;
}

.practice-card.pa-completed .question-title span::after {
  content: " Completed";
  color: #16a34a;
  font-size: 0.72rem;
  font-weight: 950;
  margin-left: 6px;
}