@layer components {
/* Patient Dashboard Styles */
/* Layout Containers */
.dashboard-grid-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  max-width: 1320px;
  margin-inline: auto;
  padding: var(--space-4);
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .dashboard-grid-container {
    padding-inline: var(--space-3);
  }
}

.dashboard-title { 
  font-weight: var(--font-weight-bold); 
  color: var(--color-heading); 
  margin-bottom: var(--space-5); 
  font-size: var(--font-size-base); /* Closer to original 1.1rem heading size */
}

/* Unified row horizontal spacing to ensure equal left/right gutters across dashboard sections */
/* Override Bootstrap row gutters for consistent left/right spacing irrespective of nested card padding */
.dashboard-row {
  margin-left: 0 !important; /* neutralize -0.75rem default */
  margin-right: 0 !important;
}
.dashboard-row > [class^="col"],
.dashboard-row > .col-12,
.dashboard-row > .col-lg-4,
.dashboard-row > .col-lg-8,
.dashboard-row > .col-md-12 {
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}
@media (max-width: 768px) {
  .dashboard-row > [class^="col"],
  .dashboard-row > .col-12 { padding-left: var(--space-3); padding-right: var(--space-3); }
}
@media (max-width: 576px) {
  .dashboard-row > [class^="col"],
  .dashboard-row > .col-12 { padding-left: var(--space-2); padding-right: var(--space-2); }
}

.patient-dashboard-card, .charts { 
  container-type: inline-size;
  background: var(--color-surface); 
  border-radius: var(--radius-md); /* Original was ~12px (0.75rem); using radius-md (8px) for design consistency */ 
  box-shadow: var(--shadow-sm); 
  padding: var(--space-5); 
  margin-bottom: var(--space-5); 
  color: var(--color-text-body); 
  position: relative; 
  border: 1px solid var(--color-border-decorative); /* Reinstate subtle card border for clearer separation */
}

/* Container Queries for Charts/Score Card */
@container (max-width: 400px) {
  .patient-dashboard-card, .charts {
    padding: var(--space-4);
  }
  
  .score-circle {
    width: var(--pd-score-diameter-sm);
    height: var(--pd-score-diameter-sm);
  }
  
  .score-value {
    font-size: 2rem; /* Slightly smaller than lg */
  }
  
  .chart-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
  
  .chart-header .btn {
    align-self: flex-end;
  }
}

.patient-dashboard-card a:not(.btn):not(.btn-primary-token) { 
  color: var(--color-text-body); 
  display: block; 
  margin-top: var(--space-1); 
  font-size: var(--font-size-sm); 
  text-decoration: none; 
  transition: color var(--transition-base); 
}
.patient-dashboard-card a:not(.btn):not(.btn-primary-token):hover { color: var(--color-primary); }

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

.chart-header h3 {
  margin: 0;
  font-size: var(--font-size-md);
}

.charts h3 { 
  font-weight: var(--font-weight-bold); /* closer to original bold */ 
  color: var(--color-heading); 
  text-align: center; 
  font-size: var(--font-size-base); /* 18px vs original ~17.6px */
  margin-bottom: var(--space-4); 
  letter-spacing: .5px; 
}

/* Chart Containers */
#dexterity-score-chart,
#rom-score-chart,
#pain-score-chart,
#overall-score-chart { 
  width: 100%; 
  min-height: var(--pd-chart-min-height); 
}

/* Score Badges */
.overall-score-badge {
  display: inline-block;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: white;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-lg);
  line-height: 60px;
  text-align: center;
  margin: 0 auto;
}

/* Score Circle */
.score-circle, .score-circle-empty { 
  width: var(--pd-score-diameter); 
  height: var(--pd-score-diameter); 
  border: var(--score-ring-thickness) solid var(--color-primary); 
  border-radius: var(--radius-round); 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  margin: 0 auto var(--space-4); 
  background: var(--color-surface); 
  position: relative; 
  font-family: var(--font-family-sans); 
  transition: border-color var(--transition-base); 
}
.score-circle-empty { border-color: var(--color-border-decorative); }

.score-value { 
  font-size: var(--font-size-lg); /* Increase prominence (36px) for readability */
  font-weight: var(--font-weight-bold); 
  line-height: 1; 
  color: var(--color-heading); 
}

.score-label { 
  font-size: var(--font-size-sm); /* More legible than 9px for 50+ demographic */
  color: var(--color-text-muted); 
  letter-spacing: .5px; 
  text-transform: uppercase; 
}

.no-score-text { 
  font-size: var(--font-size-base); /* Elevate for readability */
  color: var(--color-text-muted); 
  font-weight: var(--font-weight-bold); 
}

