/*!************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[0].use[3]!./assets/scss/quiz-dashboard.scss ***!
  \************************************************************************************************************************************************************************************************/
@charset "UTF-8";
#tab-overview .charts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 20px;
}
@media screen and (min-width: 1200px) {
  #tab-overview .charts .card--profile {
    width: calc(60% - 0.5rem);
  }
  #tab-overview .charts .card--performance {
    width: calc(40% - 0.5rem);
  }
  #tab-overview .charts .card--completion {
    width: calc(50% - 0.5rem);
  }
  #tab-overview .charts .card--challenging {
    width: calc(50% - 0.5rem);
  }
}
@media screen and (max-width: 1199.98px) {
  #tab-overview .charts .card--profile {
    width: 100%;
  }
  #tab-overview .charts .card--performance {
    width: calc(50% - 0.5rem);
  }
  #tab-overview .charts .card--completion {
    width: calc(50% - 0.5rem);
  }
  #tab-overview .charts .card--challenging {
    width: 100%;
  }
}
@media screen and (max-width: 767.98px) {
  #tab-overview .charts .card--profile {
    width: 100%;
  }
  #tab-overview .charts .card--performance {
    width: 100%;
  }
  #tab-overview .charts .card--completion {
    width: 100%;
  }
  #tab-overview .charts .card--challenging {
    width: 100%;
  }
}
#tab-overview .charts .cards {
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  display: block;
}
#tab-overview .charts .cards .metric-label {
  font-size: 1.5rem;
  color: #000000;
  margin-bottom: 0;
}
#tab-overview .charts .cards .completion-chart,
#tab-overview .charts .cards .performance-chart {
  height: 250px;
}
#tab-overview .charts .cards .user-profiles {
  padding: 0.5rem 1.5rem 1.5rem 1.5rem;
}
#tab-overview .charts .cards .user-profiles-flex {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
#tab-overview .charts .cards .user-profiles-relative {
  border-radius: 9999px;
  overflow: hidden;
  flex-shrink: 0;
  width: 6rem;
  height: 6rem;
  display: flex;
  position: relative;
}
#tab-overview .charts .cards .user-profiles--heading {
  font-family: "Poppins", Sans-Serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}
#tab-overview .charts .cards .user-profiles .badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
#tab-overview .charts .cards .user-profiles--badges {
  border: 1px solid;
  border-radius: 100px;
  font-size: 0.725rem;
  white-space: nowrap;
  height: 24px;
  font-weight: 600;
  padding: 0.125rem 0.625rem;
}
#tab-timeline .card {
  width: 98%;
  height: 560px;
  background: #fff;
  padding: 20px;
  padding-bottom: 160px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
#tab-timeline canvas {
  margin-top: 15px;
}

.card {
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 20px 20px 16px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  margin-bottom: 16px;
}
.card h2,
.card h3 {
  margin: 0 0 6px;
  font-weight: 800;
}
.card small {
  color: #6b7280;
  display: block;
  margin-bottom: 14px;
}

