/* SkillBridge AI — Role-Based Portals & Stitch Golden Path Views */

/* ─── Role Badges & Portal Headers ─── */
.portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portal-badge.admin {
  background-color: var(--secondary-fixed);
  color: var(--secondary);
  border: 1px solid var(--secondary-fixed-dim);
}

.portal-badge.reviewer {
  background-color: var(--tertiary-fixed);
  color: var(--on-tertiary-container);
  border: 1px solid rgba(0, 142, 191, 0.2);
}

.portal-badge.employee {
  background-color: var(--status-ready-green-bg);
  color: var(--status-ready-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Quick role switcher in header */
.role-quick-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-container-lowest);
  border: var(--ghost-border);
  border-radius: var(--radius-md);
  padding: 5px 10px;
  font-size: 12px;
}

.role-quick-switcher select {
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: var(--on-surface);
  cursor: pointer;
  outline: none;
}

/* ─── Profile & CV View (Screen 7) ─── */
.profile-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-hero-card {
  background: var(--surface-container-lowest);
  border: var(--ghost-border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.profile-user-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-avatar-large {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), #312E81);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headline);
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(75, 65, 225, 0.25);
}

.profile-details h2 {
  font-size: 22px;
  margin-bottom: 4px;
}

.profile-details p {
  color: var(--on-surface-variant);
  font-size: 13.5px;
}

.profile-badges {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* Employee Readiness Summary Card */
.employee-readiness-banner {
  background: linear-gradient(135deg, var(--primary-container), #1E293B);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--secondary);
}

.employee-readiness-banner h3 {
  color: #FFFFFF;
  font-size: 20px;
  margin-bottom: 6px;
}

.employee-readiness-banner p {
  color: var(--inverse-primary);
  font-size: 13.5px;
  max-width: 540px;
}

.readiness-score-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  text-align: center;
  min-width: 180px;
}

.readiness-score-large {
  font-family: var(--font-headline);
  font-size: 44px;
  font-weight: 700;
  color: var(--tertiary-fixed-dim);
  line-height: 1;
}

.readiness-score-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  margin-top: 6px;
  font-weight: 600;
}

/* ─── Question / Assessment View (Screen 8) ─── */
.assessment-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}

.assessment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-container-lowest);
  border: var(--ghost-border);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  box-shadow: var(--shadow-sm);
}

.assessment-badge-active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--error-container);
  color: var(--on-error-container);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.assessment-timer {
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 600;
  color: var(--on-surface);
  display: flex;
  align-items: center;
  gap: 6px;
}

.question-card {
  background: var(--surface-container-lowest);
  border: var(--ghost-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.question-scenario-box {
  background: var(--surface-container-low);
  border-left: 4px solid var(--secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin: 16px 0 20px 0;
  font-size: 14.5px;
  color: var(--on-surface);
  line-height: 1.6;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border: var(--ghost-border);
  border-radius: var(--radius-md);
  background-color: var(--surface-container-lowest);
  cursor: pointer;
  transition: all 0.15s ease;
}

.option-item:hover {
  background-color: var(--surface-container-low);
  border-color: var(--outline-variant);
}

.option-item.selected {
  background-color: #EEF2FF;
  border-color: var(--secondary);
  box-shadow: 0 0 0 1px var(--secondary);
}

.option-item input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--secondary);
}

.option-label {
  font-size: 13.5px;
  color: var(--on-surface);
  line-height: 1.45;
}

/* ─── Adaptive Assessment Wizard Styles ─── */
.wizard-stepper-bar {
  scrollbar-width: thin;
  scrollbar-color: var(--outline-variant) transparent;
}
.wizard-stepper-bar::-webkit-scrollbar {
  height: 4px;
}
.wizard-stepper-bar::-webkit-scrollbar-thumb {
  background: var(--outline-variant);
  border-radius: 4px;
}
.wizard-step-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.wizard-step-pill.active {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
  animation: pulse-step 2s infinite ease-in-out;
}
@keyframes pulse-step {
  0%, 100% { box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2); }
  50% { box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.4); }
}

.level-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}
.level-pill.level-1 {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}
.level-pill.level-2 {
  background: #ECFEFF;
  color: #0E7490;
  border: 1px solid #A5F3FC;
}
.level-pill.level-3 {
  background: #EEF2FF;
  color: #4338CA;
  border: 1px solid #C7D2FE;
}
.level-pill.level-4 {
  background: #FAF5FF;
  color: #7E22CE;
  border: 1px solid #E9D5FF;
}
.level-pill.level-5 {
  background: #FFF1F2;
  color: #BE123C;
  border: 1px solid #FECDD3;
}

/* ─── Results View (Screen 9) ─── */
.results-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.results-hero-card {
  background: var(--surface-container-lowest);
  border: var(--ghost-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: center;
}

.results-gauge-box {
  text-align: center;
  border-right: var(--ghost-border);
  padding-right: 32px;
}

.results-gauge-score {
  font-family: var(--font-headline);
  font-size: 54px;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
}

.results-gauge-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--on-surface-variant);
  margin-top: 8px;
}

.rubric-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.rubric-item {
  background: var(--surface-container-low);
  border: var(--ghost-border);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}

.rubric-score {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 700;
  color: var(--on-surface);
}

.rubric-label {
  font-size: 11.5px;
  color: var(--on-surface-variant);
  margin-top: 2px;
}

/* ─── Skill Gap Matrix View (Screen 10 / Stitch Matrix) ─── */
.gaps-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gaps-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
}
@media (min-width: 768px) {
  .gaps-header {
    flex-direction: row;
    align-items: center;
  }
}