.score-description { 
  font-size: var(--font-size-sm); 
  color: var(--color-text-muted); 
  text-align: center; 
  margin: 0; 
}

/* Assessment Alerts */
.assessment-required-display .alert { 
  border-radius: var(--radius-md); 
  padding: var(--space-2) var(--space-3); 
  margin: var(--space-2) 0; 
}
.assessment-required-display .btn { 
  font-size: var(--font-size-xs); 
  padding: var(--space-2) var(--space-3); 
  border-radius: var(--radius-sm); 
}
.assessment-status { 
  border-top: 1px solid var(--color-border-decorative); 
  padding-top: var(--space-2); 
  margin-top: var(--space-2); 
}
.assessment-status div { margin: 2px 0; }

/* Chips and Delta Badges */
.chips { display: flex; gap: var(--space-2); justify-content: center; flex-wrap: wrap; }
.chip { 
  display: inline-flex; align-items: center; gap: 6px; 
  padding: 2px 8px; border-radius: var(--radius-pill, 9999px); 
  font-size: var(--font-size-base); border: 1px solid var(--color-border-decorative);
}
.chip-success { background: rgba(40, 167, 69, .08); color: var(--color-heading); border-color: rgba(40,167,69,.25); }

/* Segmented Controls */
.segmented-control {
  display: flex;
  background: var(--color-surface);
  border: 1px solid var(--color-border-decorative);
  border-radius: var(--radius-md);
  padding: 2px;
  gap: 2px;
}

.segmented-control-option {
  padding: var(--space-2) var(--space-3);
  border: none;
  background: transparent;
  border-radius: calc(var(--radius-md) - 2px);
  font-size: var(--font-size-sm);
  font-family: var(--font-family-sans);
  color: var(--color-text-body);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  min-width: 48px;
  text-align: center;
  position: relative;
}

.segmented-control-option:hover {
  background: var(--color-selected);
  color: var(--color-heading);
}

.segmented-control-option.active {
  background: var(--color-primary);
  color: var(--color-text-body-inverted);
  font-weight: var(--font-weight-bold);
}

.segmented-control-option:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  z-index: 1;
}

/* Chart containers with consistent min-height */
.chart-container {
  min-height: 300px;
  position: relative;
}

