html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  background-color: #f5f7fb;
}

.body-wrapper {
  min-height: 100vh;
}

.page-content {
  padding-top: 96px;
  padding-bottom: 32px;
}

.app-header {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(73, 86, 124, 0.12);
  z-index: 20;
}

.sidebar-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.halo-brand-link {
  width: 100%;
}

.halo-brand-icon {
  align-items: center;
  background: rgba(93, 135, 255, 0.14);
  border-radius: 18px;
  color: #5d87ff;
  display: inline-flex;
  font-size: 28px;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.halo-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.halo-brand-title {
  color: #2a3547;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.halo-brand-subtitle {
  color: #5a6a85;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.sidebar-nav {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.sidebar-nav .simplebar-content {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.sidebar-nav ul#sidebarnav {
  flex: 1 1 auto;
}

.halo-quote-card {
  margin: 1rem 1rem 1.5rem;
  padding: 1.25rem;
}

.halo-quote-icon-wrap {
  align-items: center;
  background: rgba(93, 135, 255, 0.14);
  border-radius: 999px;
  color: #5d87ff;
  display: inline-flex;
  font-size: 1.1rem;
  height: 42px;
  justify-content: center;
  margin-bottom: 1rem;
  width: 42px;
}

.halo-quote-text {
  color: #2a3547;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
}

.halo-quote-author {
  color: #5a6a85;
  font-size: 0.8rem;
}

.halo-hero-card {
  background: linear-gradient(135deg, rgba(93, 135, 255, 0.16), rgba(73, 190, 255, 0.08));
}

.halo-lead {
  max-width: 840px;
}

.halo-section-icon {
  align-items: center;
  border-radius: 14px;
  display: inline-flex;
  font-size: 1.4rem;
  height: 52px;
  justify-content: center;
  min-width: 52px;
}

.halo-feature-item {
  background: #f8f9fc;
  border: 1px solid rgba(42, 53, 71, 0.08);
  border-radius: 14px;
  padding: 1rem;
}

.footer {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.footer-note {
  padding-bottom: 20px;
}

@media (max-width: 1199.98px) {
  .page-content {
    padding-top: 88px;
  }
}

@media (max-width: 767.98px) {
  .page-content {
    padding-top: 80px;
  }

  .halo-brand-title {
    font-size: 1.5rem;
  }

  .halo-brand-subtitle {
    font-size: 0.7rem;
  }
}

.answer-option.selected {
  background: var(--bs-primary) !important;
  color: white !important;
  border-color: var(--bs-primary) !important;
}

.answer-option.selected span {
  color: white !important;
  border-color: white !important;
}

.answer-option.answer-correct,
.btn.answer-option.answer-correct {
  background-color: #d4edda !important;
  border-color: #28a745 !important;
  color: #155724 !important;
  transition: background 0.2s, border 0.2s, color 0.2s;
}

.answer-option.answer-correct span,
.btn.answer-option.answer-correct span {
  color: #155724 !important;
  border-color: #28a745 !important;
}

.answer-option.answer-incorrect,
.btn.answer-option.answer-incorrect {
  background-color: #f8d7da !important;
  border-color: #dc3545 !important;
  color: #721c24 !important;
  transition: background 0.2s, border 0.2s, color 0.2s;
}

.answer-option.answer-incorrect span,
.btn.answer-option.answer-incorrect span {
  color: #721c24 !important;
  border-color: #dc3545 !important;
}

.points-bar-bg {
  background: #ffe082;
  border-radius: 8px;
  height: 18px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.points-bar-fill {
  height: 100%;
  border-radius: 8px 0 0 8px;
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.points-bar-fill-prev {
  background: linear-gradient(90deg, #ffd600 0%, #ffa726 100%);
  z-index: 1;
}

.points-bar-fill-new {
  background: linear-gradient(90deg, #28a745 0%, #43e97b 100%);
  z-index: 2;
  box-shadow: 0 0 8px rgba(40, 167, 69, 0.267);
  border-radius: 0 8px 8px 0;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.9s;
}

.points-bar-fill-new.level-up {
  background: linear-gradient(90deg, #22c55e 0%, #4ade80 100%);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.4);
}

.progress-bar {
  background-color: #9d12d9;
}

.playground-question-offcanvas.offcanvas {
  inset: 50% auto auto 50%;
  border: 1px solid rgba(42, 53, 71, 0.12);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(42, 53, 71, 0.28);
  height: min(900px, calc(100vh - 2rem));
  max-width: min(1120px, calc(100vw - 2rem));
  transform: translate(-50%, -50%) translateX(100%);
  width: min(1120px, calc(100vw - 2rem));
}

.playground-question-offcanvas.offcanvas.show,
.playground-question-offcanvas.offcanvas.showing {
  transform: translate(-50%, -50%);
}

.playground-question-offcanvas .offcanvas-header {
  background: linear-gradient(135deg, rgba(93, 135, 255, 0.08), rgba(73, 190, 255, 0.04));
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 1.25rem 1.5rem;
}

.playground-question-offcanvas .offcanvas-body {
  overflow-y: auto;
  padding: 1.5rem;
}

.halo-image-zoom-offcanvas.offcanvas {
  inset: 50% auto auto 50%;
  border: 1px solid rgba(42, 53, 71, 0.12);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(42, 53, 71, 0.28);
  height: min(900px, calc(100vh - 2rem));
  max-width: min(1120px, calc(100vw - 2rem));
  transform: translate(-50%, -50%) translateX(100%);
  width: min(1120px, calc(100vw - 2rem));
}

.halo-image-zoom-offcanvas.offcanvas.show,
.halo-image-zoom-offcanvas.offcanvas.showing {
  transform: translate(-50%, -50%);
}

.halo-image-zoom-offcanvas .offcanvas-header {
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(93, 135, 255, 0.08), rgba(73, 190, 255, 0.04));
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 1.25rem 1.5rem 1rem;
}

.halo-image-zoom-offcanvas .offcanvas-body {
  overflow: auto;
  padding: 1.5rem;
}

.halo-image-zoom-preview {
  max-height: calc(100vh - 8rem);
  max-width: 100%;
  object-fit: contain;
}

.halo-image-zoom-trigger {
  cursor: zoom-in;
}

.halo-image-zoom-trigger:hover {
  filter: brightness(1.01);
}

@media (max-width: 767.98px) {
  .playground-question-offcanvas.offcanvas {
    border-radius: 16px;
    height: calc(100vh - 1rem);
    max-width: calc(100vw - 1rem);
    width: calc(100vw - 1rem);
  }

  .playground-question-offcanvas .offcanvas-header,
  .playground-question-offcanvas .offcanvas-body {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .halo-image-zoom-offcanvas.offcanvas {
    border-radius: 16px;
    height: calc(100vh - 1rem);
    max-width: calc(100vw - 1rem);
    width: calc(100vw - 1rem);
  }

  .halo-image-zoom-offcanvas .offcanvas-header,
  .halo-image-zoom-offcanvas .offcanvas-body {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .halo-image-zoom-preview {
    max-height: calc(100vh - 10rem);
  }
}