/**
* == QuizFlow - Advanced Quiz Builder & Management System ==
*
* Contributors: FixBD
* Author URI: http://fixbd.com
* Source: https://github.com/fixbd/quizflow/blob/fixbd/assets/css/quizflow-ui.css
* @since 1.0.0
* @version: 1.0.0
* @last-update 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

.quizflow-body {
  /* background: linear-gradient(135deg, #6e1ff2 0%, #9d5fff 100%);
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 20px;
  border-radius: 20px; */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  max-width: 720px;
  margin: auto;
}

.alert {
  --bs-primary-bg-subtle: #cfe2ff42;
  --bs-secondary-bg-subtle: #e2e3e53f;
  --bs-success-bg-subtle: #d1e7dd39;
  --bs-info-bg-subtle: #cff4fc45;
  --bs-warning-bg-subtle: #fff3cd46;
  --bs-danger-bg-subtle: #f8d7da43;
  --bs-light-bg-subtle: #fcfcfd46;
  --bs-dark-bg-subtle: #ced4da42;
}

.quizflow-preview-quiz {
  --bs-warning-bg-subtle: #fff3cd46;
}

/* Header */
.quizflow-header-title {
  font-weight: 800;
  font-size: 2.3rem;
  text-align: center;
  /* color: white; */
  margin: 0;
}

.home-btn {
  background: #faf8ff;
  /*rgba(255, 255, 255, 0.25)*/
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #616161;
  /*white*/
  font-size: 1.5rem;
  backdrop-filter: blur(10px);
}

/* Trophy Card */
.trophy-card {
  background: white;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 15px 28px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
  margin-bottom: 40px;
  position: relative;
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.trophy-img {
  width: 140px;
  height: 140px;
  filter: drop-shadow(0 15px 30px rgba(255, 193, 7, 0.5));
  margin-bottom: 10px;
}

.trophy {
  font-size: 6rem;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.congrats {
  font-weight: 800;
  font-size: 2rem;
  margin: 10px 0;
}

.points {
  font-weight: 700;
  /* font-size: 1.1rem; */
  color: #28a745;
}

/* Stat Boxes */
.stat-box {
  background: #faf8ff;
  border: 1px solid #e0d4ff;
  border-radius: 20px;
  padding: 16px 8px;
  text-align: center;
  height: 100%;
  transition: transform 0.2s ease;
}
.stat-box:hover {
  transform: translateY(-2px);
}

.stat-box.correct {
  border-color: #28a745;
}

.stat-box.wrong {
  border-color: #dc3545;
}

.stat-box.skipped {
  border-color: #ffc107;
}

.stat-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.stat-num {
  font-weight: 800;
  font-size: 2rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #777;
  margin-top: 4px;
}

/* Share Button */
.share-btn {
  position: relative;
  top: 25px;
  right: 0;
  background: none;
  border: none;
  color: #aaa;
}

/* Leaderboard Card */
.leaderboard-card {
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Tabs */
.nav-tabs {
  border: none;
  padding: 0 20px;
  margin-bottom: 20px;
}

.nav-tabs .nav-link:not(.play-again) {
  color: #888;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 20px;
  border-radius: 0;
}

.nav-tabs .nav-link.active {
  color: #6e1ff2 !important;
  font-weight: 700;
  border-bottom: 2px solid #6e1ff2 !important;
}
.nav-tabs .nav-link:not(.active):hover {
  color: #6e1ff2 !important;
  background-color: var(--bs-nav-tabs-link-active-bg) !important;
  border-bottom: 2px solid rgba(224, 205, 255, 0.5) !important;
  transition: unset;
}

/* Play Again */
.play-again {
  background: linear-gradient(135deg, #4d2493, #8b5cf6);
  color: white;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.play-again.active {
  background: rgba(108, 31, 242, 0.2);
  cursor: not-allowed;
}

/* Leaderboard Header */
.quizflow-lb-header {
  font-size: 0.75rem;
}

/* Player Row */
.quizflow-participant-row {
  background: white;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  position: relative;
  align-items: center;
}

.rank-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  background: #c0c0c0;
  color: white;
  flex-shrink: 0;
}

.rank-1 {
  background: #ffd700;
}

.rank-2 {
  background: #c0c0c0;
}

.rank-3 {
  background: #cd7f32;
}

.rank-4 {
  background: #99aabb;
  color: #333;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin: 0 16px;
}

.quizflow-participant-name {
  font-weight: 700;
  font-size: 1.15rem;
}

.won-text {
  font-size: 0.95rem;
  color: #28a745;
  font-weight: 600;
}

.percentage {
  font-weight: 700;
  font-size: 1.3rem;
  color: #28a745;
}

.crown {
  position: absolute;
  top: -12px;
  left: 100px;
  transform: translateX(-50%);
  font-size: 32px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}


.start-btn {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #4300b2, #6c1ff2ab);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  font-size: 18px;
  font-weight: 500;
  box-shadow: 0 8px 20px rgba(153, 0, 255, 0.3);
  transition: 0.3s ease;
}

.start-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(0, 123, 255, 0.4);
}







/* Quiz list */
/* Hide default radio circles */
.quizFlowForm .form-check {
  padding: 0;
}

.quizFlowForm .form-check-input {
  display: none;
}

/* Style the label as a selectable block */
.quizFlowForm .form-check-label {
  display: block;
  padding: 12px 16px;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
}

/* Hover effect */
.quizFlowForm .form-check-label:hover {
  background-color: #f8f9fa;
}

/* Selected (checked) style */
.quizFlowForm .form-check-input:checked+.form-check-label {
  background-color: rgba(0, 128, 0, 0.1); /* Light green */
  border: 2px solid rgba(0, 128, 0, 0.150);
}

.quizFlowForm .correct-answer .form-check-label,
.quizFlowForm .correct-answer .form-check-input:checked+.form-check-label {
  background-color: rgba(0, 128, 0, 0.1); /* Light green */
  border: 2px solid rgba(0, 128, 0, 0.150);
}

/* Add check icon when selected */
.quizFlowForm .form-check-label::after,
.quizFlowForm .form-check-input:checked+.form-check-label::after,
.quizflow-review-answer-data .list-group-item::after {
  content: "";
  /* color: #198754; */
  /* Bootstrap check-circle-fill */
  font-family: "Bootstrap-icons";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
}

.quizFlowForm .correct-answer .form-check-label::after,
.quizFlowForm .correct-answer .form-check-input:checked+.form-check-label::after,
.quizflow-review-answer-data .list-group-item-success::after {
  content: "\f26e";
  color: #198754;
}

.quizFlowForm .wrong-answer-checked .form-check-input:checked+.form-check-label {
  background-color: rgba(255, 0, 0, 0.08); /* Light red */
  border: 2px solid rgba(255, 0, 0, 0.1);
}

.quizFlowForm .wrong-answer-checked .form-check-input:checked+.form-check-label::after,
.quizflow-review-answer-data .list-group-item-danger::after {
  content: "\F62A";
  color: rgba(255, 0, 0, 0.8);
}

.upper-text {
  text-transform: uppercase;
}



/* Archive */
.quizflow-quiz-card {
  border-radius: 28px;
  background: #fff;
  margin-bottom: 15px;
  box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.05);
}

.quizflow-filter-box {
  position: relative;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 15px 28px rgba(0, 0, 0, 0.1);
}

.quizflow-quiz-card .badge {
  /* --bs-badge-font-size: 0.62em; */
  /* --bs-badge-padding-x: 0.65em;
  --bs-badge-padding-y: 0.15em; */
}