.chart-container-sm {
  min-height: 250px;
  position: relative;
}
.chip-missing { background: rgba(220, 53, 69, .06); color: var(--color-heading); border-color: rgba(220,53,69,.25); }
.delta-badge { 
  display: inline-block; padding: 4px 8px; border-radius: var(--radius-sm); 
  font-size: var(--font-size-base); font-weight: var(--font-weight-bold);
  border: 1px solid currentColor;
}
.delta-badge-up { background: rgba(40,167,69,.15); color: #198754; border-color: rgba(40,167,69,.3); }
.delta-badge-down { background: rgba(220,53,69,.15); color: #dc3545; border-color: rgba(220,53,69,.3); }
.delta-badge-stable { background: rgba(108,117,125,.15); color: #6c757d; border-color: rgba(108,117,125,.3); }

/* Distance to Goal */
.distance-to-goal {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* Score Breakdown Row */
.score-breakdown-row {
  border-top: 1px solid var(--color-border-decorative);
}
.score-breakdown-row .border-end {
  border-color: var(--color-border-decorative) !important;
}
.score-breakdown-row .fw-bold {
  font-size: var(--font-size-base);
}

/* Chart Header & Filters */
.chart-header { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-bottom: var(--space-4); 
}
.chart-header h3 { 
  margin-bottom: 0; 
  text-align: left; 
}
.chart-filters { 
  display: flex; 
  gap: var(--space-2); 
}
.chart-filters .form-select { min-width: 120px; }

a {
    color: var(--color-text-body);
}

/* Recovery Focus Card Styles */
.recovery-focus-card {
  background: linear-gradient(135deg, rgba(72, 187, 120, 0.03) 0%, rgba(72, 187, 120, 0.08) 100%);
  border: 1px solid rgba(72, 187, 120, 0.15);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.recovery-focus-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.recovery-focus-header {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.recovery-focus-icon {
  color: #48bb78;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.recovery-focus-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-heading);
  margin: 0;
}

.recovery-focus-message {
  color: var(--color-text-body);
  font-size: var(--font-size-base);
  line-height: 1.5;
  margin: 0;
  padding-left: calc(1.1rem + var(--space-2)); /* Align with title text */
}

/* Custom Assessment Button */

/* Avatar */
.avatar-circle { 
  width: var(--pd-avatar-size); 
  height: var(--pd-avatar-size); 
  border-radius: var(--radius-round); 
  background: var(--color-heading); 
  color: var(--color-page-bg); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 2rem; 
  font-weight: var(--font-weight-bold); 
  margin: 0 auto; 
}

/* Calendar Styles (disabled until calendar re-enablement) */
/* .week-schedule-con { 
  background: var(--color-surface); 
  border-radius: var(--radius-md); 
  width: 100%; 
  border: 1px solid var(--color-border-decorative); 
  box-shadow: var(--shadow-sm); 
}
.week-schedule-con h4 { 
  background: var(--color-heading); 
  color: var(--color-surface); 
  padding: var(--space-4); 
  margin: 0; 
  text-align: center; 
  font-size: var(--font-size-md); 
  font-weight: var(--font-weight-bold); 
} */

/* FullCalendar overrides (disabled until calendar re-enablement) */
/* .fc .fc-toolbar { 
  background: var(--color-surface); 
  padding: var(--space-3) var(--space-4); 
  border-bottom: 1px solid var(--color-border-decorative); 
}
.fc .fc-toolbar-title { 
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold); 
  color: var(--color-heading); 
  text-transform: uppercase; 
  letter-spacing: .06em; 
}
.fc .fc-button, .fc .fc-button-primary { 
  background: rgba(0,0,0,0.05) !important; 
  border: 1px solid rgba(0,0,0,0.1) !important; 
  color: var(--color-heading) !important; 
  width: var(--pd-calendar-button-size) !important; 
  height: var(--pd-calendar-button-size) !important; 
  border-radius: var(--radius-sm) !important; 
  font-size: var(--font-size-sm) !important; 
  transition: background var(--transition-base) !important; 
}
.fc .fc-button:hover { background: rgba(0,0,0,0.12) !important; }
.fc th { 
  padding: var(--space-3) 0; 
  font-size: var(--font-size-sm); 
  font-weight: var(--font-weight-bold); 
  background: var(--color-surface); 
  border: 1px solid var(--color-border-decorative); 
}
.fc td { border: 1px solid var(--color-border-decorative); background: var(--color-surface); }
.fc .fc-daygrid-day-number { padding: 4px 8px; font-size: var(--font-size-xs); }
.fc .fc-day-today .fc-daygrid-day-number { 
  background: var(--color-heading); 
  color: var(--color-surface); 
  width: 24px; height: 24px; border-radius: var(--radius-round); 
  display: flex; align-items: center; justify-content: center; 
} */

/* Event Items (disabled until calendar re-enablement) */
/* .event-item { 
  display: flex; align-items: center; gap: 4px; 
  font-size: var(--font-size-sm);
  padding: 2px 6px; 
  border: 1px solid var(--color-border-decorative); 
  border-radius: var(--radius-sm); 
  background: var(--color-surface); 
  width: var(--pd-event-item-width); 
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
}
.event-item span { color: var(--color-text-body); } */

/* Responsive Tweaks */
@media (max-width: 768px) { 
  .event-item { width: 100%; font-size: var(--font-size-xs); padding: 1px 2px; border: none; } 
  .patient-dashboard-card, .charts { padding: var(--space-4); }
}
@media (max-width: 480px) { 
  .event-item { font-size: var(--font-size-xs); } 
  .score-circle { width: var(--pd-score-diameter-sm); height: var(--pd-score-diameter-sm); }
}
@media (max-width: 360px) { 
  .event-item { font-size: var(--font-size-xs); } 
}

/* Utility */
.muted { color: var(--color-text-muted); }
.divider { border-top: 1px solid var(--color-border-decorative); margin: var(--space-4) 0; }

/* Global ApexCharts typography fallback (ensures charts inherit design tokens even if JS options miss some labels) */
.apexcharts-text, 
.apexcharts-legend-text, 
.apexcharts-tooltip, 
.apexcharts-xaxis-label, 
.apexcharts-yaxis-label { 
  font-family: var(--font-family-sans) !important; 
  font-size: var(--font-size-sm) !important; 
}

/* Ensure tooltip contrast and readability */
.apexcharts-tooltip {
  line-height: var(--line-height-normal);
}

/* Overall Hand Score State Styles (semantic, token-driven) */
.hand-score-display.score-excellent { --score-color: var(--color-success); }
.hand-score-display.score-good { --score-color: var(--color-primary); }
.hand-score-display.score-fair { --score-color: var(--color-warning); }
.hand-score-display.score-needs { --score-color: var(--color-alert); }

/* Bind score circle & value color to --score-color variable (set by state class above) */
.hand-score-display .score-circle { border-color: var(--score-color); }
.hand-score-display .score-value { color: var(--score-color); }

/* Meaning badge for qualitative band (Excellent, Good, Fair, Needs improvement) */
.meaning-badge {
  background: var(--score-color);
  color: var(--color-surface);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  padding: 2px 6px;
  border-radius: var(--radius-pill, 9999px);
  letter-spacing: .5px;
}

/* Delta badge unified (existing classes kept; ensure text contrast with tokens) */
.delta-badge-up { background: rgba(40,167,69,.12); color: var(--color-success); }
.delta-badge-down { background: rgba(220,53,69,.12); color: var(--color-alert); }
.delta-badge-stable { background: rgba(108,117,125,.12); color: var(--color-text-muted); }

/* Next action container styling */
.hand-score-display .next-action { text-align: center; }
.hand-score-display .next-action .btn-secondary-token { margin-top: var(--space-3); }

/* Smart CTA Styling - Prominent and Action-Oriented */
.smart-cta-container {
  margin: var(--space-4) 0;
}

.smart-cta-button {
  font-weight: var(--font-weight-bold);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 200px;
  justify-content: center;
}

.smart-cta-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Effort Score Section - Separated and Distinct */
.effort-score-section {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-decorative);
  background: rgba(var(--color-primary-rgb, 0, 122, 255), 0.02);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
}

.effort-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}

.effort-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-heading);
}

.effort-percentage {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}

.effort-bar {
  width: 100%;
  height: 8px;
  background: var(--color-border-decorative);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
}

.effort-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-success));
  border-radius: var(--radius-pill);
  transition: width var(--transition-base);
}

