/* Neurodivergence Screening custom styles */

/* Fix sidebar horizontal scroll */
.sidebar .sidebar-wrapper {
  overflow-x: hidden;
}

/* Progress bar */
.test-progress {
  margin-bottom: 20px;
}
.test-progress .progress {
  height: 10px;
  border-radius: 5px;
}
.test-progress .progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 0.85em;
  color: #9A9A9A;
}

/* Question card */
.question-card {
  margin-bottom: 15px;
  transition: all 0.2s ease;
}
.question-card .card-body {
  padding: 15px 20px;
}
.question-card.answered {
  border-left: 3px solid #51bcda;
}
.question-card .question-text {
  font-size: 0.95em;
  margin-bottom: 12px;
  color: #333;
}
.question-number {
  font-weight: 700;
  color: #51bcda;
  margin-right: 8px;
}

/* Rating scale */
.rating-scale {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.rating-scale .btn {
  min-width: 45px;
  padding: 6px 12px;
  font-size: 0.85em;
  border-radius: 20px;
  transition: all 0.2s ease;
}
.rating-scale .btn.active {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(81, 188, 218, 0.4);
}
.rating-scale .btn-outline-info.active {
  background-color: #51bcda;
  color: white;
  border-color: #51bcda;
}

/* Section header */
.section-header {
  margin-bottom: 25px;
}
.section-header .card-body {
  text-align: center;
}
.section-header .section-icon {
  font-size: 2.5em;
  margin-bottom: 10px;
}
.section-header .estimated-time {
  color: #9A9A9A;
  font-size: 0.9em;
}

/* Landing cards */
.instrument-card {
  cursor: pointer;
  transition: all 0.3s ease;
}
.instrument-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Results */
.result-tier {
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 15px;
}
.result-tier.tier-minimal {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  color: #155724;
}
.result-tier.tier-low {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  color: #155724;
}
.result-tier.tier-mild {
  background: linear-gradient(135deg, #dff0e0, #c8e6c9);
  color: #2e7d32;
}
.result-tier.tier-moderate {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  color: #856404;
}
.result-tier.tier-high {
  background: linear-gradient(135deg, #ffe0cc, #ffd1b3);
  color: #a04000;
}
.result-tier.tier-very-high {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  color: #721c24;
}
.result-tier-title {
  font-size: 0.85em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  min-height: 2.4em;
}
.result-tier h3 {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 2px;
}
.result-tier-label {
  font-size: 0.9em;
  margin-bottom: 0;
}

/* Disclaimer banner */
.disclaimer-banner {
  background: #f0f0f0;
  border-left: 4px solid #51bcda;
  padding: 15px 20px;
  margin-bottom: 20px;
  border-radius: 0 4px 4px 0;
  font-size: 0.9em;
}

/* Navigation buttons */
.section-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

/* Chart container */
.chart-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 20px auto;
  z-index: 0;
}
.chart-container canvas {
  width: 100% !important;
  height: auto !important;
}

/* Report PDF header (hidden on screen, visible in PDF) */
.report-pdf-header {
  display: none;
}
#reportContent .report-pdf-header {
  display: block;
}

/* No-print elements */
.no-print {
  /* visible on screen */
}

/* Report text */
.report-text {
  font-size: 0.95em;
  line-height: 1.7;
  color: #444;
  white-space: pre-line;
}

@media (max-width: 768px) {
  .rating-scale {
    gap: 5px;
  }
  .rating-scale .btn {
    min-width: 38px;
    padding: 5px 8px;
    font-size: 0.8em;
  }
}

/* Consistency badges */
.consistency-badge {
  border-left: 4px solid #ccc;
  background: #f8f9fa;
}
.consistency-badge .consistency-tier-label {
  font-weight: 600;
  margin-left: 6px;
}
.consistency-GOOD {
  border-left-color: #28a745;
}
.consistency-GOOD .consistency-tier-label {
  color: #28a745;
}
.consistency-ACCEPTABLE {
  border-left-color: #6c9bd1;
}
.consistency-ACCEPTABLE .consistency-tier-label {
  color: #4a7ab5;
}
.consistency-VARIABLE {
  border-left-color: #ffc107;
}
.consistency-VARIABLE .consistency-tier-label {
  color: #d4a017;
}
.consistency-POOR {
  border-left-color: #dc3545;
}
.consistency-POOR .consistency-tier-label {
  color: #dc3545;
}
