:root {
  --md-primary-fg-color: #6366f1;
  --md-accent-fg-color: #8b5cf6;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.stat-card {
  background: var(--md-code-bg-color);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: #a5b4fc;
  line-height: 1.2;
  white-space: nowrap;
}

.stat-card .stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 4px;
}

.stat-card .stat-sub {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: 2px;
}

.role-card {
  background: var(--md-code-bg-color);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  border-left: 4px solid var(--md-accent-fg-color);
}

.role-card h3 {
  margin-top: 0;
}

.salary-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.level-badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 8px;
}

.cert-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  margin: 2px 4px 2px 0;
}

.skill-badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.1);
  color: #a5b4fc;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  margin: 2px 4px 2px 0;
}

.tool-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  margin: 2px 4px 2px 0;
}

.pathway-badge {
  display: inline-block;
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin: 2px 4px 2px 0;
}

.progress-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  margin: 8px 0 16px;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
}

.chart-container {
  background: var(--md-code-bg-color);
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.chart-container canvas {
  max-height: 350px;
}

.assessment-option {
  display: block;
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 8px;
  background: var(--md-code-bg-color);
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.assessment-option:hover {
  border-color: rgba(99, 102, 241, 0.3);
}

.assessment-option.selected {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
}

#assessment-results {
  display: none;
  margin-top: 24px;
}

.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #6366f1, rgba(99, 102, 241, 0.2));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #6366f1;
  border: 3px solid var(--md-default-bg-color);
}

.retention-factor {
  background: var(--md-code-bg-color);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}

.retention-factor h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0;
}

.retention-percentage {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ef4444;
}

.retention-stat {
  font-size: 2rem;
  font-weight: 800;
  color: #a5b4fc;
  margin-bottom: 4px;
}

.stat-source {
  font-size: 0.7rem;
  opacity: 0.5;
  margin-top: 6px;
}

.stat-source a {
  color: inherit;
  text-decoration: underline;
  text-decoration-style: dotted;
}

.stat-source a:hover {
  opacity: 1;
  color: #a5b4fc;
}