/* Humanized Message Styling - Warm and Personal */
.humanized-message {
  font-size: var(--font-size-base);
  color: var(--color-text-body);
  line-height: var(--line-height-relaxed);
  margin: var(--space-3) 0;
}

/* Assessment Chips - Cleaner Visual Design */
.assessment-chips {
  margin-top: var(--space-4);
}

.chip {
  display: inline-flex; 
  align-items: center; 
  gap: 4px; 
  padding: 4px 12px; 
  border-radius: var(--radius-pill, 9999px); 
  font-size: var(--font-size-base); 
  border: 1px solid var(--color-border-decorative);
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-base);
}

.chip-success { 
  background: rgba(40, 167, 69, .1); 
  color: var(--color-success); 
  border-color: rgba(40,167,69,.3); 
}

.chip-missing { 
  background: rgba(108, 117, 125, .08); 
  color: var(--color-text-muted); 
  border-color: rgba(108,117,125,.25); 
}

/* Score Context Improvements */
.score-context {
  margin-top: var(--space-3);
}

.score-freshness {
  margin-top: var(--space-2);
}

/* Improved meaning badge */
.meaning-badge {
  background: var(--score-color);
  color: var(--color-surface);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  padding: 4px 12px;
  border-radius: var(--radius-pill, 9999px);
  letter-spacing: .5px;
  display: inline-block;
  margin-bottom: var(--space-2);
}

/* Center primary token buttons inside dashboard cards & chart panels */
.patient-dashboard-card .btn-primary-token,
.charts .btn-primary-token {
  display: block;               /* ensure block for auto margins */
  margin-left: auto;            /* center horizontally */
  margin-right: auto;           /* center horizontally */
  margin-top: var(--space-4);   /* preserve vertical rhythm */
  margin-bottom: var(--space-4);
}

/* When full-width utility (w-100) is applied, keep vertical spacing but no need for auto margins */
.patient-dashboard-card .btn-primary-token.w-100,
.charts .btn-primary-token.w-100 {
  margin-left: 0;
  margin-right: 0;
}

/* Top Greeting Section Styles */
.greeting-wrapper {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.greeting-content {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.greeting-text {
  flex: 1;
}

.greeting-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-heading);
  margin-bottom: var(--space-2);
}

.greeting-subtitle {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  margin-bottom: 0;
  line-height: var(--line-height-normal);
}

.greeting-wrapper .avatar-circle {
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
  background: var(--color-primary);
  color: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-round);
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
}

.greeting-actions {
  align-self: flex-start;
}

@container (min-width: 600px) {
  .greeting-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .greeting-actions {
    align-self: center;
  }
}

@container (max-width: 400px) {
  .greeting-content {
    flex-direction: column;
    text-align: center;
  }
  
  .greeting-wrapper .avatar-circle {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .greeting-actions {
    align-self: center;
    width: 100%;
  }
  
  .greeting-actions .btn {
    width: 100%;
  }
}

/* Hero Section: Today's Check-up Styles */
.hero-card {
  container-type: inline-size;
  background: linear-gradient(135deg, var(--color-surface) 0%, rgba(var(--color-primary-rgb, 0, 122, 255), 0.02) 100%);
  box-shadow: var(--shadow-sm), 0 4px 20px rgba(var(--color-primary-rgb, 0, 122, 255), 0.08);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-success));
}