.gaps-controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  background: var(--surface-container-lowest);
  border: var(--ghost-border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}

/* Bento Summary Grid on Matrix */
.matrix-bento-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
}
@media (min-width: 640px) {
  .matrix-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .matrix-bento-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.matrix-bento-card {
  background-color: var(--surface-container-low);
  border: var(--ghost-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.matrix-bento-card .bento-metric {
  font-family: var(--font-headline);
  font-size: 32px;
  line-height: 38px;
  font-weight: 600;
  color: var(--on-surface);
  margin-bottom: 4px;
}

.gaps-matrix-card {
  background: var(--surface-container-lowest);
  border: var(--ghost-border);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.gaps-matrix-table {
  width: 100%;
  border-collapse: collapse;
}

.gaps-matrix-table th {
  padding: 14px 20px;
  background-color: var(--surface-container-low);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--on-surface-variant);
  border-bottom: var(--ghost-border);
}

.gaps-matrix-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--surface-container);
  font-size: 13.5px;
}

.gaps-matrix-table tr:hover td {
  background-color: rgba(242, 244, 246, 0.6);
}

/* Competency Bar in Matrix Table */
.matrix-skill-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
}

.matrix-skill-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 500;
}

.matrix-progress-track {
  width: 100%;
  height: 6px;
  background-color: var(--surface-container-highest);
  border-radius: 9999px;
  overflow: hidden;
}

.matrix-progress-fill {
  height: 100%;
  border-radius: 9999px;
  background-color: var(--secondary);
}
.matrix-progress-fill.dim {
  background-color: var(--secondary-fixed-dim);
}
.matrix-progress-fill.error {
  background-color: var(--error);
}

.gap-delta-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}
.gap-delta-chip.critical { background: var(--error-container); color: var(--on-error-container); }
.gap-delta-chip.medium { background: var(--tertiary-fixed); color: var(--on-tertiary-container); }
.gap-delta-chip.met { background: var(--status-ready-green-bg); color: var(--status-ready-green); }

/* Selected Employee Breakdown Panel */
.gaps-breakdown-panel {
  background: var(--surface-container-lowest);
  border: var(--ghost-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-top: 16px;
}

.gaps-breakdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: var(--ghost-border);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.gaps-skills-list {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 14px;
}
@media (min-width: 768px) {
  .gaps-skills-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gaps-skill-row {
  background-color: var(--surface-container-low);
  border: var(--ghost-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ─── Readiness Analytics View (Stitch Screen 3288a837594d44c991c596136ea32645) ─── */
.analytics-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.capability-core-card {
  background-color: var(--surface-container-lowest);
  border: var(--ghost-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.capability-core-card::after {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(75, 65, 225, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.analytics-metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: var(--ghost-border);
}

.analytics-mini-card {
  background-color: var(--surface-container-low);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.analytics-mini-card .val {
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 600;
  color: var(--on-surface);
  line-height: 1.2;
}

/* ─── AI Recommendations Screen (Stitch Screen 24a8bc90ddfc49adaa4df5f0ff052a58) ─── */
.recommendations-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.impact-forecast-card {
  background-color: var(--surface-container-low);
  border: var(--ghost-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.impact-forecast-card::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(75, 65, 225, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.forecast-metric-box {
  background-color: var(--surface-container-lowest);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.forecast-metric-val {
  font-family: var(--font-headline);
  font-size: 26px;
  font-weight: 600;
  color: var(--on-surface);
  line-height: 1.2;
  margin: 4px 0 2px;
}
.forecast-metric-val.indigo {
  color: var(--secondary);
}

/* Weekly Velocity Bar Chart */
.velocity-chart-wrap {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 120px;
  padding-top: 16px;
}

.velocity-bar-col {
  flex: 1;
  background-color: var(--surface-container-highest);
  border-radius: 6px 6px 0 0;
  position: relative;
  transition: all 0.25s ease;
  min-height: 20px;
}
.velocity-bar-col:hover {
  background-color: rgba(75, 65, 225, 0.25);
}
.velocity-bar-col.highlight {
  background-color: var(--secondary);
  box-shadow: 0 2px 8px rgba(75, 65, 225, 0.35);
}

.velocity-bar-col .bar-label {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  color: var(--secondary);
  white-space: nowrap;
}

/* Curated AI Pathways 3-Col Grid */
.pathways-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 8px;
}
@media (min-width: 768px) {
  .pathways-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pathway-card {
  background-color: var(--surface-container-low);
  border: var(--ghost-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.pathway-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pathway-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 20px;
}

.pathway-chip {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background-color: var(--surface-container);
  color: var(--on-surface-variant);
}

/* Recommendations Action Center & Filter Tabs */
.rec-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.rec-filter-tabs {
  display: flex;
  gap: 8px;
  background-color: var(--surface-container-low);
  padding: 5px;
  border-radius: var(--radius-md);
  border: var(--ghost-border);
}

.rec-tab {
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--on-surface-variant);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.rec-tab.active {
  background: var(--surface-container-lowest);
  color: var(--on-surface);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.rec-card {
  background: var(--surface-container-lowest);
  border: var(--ghost-border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: all 0.15s ease;
}
.rec-card:hover {
  box-shadow: var(--shadow-md);
}

.rec-badge-action {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}
.rec-develop { background: #EEF2FF; color: var(--secondary); }
.rec-move { background: var(--status-ready-green-bg); color: var(--status-ready-green); }
.rec-hire { background: var(--error-container); color: var(--on-error-container); }

/* ─── Employee Directory View (Screen 6) ─── */
.directory-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.directory-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-container-lowest);
  border: var(--ghost-border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}

.directory-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 320px;
}
