/* Quiz Center — premium LMS dashboard */

body.quiz-center-page {
  user-select: text;
}

.qc-shell {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto 40px;
  display: grid;
  gap: 22px;
}

body.lms-app .qc-shell {
  max-width: var(--lms-max, 1560px);
}

.qc-hero {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(79, 140, 255, 0.22);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(8, 16, 36, 0.95), rgba(6, 13, 32, 0.92));
  box-shadow: 0 20px 60px rgba(1, 8, 20, 0.45);
}

.qc-eyebrow {
  margin: 0 0 8px;
  color: #7dd3fc;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qc-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: -0.03em;
  color: #f8fbff;
}

.qc-lede {
  margin: 0;
  max-width: 62ch;
  color: #c9d7f5;
  line-height: 1.55;
}

.qc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.qc-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.qc-hero-metrics > div {
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  background: rgba(8, 17, 39, 0.55);
  text-align: center;
}

.qc-hero-metrics strong {
  display: block;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 800;
  color: #f8fbff;
  letter-spacing: -0.03em;
}

.qc-hero-metrics span {
  display: block;
  margin-top: 4px;
  color: #9eb0d4;
  font-size: 0.75rem;
}

.qc-panel {
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid rgba(79, 140, 255, 0.18);
  border-radius: 20px;
  background: rgba(6, 13, 32, 0.88);
}

.qc-section-head {
  margin-bottom: 16px;
}

.qc-section-head h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  color: #f3f7ff;
}

.qc-section-head p {
  margin: 0;
  color: #9eb0d4;
}

.qc-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.qc-toolbar input,
.qc-toolbar select {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: rgba(8, 17, 39, 0.9);
  color: #e8efff;
  padding: 0 12px;
}

.qc-toolbar input:focus-visible,
.qc-toolbar select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.qc-search-label,
.qc-filter-label {
  color: #9eb0d4;
  font-size: 13px;
}

.qc-count {
  color: #7dd3fc;
  font-size: 13px;
  white-space: nowrap;
}

.qc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.qc-path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.qc-card,
.qc-feature-card {
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(160deg, rgba(10, 20, 44, 0.95), rgba(8, 16, 36, 0.88));
}

.qc-card h3,
.qc-feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #f5f8ff;
}

.qc-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
}

.qc-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
}

.qc-level {
  font-size: 12px;
  color: #9eb0d4;
  border: 1px solid rgba(148, 184, 255, 0.2);
  border-radius: 999px;
  padding: 3px 8px;
}

.qc-meta,
.qc-cert,
.qc-feature-card p {
  margin: 0 0 8px;
  color: #a9b9da;
  font-size: 0.92rem;
  line-height: 1.45;
}

.qc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.qc-empty,
.qc-error {
  color: #c9d7f5;
}

.qc-empty-inline {
  padding: 8px 0;
}

.qc-empty-inline p {
  margin: 0 0 12px;
  color: #9eb0d4;
}

.qc-continue-card {
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 16px;
  padding: 18px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(56, 189, 248, 0.1), transparent 50%),
    linear-gradient(160deg, rgba(10, 20, 44, 0.95), rgba(8, 16, 36, 0.88));
}

.qc-continue-card h3 {
  margin: 0 0 10px;
  color: #f5f8ff;
  font-size: 1.15rem;
}

.qc-mini-list {
  display: grid;
  gap: 10px;
}

.qc-mini-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.16);
  background: rgba(8, 17, 39, 0.7);
}

.qc-mini-item strong {
  display: block;
  color: #f3f7ff;
  font-size: 0.95rem;
}

.qc-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.qc-stat,
.qc-skeleton {
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 14px;
  padding: 14px;
  background: rgba(8, 17, 39, 0.75);
  text-align: center;
  min-height: 78px;
}

.qc-stat span {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #f8fbff;
}

.qc-stat label {
  display: block;
  margin-top: 4px;
  color: #9eb0d4;
  font-size: 0.8rem;
}

.qc-skeleton {
  background: linear-gradient(90deg, rgba(20, 32, 58, 0.9), rgba(40, 60, 96, 0.55), rgba(20, 32, 58, 0.9));
  background-size: 200% 100%;
  animation: qc-shimmer 1.2s ease-in-out infinite;
}

@keyframes qc-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.qc-card-rich {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.qc-card-rich:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.45);
  box-shadow: 0 12px 28px rgba(2, 8, 24, 0.35);
}

.qc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.qc-badge,
.qc-status {
  font-size: 11px;
  border-radius: 999px;
  padding: 3px 8px;
  border: 1px solid rgba(148, 184, 255, 0.22);
  color: #9eb0d4;
}

.qc-status.is-done {
  color: #86efac;
  border-color: rgba(134, 239, 172, 0.35);
  background: rgba(22, 101, 52, 0.25);
}

.qc-status.is-progress {
  color: #fde68a;
  border-color: rgba(253, 230, 138, 0.35);
  background: rgba(113, 63, 18, 0.28);
}

.qc-status.is-new {
  color: #7dd3fc;
}

.qc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.qc-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.qc-progress {
  margin: 10px 0 4px;
}

.qc-progress-meta {
  display: flex;
  justify-content: space-between;
  color: #9eb0d4;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.qc-progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(35, 50, 74, 0.7);
  overflow: hidden;
}

.qc-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #60a5fa);
}

.qc-list-slot .qc-card {
  margin: 0;
}

.qc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 184, 255, 0.2);
  background: rgba(8, 17, 39, 0.55);
  color: #b8c6de;
  font-size: 0.78rem;
  font-weight: 600;
}

.qc-chip i {
  width: 14px;
  height: 14px;
  color: #7dd3fc;
  flex-shrink: 0;
}

.qc-feature-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}

.qc-path-card,
.qc-mock-card {
  border-left-width: 3px;
}

.qc-path-linux {
  border-left-color: #34d399;
}

.qc-path-linux .qc-icon {
  background: rgba(52, 211, 153, 0.14);
  color: #6ee7b7;
}

.qc-path-aix {
  border-left-color: #60a5fa;
}

.qc-path-aix .qc-icon {
  background: rgba(96, 165, 250, 0.14);
  color: #93c5fd;
}

.qc-path-sendmail {
  border-left-color: #fbbf24;
}

.qc-path-sendmail .qc-icon {
  background: rgba(251, 191, 36, 0.14);
  color: #fcd34d;
}

.qc-path-nim {
  border-left-color: #a78bfa;
}

.qc-path-nim .qc-icon {
  background: rgba(167, 139, 250, 0.14);
  color: #c4b5fd;
}

.qc-path-mixed {
  border-left-color: #38bdf8;
}

.qc-path-mixed .qc-icon {
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
}

#quiz-empty.ml-empty-state {
  margin-top: 8px;
  justify-items: start;
}

body.quiz-center-page .qc-shell {
  gap: clamp(12px, 1.4vw, 18px);
}

body.quiz-center-page .qc-panel {
  padding: clamp(14px, 1.8vw, 22px);
}

@media (max-width: 760px) {
  .qc-toolbar {
    grid-template-columns: 1fr;
  }

  .qc-count {
    justify-self: start;
  }

  .qc-hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .qc-mini-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qc-skeleton {
    animation: none;
  }

  .qc-card-rich {
    transition: none;
  }
}