/* --- Layout without changing your markup: siblings flowing into rows --------
   1st .card spans full width, the next two sit side-by-side on wide screens.
*/
@media (min-width: 1100px) {
  .card {
    /* make the cards flow side-by-side */
    display: inline-block;
    vertical-align: top;
  }
  .card:first-of-type {
    /* Quiz History: full width row */
    display: block;
    width: 100%;
  }
  /* small gap between second-row halves */
  .card:nth-of-type(2) {
    margin-right: 12px;
  }
  .card:nth-of-type(3) {
    margin-left: 12px;
  }
}
/* stack on smaller screens */
@media (max-width: 1099.98px) {
  .card {
    width: 100%;
    display: block;
  }
}
.history-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 780px) {
  .history-content .card {
    grid-column: 1/5;
  }
}
.history-content .card--history {
  grid-column: 1/5;
}
.history-content .card--quizzes {
  grid-column: 1/3;
}
@media (max-width: 1100px) {
  .history-content .card--quizzes {
    grid-column: 1/5;
  }
}
.history-content .card--duration {
  grid-column: 3/5;
}
@media (max-width: 1100px) {
  .history-content .card--duration {
    grid-column: 1/5;
  }
}
.history-content {
  /* --- Table styling (Quiz History) ----------------------------------------- */
}
.history-content .quiz-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #eee;
}
.history-content .quiz-table thead th {
  text-align: left;
  padding: 12px 14px;
  background: #f1f5f9;
  border: none;
  font-weight: 700;
}
.history-content .quiz-table tbody td {
  padding: 12px 14px;
  border: none;
  border-bottom: 1px solid #f1f1f1;
  vertical-align: middle;
  color: #111827;
}
.history-content .quiz-table tbody tr:hover {
  background: #fcfcfc;
}
.history-content .quiz-table tbody td .non-zero {
  display: inline-block;
  background: #000000;
  border-radius: 9999px;
  padding: 0.125rem 0.625rem;
  padding: auto;
  color: #ffffff;
}
.history-content .quiz-table tbody td .zero {
  display: inline-block;
  background: #ef4444;
  border-radius: 9999px;
  padding: 0.125rem 0.625rem;
  padding: auto;
  color: #ffffff;
}
.history-content .quiz-table tbody td .status {
  display: inline-block;
  background: transparent;
  border-radius: 9999px;
  padding: 0.125rem 0.625rem;
  border: 1px solid #6b7280;
  width: 80px;
}
.history-content .quiz-table tbody td .completion_status {
  display: inline-block;
  background: green;
  border-radius: 9999px;
  padding: 0.125rem 0.625rem;
  color: #ffffff;
  width: 90px;
}
.history-content .quiz-table tbody td .completion_status.incomplete {
  background: #ef4444;
}
.history-content {
  /* make the table scrollable on small screens */
}
@media (max-width: 780px) {
  .history-content .card .quiz-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .history-content .quiz-table thead,
  .history-content .quiz-table tbody,
  .history-content .quiz-table tr,
  .history-content .quiz-table th,
  .history-content .quiz-table td {
    white-space: nowrap;
  }
}
.history-content {
  /* --- “Most Attempted Quizzes” list --------------------------------------- */
}
.history-content .quizzes-attempted-heading {
  position: sticky;
  z-index: 1;
  top: 0;
  margin-bottom: 1rem;
  background-color: #ffffff;
}
.history-content .quizzes-attempted {
  height: 500px;
  overflow-y: scroll;
}
.history-content .quizzes-attempted .quiz {
  margin-top: 1rem;
  color: #000000;
}
.history-content .quizzes-attempted .quiz .title-attempts {
  display: flex;
  justify-content: space-between;
}
.history-content .quizzes-attempted .quiz .title-attempts .index-title {
  display: flex;
  gap: 0.5rem;
}
.history-content .quizzes-attempted .quiz .title-attempts .index-title .index {
  background-color: black;
  color: #ffffff;
  font-size: 0.75rem;
  line-height: 1rem;
  padding: 10px 12px;
  border-radius: 9999px;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.history-content .quizzes-attempted .quiz .title-attempts .index-title .title {
  font-size: 1rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 250px;
}
.history-content .quizzes-attempted .quiz .title-attempts .attempts {
  color: #09090b;
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1rem;
  padding: 0.125rem 0.625rem;
  border: 1px solid #e4e4e7;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.history-content .quizzes-attempted .quiz .average {
  display: flex;
  font-size: 0.75rem;
  margin-top: 8px;
}
.history-content .quizzes-attempted .quiz .average .avg-score {
  flex: 1;
}
.history-content .quizzes-attempted .quiz .average .avg-time {
  flex: 1;
}
.history-content .quizzes-attempted .quiz .status {
  display: flex;
  gap: 0.5rem;
  font-size: 0.75rem;
  margin-top: 8px;
}
.history-content .quizzes-attempted .quiz .status-bar {
  width: 100%;
  border: 1px solid #e2e2e2;
  height: 5px;
  border-radius: 9999px;
  background-color: #e2e2e2;
  overflow: hidden;
  margin-top: 8px;
}
.history-content .quizzes-attempted .quiz .status-bar .bar {
  background-color: black;
  width: 100%;
  height: 100%;
  transition: all linear 150ms;
}
.history-content {
  /* --- Chart card canvas sizing -------------------------------------------- */
}
.history-content #scoreDurationChart {
  width: 100% !important;
  height: 420px !important;
  /* matches your inline wrapper; Chart.js respects this */
}
@media (max-width: 780px) {
  .history-content #scoreDurationChart {
    height: 320px !important;
  }
}

.hidden {
  display: none;
}

.improv-wrapper {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}
.improv-wrapper .improv-title div {
  font-weight: 700;
  font-size: 22px;
}
.improv-wrapper .improv-title small {
  color: #6b7280;
}