.hero-content {
  padding: var(--space-2) 0;
}

.hero-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-heading);
  margin-bottom: var(--space-4);
  text-align: left;
}

.hero-title .text-primary {
  color: var(--color-primary) !important;
}

.hero-assessment-info {
  background: rgba(var(--color-primary-rgb, 0, 122, 255), 0.05);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin: var(--space-4) 0;
  border-left: 4px solid var(--color-primary);
}

.hero-due-text {
  font-size: var(--font-size-base);
  color: var(--color-heading);
  margin-bottom: var(--space-2);
}

.hero-reason-text {
  font-size: var(--font-size-base);
  text-align: left;
}

.hero-cta-button {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  box-shadow: var(--elevation-button), 0 4px 12px rgba(var(--color-primary-rgb, 0, 122, 255), 0.25);
  transition: all var(--transition-base);
  text-transform: none;
  letter-spacing: 0.5px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: block;
}

.hero-cta-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--elevation-button-hover), 0 6px 16px rgba(var(--color-primary-rgb, 0, 122, 255), 0.35);
}

.hero-time-estimate {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  padding: var(--space-3);
  background: rgba(var(--color-success-rgb, 40, 167, 69), 0.08);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(var(--color-success-rgb, 40, 167, 69), 0.2);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.hero-secondary-actions {
  border-top: 1px solid var(--color-border-decorative);
  padding-top: var(--space-3);
}

.hero-actions-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

.hero-secondary-actions .btn {
  font-size: var(--font-size-xs);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.hero-secondary-actions .btn:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-surface);
}

/* Assessment Hero Icon Colors */
.fa-clipboard-check,
.fa-hand-paper,
.fa-ruler-combined,
.fa-heart-pulse,
.fa-check-circle,
.fa-clock {
  color: var(--color-text-body);
}

/* Custom Badge Style */
.badge-custom {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  color: var(--color-primary);
  background-color: var(--color-surface);
  border-radius: var(--radius-sm);
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border: 1px solid hsla(150, 25%, 90%, 1); /* Subtle border */
}
/* Voice Companion Styles */
.btn-voice-token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
  color: #6d28d9; /* Deep Purple text */
  background-color: var(--color-surface);
  border: 2px solid #7c3aed; /* Vivid Purple border */
  border-radius: var(--radius-pill, 9999px); /* Pill shape implies "conversation" */
  transition: all var(--transition-base);
  cursor: pointer;
}

.btn-voice-token:hover {
  background-color: rgba(124, 58, 237, 0.08); /* Subtle purple tint on hover */
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  color: #5b21b6;
}

.btn-voice-token:active {
  transform: translateY(0);
  background-color: rgba(124, 58, 237, 0.15);
}

.btn-voice-token i {
  font-size: 1.1em;
}

/* Container Queries for Hero Section */
@container (max-width: 500px) {
  .hero-title {
    font-size: var(--font-size-base);
  }
  
  .hero-cta-button {
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-sm);
  }
  
  .hero-actions-group {
    flex-direction: column;
  }
  
  .hero-secondary-actions .btn {
    width: 100%;
  }
  
  .hero-assessment-info {
    padding: var(--space-3);
  }
}

/* Skeleton Loader */
.skeleton-loader {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 200px;
}

.skeleton-loader::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.2) 20%,
    rgba(255, 255, 255, 0.5) 60%,
    rgba(255, 255, 255, 0)
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* Tabbed Interface Styles */
.dashboard-tabs .nav-tabs {
  border-bottom: 1px solid var(--color-border-decorative);
  margin-bottom: var(--space-4);
}

.dashboard-tabs .nav-link {
  color: var(--color-text-muted);
  border: none;
  border-bottom: 3px solid transparent;
  font-weight: var(--font-weight-bold);
  padding: var(--space-3) var(--space-4);
  transition: all var(--transition-base);
}

.dashboard-tabs .nav-link:hover {
  color: var(--color-primary);
  border-color: transparent;
}

.dashboard-tabs .nav-link.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  background: transparent;
}

/* Ghost Chart Overlay */
.ghost-chart-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(2px);
  z-index: 10;
  text-align: center;
  padding: var(--space-4);
}

.ghost-chart-content {
  background: var(--color-surface);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-width: 400px;
}

/* Chart Zones */
.chart-zone-label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}
}