/* ══════════════════════════════════════════════
   ASSESSMENT UI POLISH & OVERRIDES
   ══════════════════════════════════════════════ */

/* 1. Background Enhancement */
.pt-assessment-page {
  background: radial-gradient(circle at 15% 50%, rgba(20, 40, 100, 1), transparent 50%),
              radial-gradient(circle at 85% 30%, rgba(40, 80, 180, 1), transparent 50%),
              linear-gradient(135deg, #061233 0%, #0d2870 50%, #173fa3 100%) !important;
  background-attachment: fixed !important;
  color: #fff;
.pt-assessment-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSc0JyBoZWlnaHQ9JzQnPjxyZWN0IHdpZHRoPSc0JyBoZWlnaHQ9JzQnIGZpbGw9J25vbmUnLz48cmVjdCB3aWR0aD0nMScgaGVpZ2h0PScxJyBmaWxsPSdyZ2JhKDI1NSwyNTUsMjU1LDAuMDUpJy8+PC9zdmc+');
  pointer-events: none;
  z-index: 0;
}

/* 2. Fix the layout heights to look natural, NOT stretched */
html, body { height: auto !important; overflow: auto !important; }
.pt-assessment-page { height: auto !important; min-height: 100vh; overflow: auto !important; }

.pt-arena {
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  padding: 40px 20px 60px !important;
  display: block !important;
  min-height: calc(100vh - 72px);
}
.pt-arena > .container {
  height: auto !important;
  display: block !important;
  max-width: 1100px;
}

.pt-dashboard {
  display: grid !important;
  grid-template-columns: 1fr 280px !important;
  gap: 30px !important;
  height: auto !important;
  align-items: start !important;
}

/* 3. The Main Card (White) */
.pt-main-col {
  height: auto !important;
  display: block !important;
}
.pt-card {
  height: auto !important;
  display: block !important;
  background: #ffffff !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3) !important;
  padding: 0 !important;
}
.pt-qmeta-bar {
  padding: 20px 30px !important;
  border-bottom: 1px solid #f0f3f8 !important;
  background: #fcfcfd !important;
  border-radius: 20px 20px 0 0 !important;
}
.pt-questions-area {
  padding: 30px 40px 10px !important;
  height: auto !important;
  display: block !important;
}
.question-cards-list {
  height: auto !important;
  display: block !important;
}
.question-section:not([hidden]) {
  height: auto !important;
  display: block !important;
}

/* Likert Scale (Options) inside the white card */
.pt-card .likert-scale {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  border: none !important;
  background: transparent !important;
}
.pt-card .likert-options {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}
.pt-card .likert-option {
  height: auto !important;
  min-height: 0 !important;
}
.pt-card .likert-option label {
  padding: 14px 20px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  margin: 0 !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02) !important;
  transition: all 0.2s ease !important;
}
.pt-card .likert-option label:hover {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 15px rgba(0,0,0,0.05) !important;
}
.pt-card .likert-option input:checked + label {
  background: #1e3a8a !important;
  border-color: #1e3a8a !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(30,58,138,0.2) !important;
}

/* 4. The Sidebar (Glassmorphism) */
.pt-sidebar {
  position: sticky !important;
  top: 100px !important;
  height: auto !important;
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 24px !important;
  padding: 30px 24px !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2) !important;
}

/* 5. Fix the 3/100 Ring Area */
.pt-ring-wrap {
  width: 150px !important;
  height: 150px !important;
  margin: 10px auto 20px !important;
}
.pt-ring-label {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 2px !important;
}
.pt-ring-num {
  font-size: 3rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  color: #fbbf24 !important; /* Yellow to stand out */
}
.pt-ring-frac {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

/* 6. Fix Typography */
.pt-card .question-text {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin-bottom: 24px !important;
}
.pt-sidebar-timer {
  background: rgba(0,0,0,0.2) !important;
  border: 1px solid rgba(255,255,255,0.05) !important;
  border-radius: 12px !important;
  padding: 12px !important;
  margin-bottom: 20px !important;
}

/* 7. Footer / Dots */
.pt-card-foot {
  padding: 20px 40px 30px !important;
  border-top: none !important;
  background: #ffffff !important;
  border-radius: 0 0 20px 20px !important;
}
.pt-page-dot {
  width: 34px !important;
  height: 34px !important;
  font-size: 0.8rem !important;
}

/* Ensure hidden sections are strictly hidden */
.question-section[hidden] {
  display: none !important;
}
.pt-card-foot {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

/* Fix alignment override (Desktop) */
.pt-ring-label {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0px !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
}
.pt-ring-num {
  font-size: 3.2rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  color: #fbbf24 !important;
  align-self: center !important;
  margin-top: 5px !important;
}
.pt-ring-frac {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.5) !important;
  align-self: center !important; /* OVERRIDE flex-end */
  margin: 0 !important;
}

/* ══════════════════════════════════════════════
   8. MOBILE OPTIMIZATION
   ══════════════════════════════════════════════ */
@media (max-width: 992px) {
  .pt-dashboard {
    grid-template-columns: 1fr 240px !important;
    gap: 20px !important;
  }
}

@media (max-width: 768px) {
  .pt-arena {
    padding: 20px 14px 40px !important;
  }
  
  .pt-dashboard {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  /* Make the sidebar a horizontal, compact strip on mobile */
  .pt-sidebar {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 20px !important;
    gap: 12px !important;
    border-radius: 16px !important;
  }
  
  .pt-ring-wrap {
    width: 60px !important;
    height: 60px !important;
    margin: 0 !important;
  }
  
  .pt-ring-num {
    font-size: 1.4rem !important;
  }
  .pt-ring-frac {
    display: none !important;
  }
  .pt-ring-caption {
    display: none !important;
  }
  
  .pt-sidebar-timer {
    margin-bottom: 0 !important;
    flex: 1 !important;
    min-width: 140px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
  }
  
  .pt-dim-chips, .pt-dim-legend, .pt-pct-bar-wrap {
    display: none !important; /* Hide extra elements to save space on mobile */
  }
  
  .pt-submit-hbtn {
    width: 100% !important;
    padding: 12px !important;
    margin-top: 4px !important;
  }
  
  /* Compact card paddings */
  .pt-qmeta-bar {
    padding: 14px 20px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  .pt-questions-area {
    padding: 20px 20px 10px !important;
  }
  .pt-card-foot {
    padding: 16px 20px 20px !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
  }
  
  .pt-page-dots {
    order: 3 !important;
    width: 100% !important;
    justify-content: center !important;
  }
  .pt-fnav-btn {
    flex: 1 !important;
    justify-content: center !important;
    text-align: center !important;
  }
  
  .pt-card .question-text {
    font-size: 1rem !important;
    margin-bottom: 16px !important;
  }
  .pt-card .likert-option label {
    padding: 12px 16px !important;
    gap: 10px !important;
  }
  .question-cards-list .likert-value-num {
    width: 26px !important;
    height: 26px !important;
    font-size: 0.8rem !important;
  }
  .question-cards-list .likert-value-desc {
    font-size: 0.85rem !important;
  }
}