.improv-card {
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
}
.improv-card.danger {
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 12px;
}
.improv-card .improv-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.improv-card .improv-card-header .improv-card-title {
  font-weight: 600;
}
.improv-card .improv-card-header .badge {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 20px;
}
.improv-card .improv-card-header .badge-danger {
  background: #ef4444;
  color: white;
}
.improv-card .improv-card-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.improv-card .improv-card-body .improv-card-left h4 {
  margin: 0 0 6px 0;
}
.improv-card .improv-card-body .improv-card-left p {
  margin: 0;
  color: #6b7280;
}
.improv-card .improv-card-body .improv-card-left .btn-ghost {
  margin-top: 10px;
}

.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 740px) {
  .grid2 {
    grid-template-columns: 1fr;
  }
}

.low-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.low-card .low-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.low-card .low-left .low-title {
  font-weight: 600;
}
.low-card .low-left .low-actions {
  display: flex;
  gap: 6px;
}

.list-plain {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rec-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rec-item .rec-sub {
  color: #6b7280;
  font-size: 14px;
}

.section-label {
  margin: 10px 0 6px;
  font-weight: 600;
  color: #0f172a;
}

.btn {
  border-radius: 10px;
  padding: 8px 14px;
  border: 1px solid #e5e7eb;
  cursor: pointer;
}
.btn.btn-ghost {
  background: white;
}
.btn.btn-primary {
  background: black;
  color: white;
  border-color: black;
}
.btn.btn-danger {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: #f3f4f6;
}
.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d1d5db;
  display: inline-block;
}
.pill .dot.red {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ef4444;
  display: inline-block;
}
.pill .dot.green {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #10b981;
  display: inline-block;
}

#quiz-dashboard-root {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}
#quiz-dashboard-root h2 {
  font-size: 20px;
  font-weight: 600;
}
#quiz-dashboard-root .metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
#quiz-dashboard-root .metrics .metric-card {
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
#quiz-dashboard-root .metrics .metric-card .metric-value {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #111827;
}
#quiz-dashboard-root .metrics .metric-card .metric-sub {
  font-size: 13px;
  color: #6b7280;
}
#quiz-dashboard-root .metrics .metric-card .metric-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 16px;
  color: #9ca3af;
}

.quiz-dashboard {
  font-family: system-ui, sans-serif;
  padding: 20px;
}
.quiz-dashboard .tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.quiz-dashboard .tabs .tab-btn {
  flex: 1;
  padding: 8px 16px;
  border: 1px solid #ddd;
  background: #f9f9f9;
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
}
.quiz-dashboard .tabs .tab-btn.active {
  background: #8F48D8;
  color: #fff;
}
.quiz-dashboard .tab-content.hidden {
  display: none;
}
.quiz-dashboard .metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.quiz-dashboard .metrics .card {
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-align: center;
}
.quiz-dashboard .card.warning {
  border-left: 4px solid #f87171;
}
.quiz-dashboard .btn {
  background: #8F48D8;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.icon::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  background: no-repeat center/contain;
  margin-right: 10px;
}
.icon::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  background: no-repeat center/contain;
  margin-right: 10px;
}
.icon.i-trophy::before {
  background-image: url(../icons/trophy.svg);
}
.icon.i-ribbon::before {
  background-image: url(../icons/ribbon.svg);
}
.icon.i-books::before {
  background-image: url(../icons/books.svg);
}
.icon.i-time::before {
  background-image: url(../icons/time.svg);
}
.icon.i-star::before {
  background-image: url(../icons/star.svg);
}
.icon.i-clock::before {
  background-image: url(../icons/clock.svg);
}
.icon.i-tick::before {
  background-image: url(../icons/tick.svg);
}
.icon.i-cross::before {
  background-image: url(../icons/cross.svg);
}
.icon.i-open-book::before {
  background-image: url(../icons/open-book.svg);
}

/*Retry Popup Styles************************************/
.retry-popup {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  padding-top: 100px;
  background: rgba(0, 0, 0, 0.6);
}
.retry-popup-content {
  background: #f2f2f2;
  margin: auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  text-align: center;
  position: relative;
}
.retry-popup #retry-quiz-container .retry-loading {
  padding: 16px;
  text-align: center;
}
.retry-popup #retry-quiz-container .retry-error {
  padding: 14px;
  text-align: center;
  color: #b00020;
  background: #ffeaea;
  border-radius: 8px;
}
.retry-popup .retry-close {
  position: absolute;
  top: 10px;
  right: 5%;
  font-size: 24px;
  font-weight: bold;
  color: #000000;
  cursor: pointer;
}
.retry-popup .retry-close:hover {
  color: #8F48D8;
}

/*# sourceMappingURL=quiz-dashboard.css.map*/