/* ADL Tracker Styles */

.adl-dashboard {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 20px 20px;
}

/* Audio Controls */
.audio-controls {
  margin-bottom: 15px;
}

/* Narrative Summary Highlight */
.narrative-summary-highlighted {
  padding: 20px;
  background: #f9f9f9;
  border-radius: 12px;
  margin-bottom: 20px;
}

.btn-audio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #ff0056;
  color: white;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-audio:hover {
  background: #ff0056;
}

.btn-audio:active {
  transform: none;
}

.btn-audio:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Loading spinner animation */
.loading-spinner {
  animation: spin 1s linear infinite;
}

.audio-icon {
  font-size: 18px;
}

/* Removed duplicate - using global spin animation from application.css */

.adl-header {
  text-align: center;
  margin-bottom: 40px;
}

.adl-subtitle {
  font-size: 14px;
  font-weight: 500;
  color: #ff0056;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.adl-header h1 {
  font-size: 48px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0 0 20px 0;
}

/* Removed duplicate - using global spin animation from application.css */

.current-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 20px 0 10px 0;
}

.score-value {
  font-size: 36px;
  font-weight: 700;
}

/* ADL Question Page Styles */
.assessment-question .score-value {
  font-size: 20px;
  font-weight: 700;
  color: #ff0056;
  margin-right: 5px;
}

.assessment-question .question-description {
  font-size: 16px;
  color: #6e6e73;
  text-align: center;
  margin: -20px 0 30px 0;
  line-height: 1.5;
}

/* ADL Scorecard Header Styling - Red subtitle for ADL assessments only */
.assessment-question[data-assessment-type="adl"] .assessment-subtitle,
.assessment-question[data-assessment-type="mg-adl"] .assessment-subtitle {
  color: #e74c3c;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

/* ADL Answer Options Grid - Only layout changes */
.assessment-question[data-assessment-type="adl"] .answer-options,
.assessment-question[data-assessment-type="mg-adl"] .answer-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 0 auto 60px auto;
  max-width: 600px;
}

/* MG-ADL uses single column */
.assessment-question[data-assessment-type="mg-adl"] .answer-options {
  grid-template-columns: 1fr;
}

/* ADL Score Value Styling - just colors and font */
.assessment-question[data-assessment-type="adl"] .score-value,
.assessment-question[data-assessment-type="mg-adl"] .score-value {
  font-size: 16px;
  font-weight: 700;
}

/* Removed custom score colors - using default text color */

/* Mobile responsive */
@media (max-width: 768px) {
  .assessment-question[data-assessment-type="adl"] .answer-options,
  .assessment-question[data-assessment-type="mg-adl"] .answer-options {
    grid-template-columns: 1fr;
  }
}

/* Hide Next button during ADL question flow (auto-submit on selection) */
.assessment-question[data-assessment-type="adl"] .navigation-buttons .btn-primary,
.assessment-question[data-assessment-type="mg-adl"] .navigation-buttons .btn-primary {
  display: none !important;
}

.score-label {
  font-size: 20px;
  color: #6e6e73;
}

.score-emoji {
  font-size: 32px;
}

.last-assessment {
  color: #6e6e73;
  font-size: 16px;
  margin: 0;
}
/* Admin Dashboard - Clean Bootstrap Enhancement */

/* Toast Notifications */
.toast-notification {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 300px;
  max-width: 400px;
  padding: 12px 16px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 0.9rem;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

.toast-notification.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-notification.hide {
  transform: translateX(400px);
  opacity: 0;
}

.toast-notification.success {
  background-color: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}

.toast-notification.error {
  background-color: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

.toast-notification.info {
  background-color: #d1ecf1;
  color: #0c5460;
  border-left: 4px solid #17a2b8;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.toast-content i {
  font-size: 1.2rem;
}

.toast-close {
  background: none;
  border: none;
  padding: 0;
  margin-left: 10px;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  font-size: 1.2rem;
  line-height: 1;
}

.toast-close:hover {
  opacity: 1;
}

/* Match main dashboard layout */
.dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: #f5f5f7;
  min-height: 100vh;
}

/* ==========================================================================
   Dashboard Header - Match main dashboard
   ========================================================================== */

/* Dashboard Header */
.dashboard-header {
  background: white;
  border: 1px solid #e8e8ed;
  border-radius: 18px;
  padding: 30px;
  margin-bottom: 30px;
}

.dashboard-header .header-content h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  color: #1d1d1f;
}

.dashboard-header .welcome-message {
  font-size: 1.1rem;
  margin: 0 0 25px 0;
  color: #6e6e73;
}

/* ==========================================================================
   Dashboard Stats - Exact match with main dashboard
   ========================================================================== */

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.stat-item {
  text-align: center;
  padding: 15px;
  background: #f5f5f7;
  border-radius: 12px;
  border: 1px solid #e8e8ed;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1d1d1f;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: #6e6e73;
  margin-top: 5px;
}

/* ==========================================================================
   Dashboard Controls - Exact match with main dashboard
   ========================================================================== */

/* Dashboard Controls */
.dashboard-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px;
  background: white;
  border-radius: 18px;
  border: 1px solid #e8e8ed;
}

.filters-form {
  display: flex;
  align-items: center;
  gap: 15px;
}

.filter-group .form-select {
  min-width: 200px;
  padding: 11px 15px;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  background: white;
  font-size: 17px;
  color: #1d1d1f;
}

.view-controls {
  display: flex;
  gap: 10px;
}

.view-toggle {
  padding: 8px 16px;
  text-decoration: none;
  background: #f5f5f7;
  color: #1d1d1f;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}

.view-toggle:hover {
  background: #e8e8ed;
  color: #1d1d1f;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.view-toggle.active {
  background: #ff0056;
  color: white !important;
  border-color: #ff0056;
}

.view-toggle.active:hover {
  background: #ff0056;
  color: white !important;
}

/* ==========================================================================
   Dashboard Chart - Match dashboard styling
   ========================================================================== */

.dashboard-chart {
  background: white;
  border: 1px solid #e8e8ed;
  border-radius: 18px;
  padding: 30px;
  margin-bottom: 30px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.dashboard-chart h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: #1d1d1f;
}

.chart-filters {
  display: flex;
  gap: 10px;
  align-items: center;
}

.chart-filters .form-select {
  min-width: 140px;
  padding: 6px 12px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  background: white;
  font-size: 14px;
  color: #1d1d1f;
  transition: all 0.2s ease;
}

.chart-filters .form-select:focus {
  border-color: #ff0056;
  box-shadow: 0 0 0 3px rgba(255, 0, 86, 0.1);
  outline: none;
}

.chart-container {
  height: 400px;
  position: relative;
}

/* ==========================================================================
   Dashboard Users - Match dashboard styling
   ========================================================================== */

.dashboard-users {
  background: white;
  border: 1px solid #e8e8ed;
  border-radius: 18px;
  padding: 30px;
  margin-bottom: 30px;
}

#users-content {
  width: 100%;
}

#users-content .table-responsive {
  width: 100%;
  margin: 0;
}

#users-content .table {
  width: 100%;
  margin-bottom: 0;
}

.users-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.users-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: #1d1d1f;
}

.search-form {
  flex-shrink: 0;
}

.search-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-input {
  min-width: 250px;
  padding: 8px 12px;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  background: white;
  font-size: 14px;
  color: #1d1d1f;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: #ff0056;
  box-shadow: 0 0 0 3px rgba(255, 0, 86, 0.1);
  outline: none;
}


.clear-search-btn {
  padding: 8px 12px;
  background: #f5f5f7;
  color: #1d1d1f;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.clear-search-btn:hover {
  background: #e8e8ed;
  color: #1d1d1f;
  text-decoration: none;
}

/* ==========================================================================
   Sortable Headers Styling
   ========================================================================== */

.sortable-header {
  cursor: pointer;
  user-select: none;
  position: relative;
}

.sortable-header:hover {
  background-color: #f8f9fa !important;
}

.sortable-header a,
.sortable-header button {
  padding: 12px 8px;
  display: flex !important;
  align-items: center;
  gap: 6px;
  width: 100%;
  transition: all 0.2s ease;
  background: none !important;
  border: none !important;
  text-decoration: none !important;
  color: inherit !important;
  font-size: inherit !important;
  font-family: inherit !important;
  text-align: left !important;
}

.sortable-header a:hover,
.sortable-header button:hover {
  color: #ff0056 !important;
  text-decoration: none !important;
  background: none !important;
}

.sortable-header button:focus {
  outline: 2px solid #ff0056;
  outline-offset: 2px;
  color: #ff0056 !important;
  background: none !important;
}

.sortable-header button:active {
  background: none !important;
  border: none !important;
  color: #ff0056 !important;
}

.sort-icon {
  font-size: 12px;
  color: #ff0056;
  transition: all 0.2s ease;
}

.sort-icon-inactive {
  font-size: 10px;
  color: #6e6e73;
  opacity: 0.5;
  transition: all 0.2s ease;
}

.sortable-header:hover .sort-icon-inactive {
  opacity: 0.8;
  color: #ff0056;
}

/* ==========================================================================
   User Name and Admin Badge Styling
   ========================================================================== */

.user-name-container {
  position: relative;
  display: inline-block;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  border-radius: 50%;
  color: white;
  font-size: 9px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
  position: absolute;
  left: -26px;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.2s ease;
  z-index: 1;
}

.admin-badge:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 8px rgba(255, 107, 53, 0.4);
}

.admin-badge i {
  font-size: 11px;
}

/* Admin badge for navigation items */
.admin-badge-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  border-radius: 50%;
  color: white;
  font-size: 8px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(255, 107, 53, 0.3);
  transition: all 0.2s ease;
  vertical-align: super;
  position: relative;
  top: -2px;
}

.admin-badge-small:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 6px rgba(255, 107, 53, 0.4);
}

.admin-badge-small i {
  font-size: 9px;
}

/* ==========================================================================
   Pagination - Match main dashboard styling
   ========================================================================== */

.pagination-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding: 20px;
  background: white;
  border-radius: 18px;
  border: 1px solid #e8e8ed;
}

.pagination-info {
  color: #6e6e73;
  font-size: 0.9rem;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.pagination-btn {
  padding: 8px 16px;
  background: #f5f5f7;
  color: #1d1d1f;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pagination-btn:hover {
  background: #e8e8ed;
  color: #1d1d1f;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.pagination-pages {
  display: flex;
  gap: 5px;
}

.pagination-number {
  padding: 8px 12px;
  background: #f5f5f7;
  color: #1d1d1f;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  min-width: 40px;
  text-align: center;
}

.pagination-number:hover {
  background-color: #007bff;
  color: white !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.pagination-number.active {
  background: #ff0056;
  color: white !important;
  border-color: #ff0056;
}



/* ==========================================================================
   Responsive Design - Match main dashboard
   ========================================================================== */

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .dashboard {
    padding: 15px;
  }
  
  .dashboard-header {
    padding: 30px 20px;
  }
  
  .dashboard-header h1 {
    font-size: 2rem;
  }
  
  .dashboard-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  
  .dashboard-stats .stat-item {
    flex: 0 0 calc(50% - 7.5px);
    max-width: 150px;
  }
  
  .dashboard-controls {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .filters-form {
    justify-content: center;
  }
  
  .view-controls {
    justify-content: center;
  }
  
  .chart-header {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .chart-filters {
    justify-content: center;
  }
  
  .chart-filters .form-select {
    min-width: auto;
    flex: 1;
  }
  
  .users-header {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .search-input-group {
    flex-direction: column;
    gap: 10px;
  }
  
  .search-input {
    min-width: auto;
    width: 100%;
  }
  
  .pagination-wrapper {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .pagination-controls {
    flex-wrap: wrap;
    justify-content: center;
  }
}
/* Loading states for AJAX pagination */
.pagination-loading {
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.pagination-btn:hover {
  background-color: #f8f9fa;
  color: #007bff;
}


/* Smooth loading transition */
#users-content.loading {
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

/* HCP Dashboard Specific Styles */
.hcp-dashboard .stat-item.urgent .stat-number {
  color: #dc3545;
}

.hcp-dashboard .stat-item.urgent .stat-label {
  color: #dc3545;
}

/* HCP Dashboard Cards and Sections */
.hcp-dashboard .priority-alerts,
.hcp-dashboard .kpi-section,
.hcp-dashboard .action-section,
.hcp-dashboard .conditions-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Use admin dashboard button styles for HCP */
.hcp-dashboard .btn {
  font-weight: 500;
  border-radius: 8px;
  padding: 8px 16px;
  transition: all 0.2s ease;
}

.hcp-dashboard .btn-urgent {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  border: none;
}

.hcp-dashboard .btn-urgent:hover {
  background: linear-gradient(135deg, #c82333, #bd2130);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.hcp-dashboard .btn-primary {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  border: none;
}

.hcp-dashboard .btn-primary:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* HCP Dashboard Expertise Badge */
.hcp-dashboard .dashboard-header {
  position: relative;
}

.hcp-dashboard .expertise-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white !important;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}

.hcp-dashboard .expertise-badge:hover {
  color: white !important;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.hcp-dashboard .expertise-badge i {
  font-size: 1rem;
}

/* Different colors for different expertise levels */
.hcp-dashboard .expertise-badge[data-level="Beginner"] {
  background: linear-gradient(135deg, #6c757d, #5a6268);
  box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.hcp-dashboard .expertise-badge[data-level="Developing"] {
  background: linear-gradient(135deg, #17a2b8, #138496);
  box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
}

.hcp-dashboard .expertise-badge[data-level="Experienced"] {
  background: linear-gradient(135deg, #007bff, #0056b3);
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.hcp-dashboard .expertise-badge[data-level="Expert"] {
  background: linear-gradient(135deg, #6f42c1, #5a32a3);
  box-shadow: 0 2px 8px rgba(111, 66, 193, 0.3);
}

.hcp-dashboard .expertise-badge[data-level="Master"] {
  background: linear-gradient(135deg, #fd7e14, #e8590c);
  box-shadow: 0 2px 8px rgba(253, 126, 20, 0.3);
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .hcp-dashboard .expertise-badge {
    position: static;
    margin-top: 1rem;
    align-self: flex-start;
  }
}

/* HCP Dashboard Section Header with Badge */
.hcp-dashboard .section-header-with-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.hcp-dashboard .section-header-with-badge h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1d1d1f;
}

/* Progress Badge Styling */
.hcp-dashboard .progress-badge {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white !important;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(40, 167, 69, 0.25);
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}

.hcp-dashboard .progress-badge:hover {
  color: white !important;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(40, 167, 69, 0.35);
}

.hcp-dashboard .progress-badge i {
  font-size: 0.875rem;
}

.hcp-dashboard .progress-text {
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  display: inline-block;
  color: white !important;
}

/* Color variations for different NEXT levels */
.hcp-dashboard .progress-badge[data-next-level="Developing"] {
  background: linear-gradient(135deg, #17a2b8, #138496);
  box-shadow: 0 2px 6px rgba(23, 162, 184, 0.25);
}

.hcp-dashboard .progress-badge[data-next-level="Experienced"] {
  background: linear-gradient(135deg, #007bff, #0056b3);
  box-shadow: 0 2px 6px rgba(0, 123, 255, 0.25);
}

.hcp-dashboard .progress-badge[data-next-level="Expert"] {
  background: linear-gradient(135deg, #6f42c1, #5a32a3);
  box-shadow: 0 2px 6px rgba(111, 66, 193, 0.25);
}

.hcp-dashboard .progress-badge[data-next-level="Master"] {
  background: linear-gradient(135deg, #fd7e14, #e8590c);
  box-shadow: 0 2px 6px rgba(253, 126, 20, 0.25);
}

/* Master Level Achieved (no next level) */
.hcp-dashboard .progress-badge.master-achieved {
  background: linear-gradient(135deg, #28a745, #20c997) !important;
  box-shadow: 0 2px 6px rgba(40, 167, 69, 0.25) !important;
}

/* Level Progression Section */
.hcp-dashboard .level-progression-section {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e9ecef;
}

.hcp-dashboard .level-progression {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.hcp-dashboard .level-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  width: 100%;
  min-height: 140px;
  box-sizing: border-box;
  z-index: 1;
}

.hcp-dashboard .level-item.current {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(32, 201, 151, 0.1));
  border-color: #28a745;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.hcp-dashboard .level-item.achieved {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.05), rgba(32, 201, 151, 0.05));
  border-color: #d4edda;
}

.hcp-dashboard .level-item.next {
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.08), rgba(23, 162, 184, 0.08));
  border-color: #007bff;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.hcp-dashboard .level-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.hcp-dashboard .level-content {
  flex: 1;
  min-width: 0;
}

.hcp-dashboard .level-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hcp-dashboard .level-header h4 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #343a40;
}

.hcp-dashboard .status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hcp-dashboard .status-badge.current {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

.hcp-dashboard .status-badge.achieved {
  background: linear-gradient(135deg, #6c757d, #5a6268);
  color: white;
}

.hcp-dashboard .status-badge.next {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

.hcp-dashboard .level-description {
  color: #6c757d;
  font-size: 0.9rem;
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
}

.hcp-dashboard .level-requirements {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.hcp-dashboard .requirement {
  font-size: 0.875rem;
  font-weight: 500;
  color: #495057;
}

.hcp-dashboard .progress-info {
  font-size: 0.8rem;
  color: #007bff;
  font-weight: 500;
}

.hcp-dashboard .level-progress-bar {
  width: 100%;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.hcp-dashboard .progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease-out;
  position: relative;
}

.hcp-dashboard .progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.hcp-dashboard .level-connector {
  position: absolute;
  left: 25px;
  top: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 0;
  width: 80px;
  height: 2.5rem;
  justify-content: space-between;
}

.hcp-dashboard .connector-line {
  width: 4px;
  height: 0.75rem;
  background: linear-gradient(180deg, #dee2e6, #adb5bd);
  border-radius: 3px;
  position: relative;
  transition: all 0.5s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.hcp-dashboard .connector-line-bottom {
  width: 4px;
  height: 0.75rem;
  background: linear-gradient(180deg, #adb5bd, #dee2e6);
  border-radius: 3px;
  position: relative;
  transition: all 0.5s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

/* Removed pseudo-elements to create continuous connection */

.hcp-dashboard .level-connector.completed .connector-line {
  background: linear-gradient(180deg, #28a745, #20c997);
  box-shadow: 0 3px 8px rgba(40, 167, 69, 0.3);
  animation: pulseConnector 2s infinite ease-in-out;
}

.hcp-dashboard .level-connector.completed .connector-line-bottom {
  background: linear-gradient(180deg, #20c997, #28a745);
  box-shadow: 0 3px 8px rgba(40, 167, 69, 0.3);
  animation: pulseConnector 2s infinite ease-in-out;
}

/* Removed completed pseudo-element styles for continuous connection */

.hcp-dashboard .connector-arrow {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin-top: 0;
  margin-bottom: 0;
  transition: all 0.4s ease;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  z-index: 2;
}

.hcp-dashboard .connector-arrow::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  animation: arrowShimmer 3s infinite;
}

.hcp-dashboard .level-connector.completed .connector-arrow {
  background: linear-gradient(135deg, #28a745, #20c997);
  box-shadow: 0 6px 18px rgba(40, 167, 69, 0.5);
  transform: scale(1.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.hcp-dashboard .connector-arrow:hover {
  transform: scale(1.25) translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 123, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.4);
}

.hcp-dashboard .level-connector.completed .connector-arrow:hover {
  transform: scale(1.3) translateY(-2px);
  box-shadow: 0 10px 30px rgba(40, 167, 69, 0.6);
  border-color: rgba(255, 255, 255, 0.5);
}

@keyframes pulseConnector {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.02); }
}

@keyframes arrowShimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  50% { transform: translateX(0%) translateY(0%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Hover effects */
.hcp-dashboard .level-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.hcp-dashboard .level-item.current:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hcp-dashboard .section-header-with-badge {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
  
  .hcp-dashboard .progress-badge {
    align-self: flex-end;
  }
  
  .hcp-dashboard .level-progression-section {
    padding: 1rem;
  }
  
  .hcp-dashboard .level-item {
    padding: 1rem;
    gap: 0.75rem;
  }
  
  .hcp-dashboard .level-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .hcp-dashboard .level-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .hcp-dashboard .level-header h4 {
    font-size: 1rem;
  }
  
  .hcp-dashboard .level-requirements {
    font-size: 0.8rem;
  }
  
  .hcp-dashboard .level-progression {
    gap: 2.5rem;
  }
  
  .hcp-dashboard .level-connector {
    left: 20px;
    top: 100%;
    height: 2rem;
    width: 60px;
  }
  
  .hcp-dashboard .connector-line {
    height: 0.6rem;
    width: 3px;
  }
  
  .hcp-dashboard .connector-line-bottom {
    height: 0.6rem;
    width: 3px;
  }
  
  /* Removed responsive pseudo-element styles for continuous connection */
  
  .hcp-dashboard .connector-arrow {
    width: 26px;
    height: 26px;
    font-size: 0.7rem;
    margin-top: 0;
    margin-bottom: 0;
  }
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}
/* Assessment Styles - Cache Bust v3 - No content jump */

/* Banner Styles */
.banner-container {
  background-color: oklch(98.4% .003 247.858);
  text-align: center;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 0;

  /* Break out of parent container to go full width */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;

  /* Reserve space to prevent content jump */
  min-height: 90px;

  /* Prevent content from being cut off */
  overflow: visible;
}

/* Mobile banners are smaller */
@media (max-width: 768px) {
  .banner-container {
    min-height: 70px;
  }
}

/* Ensure banner content doesn't get clipped */
.banner-container ins,
.banner-container img {
  max-width: 100%;
  height: auto;
}

/* DCM ad iframes need explicit dimensions - don't set height: auto */
.banner-container iframe {
  max-width: 100%;
}

/* Specific handling for DCM ads */
.banner-container ins.dcmads {
  display: inline-block;
  overflow: visible;
}

/* Mobile banner specific fixes */
@media (max-width: 768px) {
  .banner-container {
    padding: 0.5rem;
  }

  /* Ensure mobile banners (320x50) display properly */
  .banner-container ins.dcmads[style*="320px"] {
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
  }
}

/* Show banners section immediately - space is reserved by banner-container */
#banners-section {
  overflow: visible;
  padding-top: 0.5rem;
}

.results-banner-section {
  margin: 10px 0;
}

.advertisement-label {
  font-size: 8px;
  color: oklch(70.4% .04 256.788);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* CSS-based device targeting fallback */
@media (max-width: 768px) {
  .banner-desktop {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .banner-mobile {
    display: none !important;
  }
}
body {
  background-color: #f5f5f7;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
}

/* Navigation */
.top-navigation {
  background: white;
  border-bottom: 1px solid #e8e8ed;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand .brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.nav-brand .brand-link:hover {
  opacity: 0.8;
}

.nav-logo {
  height: 32px;
  width: auto;
}

.brand-text {
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: oklch(0.208 0.042 265.755);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #1d1d1f;
}

.nav-links .btn-small {
  padding: 8px 20px;
  font-size: 14px;
}

.nav-links .btn-primary {
  color: white !important;
}

.nav-links .btn-primary:hover {
  color: white !important;
}

/* Dropdown Styles */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: oklch(0.208 0.042 265.755);
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s ease;
}

.nav-dropdown-toggle:hover {
  color: #1d1d1f;
}

.nav-dropdown-toggle svg {
  transition: transform 0.3s ease;
}

.nav-dropdown.active .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  min-width: 200px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.nav-dropdown.active .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 20px;
  color: #1d1d1f;
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.dropdown-item:first-child {
  border-radius: 12px 12px 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 12px 12px;
}

.dropdown-item:hover {
  background-color: #f5f5f7;
  color: #ff0056;
}

.dropdown-divider {
  margin: 0;
  border: none;
  border-top: 1px solid #e5e5e7;
}

.main-content {
  min-height: calc(100vh - 70px);
}

.main-content a:not(.btn) {
  color: #ff0056;
  transition: color 0.3s ease;
}

.main-content a:not(.btn):hover {
  color: oklch(0.58 0.246 16.439);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: #1d1d1f;
  border-radius: 3px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.mobile-menu-toggle.active .hamburger-line:first-child {
  transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.mobile-menu-toggle.active .hamburger-line:third-child {
  transform: rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-container {
    padding: 15px;
    position: relative;
  }
  
  .nav-logo {
    height: 28px;
  }
  
  .brand-text {
    font-size: 18px;
  }
  
  /* Show mobile menu toggle on mobile */
  .mobile-menu-toggle {
    display: flex;
  }
  
  /* Hide desktop nav links on mobile by default */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 80px 20px 20px;
    gap: 30px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 9;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  }
  
  /* Show mobile menu when open */
  .mobile-menu-open .nav-links {
    transform: translateX(0);
  }
  
  /* Style mobile nav links */
  .nav-links a {
    font-size: 18px;
    color: #1d1d1f;
    padding: 15px 30px;
    text-align: center;
    width: 100%;
    max-width: 300px;
    border-radius: 12px;
    transition: background-color 0.3s ease;
    position: relative;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
  }
  
  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    background-color: #e8e8ed;
  }
  
  .nav-links a:last-child::after,
  .nav-dropdown-menu a::after {
    display: none;
  }
  
  .nav-links a:hover {
    background-color: #f5f5f7;
  }
  
  /* Mobile dropdown adjustments */
  .nav-dropdown {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
  }
  
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 12px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    box-sizing: border-box;
    font-size: 18px;
    color: #1d1d1f;
    background: transparent;
    border: none;
    text-align: center;
  }
  
  .nav-dropdown-toggle:hover {
    background-color: #f5f5f7;
  }
  
  .nav-dropdown-menu {
    position: static;
    margin-top: 10px;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: #f8f9fa;
    border-radius: 12px;
    width: 100%;
    margin-bottom: 20px;
    margin-left: 0;
    margin-right: 0;
    padding: 10px 0;
  }
  
  .nav-dropdown-menu .dropdown-item {
    font-size: 16px;
    color: #6e6e73;
    padding: 12px 30px;
    text-align: center;
    width: 100%;
    display: block;
    margin: 0;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    text-decoration: none;
  }
  
  .nav-dropdown-menu .dropdown-item:hover {
    background-color: #e8e9eb;
    color: #1d1d1f;
  }
  
  .nav-dropdown:not(.active) .nav-dropdown-menu {
    display: none;
  }
  
  /* Remove divider line before sign out */
  .nav-dropdown-menu .dropdown-divider {
    display: none;
  }
  
  /* Special styling for sign-up button in mobile nav */
  .nav-links .btn-primary {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
    box-sizing: border-box;
    text-align: center;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 12px;
  }
  
  /* Ensure all nav items have consistent spacing */
  .nav-links > * {
    margin-bottom: 0;
  }
  
  /* Add consistent spacing between nav items */
  .nav-links > .nav-dropdown,
  .nav-links > a {
    margin-bottom: 10px;
  }
  
  .nav-links > *:last-child {
    margin-bottom: 0;
  }
  
  /* Prevent body scroll when mobile menu is open */
  body.mobile-menu-open {
    overflow: hidden;
  }
  
  /* Mobile button styling */
  .nav-links .btn-primary {
    background: #ff0056;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 24px;
    font-weight: 500;
    width: 100%;
    max-width: 300px;
  }
  
  .nav-links .btn-primary:hover {
    background: oklch(0.58 0.246 16.439);
    color: white;
  }
  
  /* Mobile language switcher */
  .language-switcher {
    margin-left: 0;
    margin-top: 10px;
    order: 999;
  }
  
  .language-switcher .nav-dropdown-toggle {
    justify-content: center;
  }
  
  .language-switcher .flag-icon {
    width: 24px;
    height: 18px;
  }
}

.assessment-start {
  max-width: 1000px;
  margin: 60px auto;
  padding: 20px;
}

.assessment-start .assessment-header {
  text-align: center;
  margin-bottom: 50px;
}

.assessment-start .assessment-subtitle {
  font-size: 14px;
  font-weight: 500;
  color: #ff0056;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
}

.assessment-start h1 {
  font-size: 48px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0 0 10px 0;
  line-height: 1.1;
  text-align: center;
}

.medical-review {
  font-size: 14px;
  color: #6e6e73;
  text-align: center;
  margin-bottom: 20px;
  font-style: italic;
}

.start-button-container {
  text-align: center;
  margin-top: 40px;
}

/* Match dashboard button styling on assessment start buttons */
.assessment-start .btn-primary.btn-large {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px !important;
  background: #ff0056;
  color: white !important;
  border: none;
  border-radius: 24px;
  font-size: 16px !important;
  font-weight: 500;
  cursor: pointer;
  transition: none;
  text-decoration: none;
  position: relative;
  overflow: visible;
  width: auto;
}

.assessment-start .btn-primary.btn-large:hover {
  background: oklch(0.58 0.246 16.439);
  color: white !important;
  text-decoration: none;
  transform: none !important;
  box-shadow: none !important;
}

.assessment-start .btn-primary.btn-large:hover::before {
  display: none;
}

.intro-section {
  background: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.intro-section h2 {
  font-size: 24px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 20px;
}

.intro-section ul {
  list-style-type: none;
  padding-left: 0;
}

.intro-section li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
}

.intro-section li:before {
  content: '';
  position: absolute;
  left: 0;
  color: #27ae60;
  font-weight: bold;
  font-family: 'bootstrap-icons';
  content: '\F633'; /* bi-check-lg */
  font-size: 16px;
}

.disclaimer {
  background: #f8f9fa;
  padding: 15px;
  border: 1px solid #e8e8ed;
  border-radius: 4px;
  margin-top: 0;
  color: #1d1d1f;
}

/* Question View Styles */
.assessment-question {
  max-width: 1000px;
  margin: 60px auto;
  padding: 20px;
}

/* Reduce top margin when banner is present */
#banners-section:has(.banner-container) ~ .assessment-question {
  margin-top: 20px;
}

/* Question Transition Animations */
#assessment-content {
  background: white;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #e8e8ed;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.question-transition-in {
  animation: slideInFromBottom 0.4s ease-out;
}

@keyframes slideInFromBottom {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.question-transition-out {
  animation: slideOutToTop 0.3s ease-in;
}

@keyframes slideOutToTop {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-30px);
  }
}

/* Loading state for form submission */
.form-submitting {
  opacity: 0.8;
  pointer-events: none;
}

.form-submitting .answer-option {
  transform: scale(0.98);
  transition: transform 0.2s ease;
}

.form-submitting .answer-option.selected {
  animation: selectedPulse 0.6s ease-in-out;
}

@keyframes selectedPulse {
  0%, 100% {
    transform: scale(0.98);
  }
  50% {
    transform: scale(1.02);
  }
}

/* Add a subtle loading indicator on the selected option */
.form-submitting .answer-option.selected::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top-color: #ff0056;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Using global spin animation from application.css */

.assessment-header {
  text-align: center;
  margin-bottom: 0;
}

.assessment-subtitle {
  color: #ff0056;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
}

.assessment-question h1 {
  font-size: 48px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0 0 20px 0;
  line-height: 1.1;
}

@media (max-width: 768px) {
  .assessment-question h1 {
    font-size: 30px;
    margin: 0 0 30px 0;
  }
}

.progress-bar {
  background: #e8e8ed;
  height: 4px;
  position: relative;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 2px;
}

.progress-fill {
  background: #0071e3;
  height: 100%;
  transition: width 0.8s ease-out;
  border-radius: 2px;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255,255,255,0.3) 50%, 
    transparent 100%);
  animation: progressShimmer 2s infinite;
  border-radius: 2px;
}

@keyframes progressShimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Removed complex animation classes - now using simple CSS transition like treatment page */

.progress-text {
  display: none;
}

.assessment-question h2 {
  font-size: 28px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 30px;
  line-height: 1.3;
  text-align: center;
}

@media (max-width: 768px) {
  .assessment-question h2 {
    font-size: 20px;
    margin-bottom: 30px;
    padding: 0 20px;
  }
}

.answer-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 60px;
  align-items: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.answer-option {
  background: white;
  padding: 20px 30px;
  border-radius: 40px;
  border: 2px solid #d2d2d7;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

@media (max-width: 768px) {
  .answer-option {
    padding: 16px 18px;
    gap: 12px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Fix treatment content answer options on mobile */
  .treatment-content {
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
  }
  
  .treatment-content .answer-options {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    padding: 0 !important;
  }
  
  .treatment-content .answer-option {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    box-sizing: border-box !important;
    margin-bottom: 10px !important;
  }
  
  .treatment-content .answer-option .option-label {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    display: block !important;
    width: 100% !important;
  }
}

@media (hover: hover) {
  .answer-option:hover {
    border-color: #0071e3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  }
}

.answer-option.selected {
  border-color: #0071e3;
  background: white;
  box-shadow: none;
}

.answer-option.selected .option-label {
  color: #0071e3;
  font-weight: 400;
}

.answer-option::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid #d2d2d7;
  border-radius: 50%;
  display: inline-block;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.answer-option.selected::before {
  border-color: #0071e3;
  background: white;
  content: '\F633'; /* Bootstrap Icons checkmark */
  font-family: 'bootstrap-icons';
  color: #0071e3;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: none;
}

.answer-option.selected::after {
  display: none;
}

.answer-option input[type="radio"],
.answer-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.option-label {
  cursor: pointer;
  display: block;
  font-size: 17px;
  color: #1d1d1f;
  font-weight: 400;
  flex: 1;
}

@media (max-width: 768px) {
  .option-label {
    font-size: 16px;
  }
}

/* ADL-specific answer option styling */
.assessment-question[data-assessment-type="adl"] .answer-options,
.assessment-question[data-assessment-type="mg-adl"] .answer-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 670px;
  margin: 0 auto 60px auto;
  align-items: start;
}

.assessment-question[data-assessment-type="adl"] .answer-option,
.assessment-question[data-assessment-type="mg-adl"] .answer-option {
  width: 100%;
  max-width: none;
}

@media (max-width: 768px) {
  .assessment-question[data-assessment-type="adl"] .answer-options,
  .assessment-question[data-assessment-type="mg-adl"] .answer-options {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

/* Answer option score values (for ADL assessments) */
.answer-option .score-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  color: #6b7280;
  font-weight: 500;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  margin-right: 10px;
  min-width: 28px;
  height: 28px;
  text-align: center;
  box-shadow: none;
  position: relative;
  overflow: visible;
  transition: all 0.15s ease;
  border: 1px solid #f0f0f0;
}

.answer-option .score-value::before {
  display: none;
}

.answer-option.selected .score-value {
  background: #f5f5f5;
  color: #4b5563;
  border-color: #e5e5e5;
}

.answer-option:hover .score-value {
  background: #f7f7f7;
}

.navigation-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
}

.navigation-buttons .btn-secondary {
  background: transparent;
  color: #6e6e73;
  border: none;
  font-size: 17px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: none;
  text-decoration: none;
}

.navigation-buttons .btn-secondary:hover {
  color: #1d1d1f;
  text-decoration: none;
}

.navigation-buttons .btn-secondary::before {
  display: none;
}


/* Auto-submit form - Next button hidden during question flow */
.assessment-question[data-controller="assessment"] .navigation-buttons .btn-primary {
  display: none;
}

/* Results Styles */
.assessment-results {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
}

.assessment-results h1 {
  text-align: center;
}


/* Assessment Date */
.assessment-date {
  text-align: center;
  font-size: 18px;
  color: #6e6e73;
  margin-bottom: 40px;
  font-weight: 500;
}

/* Main Score Display with Trend */
.main-score-display-with-trend {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 0;
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.score-display-card {
  flex: 0 0 auto;
  background: none;
  border: none;
  box-shadow: none;
}

.score-value-large {
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  min-width: 200px;
  background: transparent;
}

.score-number-large {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
}

.score-label-large {
  font-size: 18px;
  font-weight: 600;
  text-transform: capitalize;
}

/* Trend Display */
.trend-display {
  flex: 1;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
  min-width: 0;
  overflow: hidden;
}

.trend-display h3 {
  font-size: 24px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 20px;
  line-height: 1.2;
  word-wrap: break-word;
}

.trend-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.trend-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 18px;
}

.trend-indicator.improving {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.trend-indicator.declining {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.trend-indicator i {
  font-size: 16px;
  font-weight: bold;
}

.previous-score {
  color: #6e6e73;
  font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-score-display-with-trend {
    flex-direction: column;
    gap: 0;
    padding: 15px;
  }
  
  .score-value-large {
    min-width: auto;
    width: 100%;
  }
  
  .trend-display {
    text-align: center;
    margin: 0 auto;
  }
  
  .trend-display h3 {
    font-size: 20px;
    margin-bottom: 15px;
  }
}

/* For smaller screens and longer text */
@media (max-width: 480px) {
  .trend-display h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  /* Extra compact chart controls for very small screens */
  .chart-control-btn {
    padding: 6px 8px;
    font-size: 10px;
  }
  
  .chart-export-btn {
    padding: 6px 8px;
    font-size: 10px;
  }
  
  .chart-controls-left {
    gap: 2px;
  }
}

.ad-container {
  text-align: center;
  margin: 0 auto 40px auto;
  overflow: hidden;
  min-height: 90px;
}

.ad-container .dcmads {
  max-width: 100%;
  height: auto;
}

.top-result {
  margin-bottom: 50px;
}

.condition-card {
  background: white;
  padding: 30px;
  border-radius: 16px;
  border: 1px solid #f0f0f0;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.condition-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.condition-card.primary {
  background: linear-gradient(135deg, #e8f4fd 0%, #f0f8ff 100%);
  border: 2px solid #d2d2d7;
  box-shadow: 0 8px 20px rgba(0, 113, 227, 0.15);
}

.condition-card.primary:hover {
  box-shadow: 0 12px 30px rgba(0, 113, 227, 0.2);
}

.condition-card h3,
.condition-card h4 {
  color: #1d1d1f;
  margin-bottom: 15px;
  font-weight: 600;
}

.likelihood-score {
  font-size: 20px;
  font-weight: 700;
  color: #ff0056;
  margin-bottom: 20px;
  padding: 8px 16px;
  background: rgba(0, 113, 227, 0.1);
  border-radius: 20px;
  display: inline-block;
}

.description {
  color: #6e6e73;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: left;
}

.explanation-section {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 113, 227, 0.2);
  padding: 20px;
  border-radius: 12px;
  margin: 20px 0;
  text-align: left;
}

.condition-card:not(.primary) .explanation-section {
  background: #f5f5f7;
  border: none;
}

.explanation-section h4,
.explanation-section h5 {
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 12px;
}

.explanation-section h5 {
  font-size: 14px;
  margin-top: 16px;
}

.supporting-factors,
.opposing-factors {
  list-style: none;
  padding: 0;
  margin: 0;
}

.supporting-factors li,
.opposing-factors li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}

.supporting-factors li::before {
  content: '';
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: bold;
  font-family: 'bootstrap-icons';
  content: '\F633'; /* bi-check-lg */
  font-size: 20px;
}

.opposing-factors li::before {
  content: '';
  position: absolute;
  left: 0;
  color: #dc3545;
  font-weight: bold;
  font-family: 'bootstrap-icons';
  content: '\F62A'; /* bi-x */
  font-size: 20px;
}

.factor-answer {
  font-weight: 500;
  color: #1d1d1f;
  font-style: italic;
}

.factor-context {
  color: #6e6e73;
  font-size: 14px;
  display: block;
  margin-top: 4px;
}

.supporting-factors.compact li,
.opposing-factors.compact li {
  padding: 6px 0;
  padding-left: 24px;
}

.supporting-factors.compact .factor-context,
.opposing-factors.compact .factor-context {
  display: none;
}

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

/* Condition Detail Styles */
.condition-detail {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
}

.condition-detail h1 {
  font-size: 36px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 30px;
  text-align: center;
}

.breadcrumb {
  color: #6e6e73;
  margin-bottom: 30px;
  font-size: 14px;
}

.breadcrumb a {
  color: #ff0056;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #0077ed;
  text-decoration: underline;
}

.condition-info {
  background: white;
  padding: 40px;
  border-radius: 16px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e8e8ed;
}

.summary-section,
.detailed-section {
  margin-bottom: 40px;
}

.summary-section:last-child,
.detailed-section:last-child {
  margin-bottom: 0;
}

.summary-section h2,
.detailed-section h2 {
  font-size: 24px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f5f5f7;
}

.summary-section .description {
  color: #1d1d1f;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 0;
}

.detailed-content {
  color: #1d1d1f;
  font-size: 16px;
  line-height: 1.8;
}

.detailed-content p {
  margin-bottom: 16px;
  color: #1d1d1f;
}

.detailed-content p:last-child {
  margin-bottom: 0;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 17px;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 24px;
  cursor: pointer;
}

.btn-primary {
  background: #ff0056;
  color: white;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  transition: none;
}

.btn-primary:hover {
  background: oklch(0.58 0.246 16.439);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary.btn-large {
  padding: 16px 32px;
  font-size: 16px;
  width: auto;
  max-width: none;
  white-space: normal;
}

/* Start new snapshot button - match no-progress-message button style exactly */
.start-new-snapshot {
  padding-top: 0 !important;
}

.start-new-snapshot .btn-large {
  border-radius: 24px;
  background: #ff0056;
  color: white;
  border: none;
  font-size: 16px;
  font-weight: 500;
  transition: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
}

.start-new-snapshot .btn-large:hover {
  background: oklch(0.58 0.246 16.439);
  color: white;
  text-decoration: none;
  transform: none;
  box-shadow: none;
}

.start-new-snapshot .btn-large:active {
  transform: none;
}

.start-new-snapshot .btn-large::before {
  display: none;
}

.btn-secondary {
  background: #f5f5f7;
  color: #1d1d1f;
  border: 1px solid #d2d2d7;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.btn-secondary:hover {
  background: #e8e8ed;
  color: #1d1d1f;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.btn-secondary:hover::before {
  left: 100%;
}

.actions {
  text-align: center;
  margin-top: 30px;
}

.actions .btn {
  margin: 0 10px;
}

/* BMI Calculator Styles */
.bmi-calculator {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
}

.bmi-header {
  text-align: center;
  margin-bottom: 60px;
}

.bmi-subtitle {
  font-size: 14px;
  font-weight: 500;
  color: #ff0056;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.bmi-header h1 {
  font-size: 48px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0 0 20px 0;
  line-height: 1.1;
}

.bmi-description {
  font-size: 18px;
  color: #6e6e73;
  line-height: 1.5;
  margin: 0;
}

.bmi-content {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.unit-selector {
  margin-bottom: 20px;
}

.unit-selector h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 20px;
  text-align: center;
}

.unit-options {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.unit-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 25px;
  border: 2px solid #dbe2e9;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.unit-option:has(input:checked) {
  border-color: oklch(.623 .214 259.815);
}

.unit-option input[type="radio"] {
  margin: 0;
}

.unit-label {
  font-weight: 500;
  color: #1d1d1f;
  margin: 0;
  user-select: none;
}

.input-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 0;
  align-items: start;
}

.input-group h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 20px;
  text-align: center;
}

.input-group > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Ensure imperial height container centers its content */
.bmi-calculator .imperial-height {
  width: 100%;
}

.form-input {
  width: 100%;
  padding: 15px 20px;
  font-size: 16px;
  border: 2px solid #d2d2d7;
  border-radius: 12px;
  transition: all 0.3s ease;
  margin-bottom: 8px;
}

/* BMI Calculator specific input styles */
.bmi-calculator .form-input {
  width: 50%;
  padding: 20px 25px;
  font-size: 30px;
  font-weight: 600;
  text-align: center;
  margin: 0 auto 8px auto;
  display: block;
  -moz-appearance: textfield; /* Firefox */
  appearance: textfield; /* Standard property */
  border-color: #dbe2e9;
  border-width: 2px;
}

/* Light grey placeholder text for BMI calculator */
.bmi-calculator .form-input::placeholder {
  color: #d2d2d7;
  opacity: 1; /* Firefox fix */
}

/* Remove spinner from Chrome, Safari, Edge */
.bmi-calculator .form-input::-webkit-outer-spin-button,
.bmi-calculator .form-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Make imperial height fields same size and centered */
.bmi-calculator .imperial-height .form-input {
  width: 100px;
  margin: 0 0 8px 0;
}

.form-input:focus {
  outline: none;
  border-color: #ff0056;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

/* BMI calculator inputs on focus - purple border, thicker, no shadow */
.bmi-calculator .form-input:focus {
  border-color: oklch(.623 .214 259.815);
  border-width: 3px;
  box-shadow: none;
  /* Adjust padding to compensate for thicker border */
  padding: 19px 24px;
}

.input-label {
  display: block;
  font-size: 14px;
  color: #6e6e73;
  text-align: center;
  margin-bottom: 15px;
}

.height-inputs {
  display: flex;
  flex-direction: row;
  gap: 15px;
  align-items: center;
  justify-content: center;
}

.imperial-height.height-inputs {
  display: flex;
  flex-direction: row;
  gap: 15px;
  align-items: center;
  justify-content: center;
}

.height-input-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}


.height-input {
  margin-bottom: 8px;
}

.hidden {
  display: none !important;
}

.form-actions {
  text-align: center;
}

/* Remove hover effects from BMI calculator button */
.bmi-calculator .btn-primary::before {
  display: none;
}

/* Remove shimmer effects from assessment results Learn More buttons */
.assessment-results .btn-primary::before,
.assessment-results .btn-secondary::before {
  display: none;
}

/* Remove box shadow from assessment results buttons on hover */
.assessment-results .btn-secondary:hover {
  box-shadow: none;
}

/* Base Card Component - Shared Styles */
.results-card {
  background: white;
  padding: 30px;
  border-radius: 16px;
  border: 1px solid #e8e8ed;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.results-card h3 {
  font-size: 24px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0 0 20px 0;
}

.results-card.centered h3 {
  text-align: center;
}

/* Single Condition Results Layout */
.single-condition-results {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Remove gap when ads are present (banners provide their own spacing) */
.single-condition-results.has-result-banners {
  gap: 0;
}

/* Results page banner spacing - minimal gap for breathing room */
.results-banner-section {
  margin: 10px 0;
}

.results-banner-section .banner-container {
  margin-bottom: 0;
}

/* Header banner at top of results page */
.results-banner-section[data-placement="header"] {
  margin: 0 0 20px 0;
}

/* Remove top margin from assessment-results when header banner exists */
.assessment-results:has(.results-banner-section[data-placement="header"]) {
  margin-top: 0;
  padding-top: 20px;
}

/* Main Score Display */
.main-score-display {
  text-align: center;
  margin: 40px 0 40px 0;
}

.score-display-card {
  border-radius: 20px;
  margin: 0 auto;
  max-width: 400px;
}

.score-display-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 100px;
  flex-wrap: wrap;
}

.score-value {
  display: inline-block;
  border-radius: 20px;
  background: white;
  text-align: center;
  padding: 30px 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
}

.score-value::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 100%);
  pointer-events: none;
}

.score-number {
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
  color: inherit;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.score-label {
  font-size: 20px;
  font-weight: 600;
  color: inherit;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

.score-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.score-detail-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-label {
  font-size: 14px;
  font-weight: 600;
  color: #6e6e73;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

/* Score Breakdown */
.score-breakdown {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 40px 40px 20px 40px;
  border-radius: 20px;
  border: 2px solid #e8e8ed;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  position: relative;
}

.score-breakdown::before {
  display: none;
}

.score-breakdown h3 {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin: -40px -40px 30px -40px;
  padding: 15px 20px;
  text-align: center;
  background: #ff0056;
  border-radius: 20px 20px 0 0;
  position: relative;
  z-index: 1;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.breakdown-label {
  font-size: 16px;
  color: #1d1d1f;
  font-weight: 500;
}

.breakdown-value {
  font-size: 16px;
  font-weight: 600;
}

/* Shared Floating Icon Styles */
.score-breakdown::before,
.score-understanding::before,
.recommended-actions::before,
.progress-tracking::before,
.treatment-info::before,
.assessment-narrative::before,
.save-results-section::before {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 10px 15px;
  border-radius: 50%;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1;
}

/* Enhanced Score Breakdown Styles */
.breakdown-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 40px;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 12px;
}

.breakdown-item.primary {
  grid-column: span 1;
}

.breakdown-item.primary .breakdown-label {
  font-weight: 700;
  font-size: 18px;
}

.breakdown-item.primary .breakdown-value {
  font-size: 20px;
  font-weight: 700;
}

/* Detailed Breakdown */
.detailed-breakdown {
  margin-top: 30px;
}

.detailed-breakdown h4 {
  font-size: 20px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0 0 25px 0;
  text-align: center;
  border-bottom: 2px solid #e8e8ed;
  padding-bottom: 10px;
}

.detailed-breakdown h5 {
  font-size: 18px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 30px 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.detailed-breakdown h5::before {
  content: '';
  width: 4px;
  height: 20px;
  background: #007bff;
  border-radius: 2px;
}

/* Functional Areas */
.functional-areas {
  margin-bottom: 35px;
}

.area-breakdown {
  margin-bottom: 20px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  border-left: 4px solid #007bff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Health article links in score breakdown */
.health-article-link {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e8e8ed;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.health-article-link i {
  color: #007bff;
  font-size: 16px;
}

.health-article-link .article-link {
  color: #007bff !important;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.health-article-link .article-link:hover {
  color: #0056b3 !important;
  text-decoration: none;
}

.health-article-link .article-link:visited {
  color: #007bff !important;
}

.area-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.area-name {
  font-weight: 600;
  font-size: 16px;
  color: #1d1d1f;
}

.area-score {
  font-weight: 600;
  font-size: 14px;
  color: #6e6e73;
  background: #f8f9fa;
  padding: 4px 12px;
  border-radius: 20px;
}

/* Progress Bars */
.progress-bar-container {
  width: 100%;
  height: 8px;
  background: #e8e8ed;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-bar-container.small {
  height: 6px;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease-out;
  position: relative;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255,255,255,0.3) 50%, 
    transparent 100%);
  animation: progressShimmer 2s infinite;
}

/* Question Breakdown */
.question-breakdown {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 12px;
  margin-top: 20px;
}

.question-item {
  background: white;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 15px;
  border-left: 4px solid transparent;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.question-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 15px;
}

.question-text {
  font-weight: 500;
  color: #1d1d1f;
  line-height: 1.4;
  flex: 1;
}

.question-score {
  font-weight: 700;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.question-score.low-impact {
  background: #d4edda;
  color: #155724;
  border-left-color: #28a745;
}

.question-score.moderate-impact {
  background: #f8f9fa;
  color: #1d1d1f;
  border-left-color: #0071e3;
}

.question-score.high-impact {
  background: #f8d7da;
  color: #721c24;
  border-left-color: #dc3545;
}

.question-item:has(.low-impact) {
  border-left-color: #28a745;
}

.question-item:has(.moderate-impact) {
  border-left-color: #0071e3;
}

.question-item:has(.high-impact) {
  border-left-color: #dc3545;
}

.question-response {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.response-text {
  font-style: italic;
  color: #6e6e73;
  font-size: 14px;
  flex: 1;
}

.response-progress {
  width: 100px;
  flex-shrink: 0;
}

/* Impact Insights */
.impact-insight {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid #e8e8ed;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  position: relative;
}

.insight-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.insight-icon {
  font-size: 20px;
}

.insight-title {
  font-weight: 700;
  font-size: 16px;
  color: #1d1d1f;
}

.insight-text {
  color: #1d1d1f;
  margin: 0;
  line-height: 1.5;
  font-size: 15px;
}

/* Severity Indicators */
.severity-indicator {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 10px;
}

.severity-indicator.high {
  background: #f8d7da;
  color: #721c24;
}

.severity-indicator.moderate {
  background: #f8f9fa;
  color: #1d1d1f;
  border: 1px solid #e8e8ed;
}

.severity-indicator.mild {
  background: #ffeaa7;
  color: #b7950b;
}

.severity-indicator.minimal {
  background: #d4edda;
  color: #155724;
}

.area-breakdown.most-impacted {
  border-left-color: #dc3545;
  background: linear-gradient(135deg, #f8d7da 0%, #ffffff 100%);
}

/* Understanding Your Score */
.score-understanding {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 40px;
  border-radius: 20px;
  border: 2px solid #e8e8ed;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  position: relative;
}

.score-understanding::before {
  display: none;
}

.score-understanding h3 {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin: -40px -40px 30px -40px;
  padding: 15px 20px;
  text-align: center;
  background: #ff0056;
  border-radius: 20px 20px 0 0;
  position: relative;
  z-index: 1;
}

.score-explanation p {
  margin-bottom: 15px;
  color: #1d1d1f;
  line-height: 1.6;
}

.score-explanation p:last-child {
  margin-bottom: 0;
}

/* Score Ranges */
.score-ranges {
  margin-top: 25px;
}

.range-item {
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 12px;
  background: #f8f9fa;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.range-item.current-range {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid var(--range-color, #ccc);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
  position: relative;
}



.range-header {
  margin-bottom: 10px;
}

.range-score {
  font-weight: 600;
  color: #1d1d1f;
  font-size: 16px;
  white-space: nowrap;
  margin-right: 15px;
}

.range-description {
  color: #6e6e73;
  margin: 0;
  line-height: 1.5;
}

/* Recommended Actions */
.recommended-actions {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 40px;
  border-radius: 20px;
  border: 2px solid #e8e8ed;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  position: relative;
}

.recommended-actions::before {
  display: none;
}

.recommended-actions h3 {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin: -40px -40px 30px -40px;
  padding: 15px 20px;
  text-align: center;
  background: #ff0056;
  border-radius: 20px 20px 0 0;
  position: relative;
  z-index: 1;
}

/* Action List with Checkmarks */
.action-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.action-list li {
  padding: 12px 0;
  padding-left: 30px;
  position: relative;
  line-height: 1.6;
  color: #1d1d1f;
}

.action-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: bold;
  font-size: 18px;
}

/* Management Tips */
.management-tips {
  background: #f8f9fa;
  padding: 25px 30px;
  border-radius: 12px;
  margin-top: 20px;
}

.management-tips h4 {
  font-size: 18px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0 0 15px 0;
}

.tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tips-list li {
  margin-bottom: 12px;
  color: #1d1d1f;
  line-height: 1.5;
}

.tips-list li:last-child {
  margin-bottom: 0;
}

/* Legacy compatibility */
.score-card {
  padding: 40px;
  border-radius: 16px;
  margin-bottom: 20px;
  text-align: center;
}

.score-display {
  margin-bottom: 25px;
}

.total-score {
  font-size: 48px;
  font-weight: 700;
  color: #1d1d1f;
}

.max-score {
  font-size: 24px;
  color: #6e6e73;
  margin-left: 5px;
}

.percentage-score {
  font-size: 18px;
  color: #6e6e73;
  margin-left: 10px;
}

.interpretation {
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
}

.interpretation h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1d1d1f;
}

.interpretation p {
  font-size: 16px;
  color: #6e6e73;
  margin: 0;
  line-height: 1.5;
}

/* Extended features */
.progress-tracking {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 40px;
  border-radius: 20px;
  border: 2px solid #e8e8ed;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  margin-top: 40px;
  margin-bottom: 20px;
  position: relative;
}

/* Remove bottom padding when chart is displayed */
.progress-tracking:has(.enhanced-chart-container) {
  padding-bottom: 0;
}

.signup-for-progress {
  text-align: center;
}

.signup-for-progress p {
  color: #6e6e73;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.progress-signup-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.no-progress-message {
  text-align: center;
  padding: 20px 0;
}

.no-progress-message p {
  color: #6e6e73;
  font-size: 18px;
  line-height: 1.6;
}

.no-progress-message .btn-large {
  border-radius: 24px;
  background: #ff0056;
  color: white;
  border: none;
  font-size: 16px;
  font-weight: 500;
  transition: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
}

.no-progress-message .btn-large:hover {
  background: oklch(0.58 0.246 16.439);
  color: white;
  text-decoration: none;
  transform: none;
  box-shadow: none;
}

.no-progress-message .btn-large:active {
  transform: none;
}

.no-progress-message .btn-large::before {
  display: none;
}

.progress-tracking::before {
  display: none;
}

.progress-tracking h3 {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin: -40px -40px 30px -40px;
  padding: 15px 20px;
  text-align: center;
  background: #ff0056;
  border-radius: 20px 20px 0 0;
  position: relative;
  z-index: 1;
}

.chart-container {
  margin: 20px 0;
  max-width: 100%;
  overflow: hidden;
}

/* Enhanced Chart Styling */
.enhanced-chart-container {
  height: 400px;
  margin: 20px 0;
  padding: 20px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e8e8ed;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chart-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px 20px;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid #e8e8ed;
}

.chart-controls-left {
  display: flex;
  gap: 8px;
}

.chart-controls-right {
  display: flex;
  gap: 10px;
}

.chart-control-btn {
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  color: #6e6e73;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chart-control-btn:hover {
  background: #f6f8fa;
  border-color: #8c959f;
  color: #1d1d1f;
}

.chart-control-btn.active {
  background: #ff0056;
  border-color: #ff0056;
  color: #ffffff;
}

.chart-export-btn {
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  color: #6e6e73;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chart-export-btn:hover {
  background: #f6f8fa;
  border-color: #8c959f;
  color: #1d1d1f;
}

.chart-export-btn i {
  font-size: 12px;
}

/* Treatment Information Styles for Results Page */
.results-treatment-info {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 40px;
  border-radius: 20px;
  border: 2px solid #e8e8ed;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  position: relative;
}

.results-treatment-info::before {
  display: none;
}

.results-treatment-info h3 {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin: -40px -40px 30px -40px;
  padding: 15px 20px;
  text-align: center;
  background: #ff0056;
  border-radius: 20px 20px 0 0;
  position: relative;
  z-index: 1;
}

.results-treatment-details {
  display: grid;
  gap: 0;
}

/* Treatment Information Styles for Treatment Page */
.treatment-info {
  max-width: 1000px;
  margin: 60px auto;
  padding: 20px;
}

/* Reduce top margin when banners are present */
#banners-section:has(.banner-container) + .treatment-info {
  margin-top: 20px;
}

.treatment-info::before {
  display: none;
}

.treatment-info h3 {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin: -40px -40px 30px -40px;
  padding: 15px 20px;
  text-align: center;
  background: #ff0056;
  border-radius: 20px 20px 0 0;
  position: relative;
  z-index: 1;
}

/* Treatment Details for Treatment Page */
.treatment-details {
  display: grid;
  gap: 20px;
  max-width: 500px;
  margin: 0 auto;
}

.treatment-details p {
  margin-bottom: 0;
  font-size: 17px;
  line-height: 1.6;
  padding: 18px 24px;
  background: white;
  border-radius: 12px;
  border-left: 4px solid #007bff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 12px;
}

.treatment-details p strong {
  color: #1d1d1f;
  font-weight: 600;
  min-width: 120px;
  display: inline-block;
}

.treatment-change,
.schedule-change {
  color: #28a745;
  font-weight: 600;
  margin-top: 0;
  background: linear-gradient(135deg, #d4edda 0%, #ffffff 100%);
  border-left-color: #28a745;
  position: relative;
}

.treatment-change::before,
.schedule-change::before {
  content: '✓';
  color: #28a745;
  font-weight: bold;
  margin-right: 8px;
  font-size: 18px;
}

.assessment-narrative {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 40px;
  border-radius: 20px;
  border: 2px solid #e8e8ed;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  position: relative;
}

/* Add extra top margin for non-logged-in users (matches other sections) */
.main-score-display-with-trend + .assessment-narrative {
  margin-top: 40px;
}

.audio-analysis-container {
  margin-bottom: 25px;
  padding: 15px 20px;
  background: #f8f9fa;
  border-radius: 12px;
}

.audio-analysis-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.audio-analysis-container .summary {
  margin: 0;
  text-align: left;
  color: #1d1d1f;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  border-bottom: none;
}

.audio-icon {
  font-size: 18px;
  color: #e53e3e;
}

.audio-link {
  color: #e53e3e;
  text-decoration: underline;
  font-weight: 500;
  font-size: 16px;
}

.audio-link:hover {
  color: #c53030;
  text-decoration: underline;
}

.audio-text {
  color: #6e6e73;
  font-weight: 500;
  font-size: 16px;
}

.changes-list {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.change-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.change-bullet {
  color: #e53e3e;
  font-size: 20px;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

.recommendations-list {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.recommendation-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.5;
}

.recommendation-check {
  color: #28a745;
  font-size: 18px;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

.assessment-narrative::before {
  display: none;
}

.assessment-narrative h3 {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin: -40px -40px 30px -40px;
  padding: 15px 20px;
  text-align: center;
  background: #ff0056;
  border-radius: 20px 20px 0 0;
  position: relative;
  z-index: 1;
}

.assessment-narrative .summary {
  font-size: 16px;
  color: #1d1d1f;
  text-align: left;
  font-weight: 400;
  line-height: 1.6;
  border-bottom: none;
}

/* Shared List Styles for Changes and Recommendations */
.changes {
  margin-bottom: 25px;
}

.recommendations {
}

.changes h4,
.recommendations h4 {
  font-size: 18px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 15px;
}

.changes ul,
.recommendations ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.changes li,
.recommendations li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
  color: #1d1d1f;
}

.changes li::before {
  content: '\F633';
  position: absolute;
  left: 0;
  color: #007bff;
  font-family: 'bootstrap-icons';
  font-size: 16px;
  font-weight: bold;
}


/* Mobile Responsive */
@media (max-width: 768px) {
  .single-condition-results {
    gap: 30px;
    max-width: 100%;
    padding: 0 15px;
  }

  .single-condition-results.has-result-banners {
    gap: 0;
  }

  .results-banner-section {
    margin: 10px 0;
  }
  
  /* Main Score Display Mobile */
  .main-score-display {
    margin: 30px 0 40px 0;
  }
  
  .score-display-card {
    padding: 20px 15px;
    border-radius: 16px;
    margin: 0 auto;
    text-align: center;
    max-width: 300px;
  }
  
  .score-display-container {
    flex-direction: column;
    gap: 40px;
  }
  
  .score-value {
    padding: 25px 30px;
    border-radius: 16px;
  }
  
  .score-value-large {
    padding: 20px 15px;
    min-width: auto;
    max-width: 280px;
    margin: 0 auto;
  }
  
  .score-number {
    font-size: 48px;
  }
  
  .score-number-large {
    font-size: 36px;
  }
  
  .score-label {
    font-size: 18px;
  }
  
  .score-details {
    gap: 15px;
    text-align: center;
  }
  
  .detail-value {
    font-size: 20px;
  }
  
  /* Enhanced Chart Mobile */
  .enhanced-chart-container {
    height: 300px;
    padding: 15px;
  }
  
  .chart-controls {
    flex-direction: row;
    gap: 8px;
    padding: 12px 15px;
    align-items: center;
  }
  
  .chart-controls-left {
    flex: 1;
    flex-wrap: nowrap;
    gap: 4px;
    order: 1;
  }
  
  .chart-controls-right {
    flex-shrink: 0;
    order: 2;
  }
  
  .chart-control-btn {
    padding: 8px 10px;
    font-size: 11px;
    white-space: nowrap;
    min-width: auto;
  }
  
  .chart-export-btn {
    padding: 8px 10px;
    font-size: 11px;
    white-space: nowrap;
  }
  
  .chart-export-btn i {
    margin-right: 4px;
  }
  
  /* Score Breakdown Mobile */
  .score-breakdown,
  .score-understanding,
  .recommended-actions,
  .progress-tracking,
  .treatment-info,
  .results-treatment-info,
  .assessment-narrative,
  .sms-opt-in-section {
    padding: 15px 15px;
    border-radius: 16px;
  }
  
  .score-breakdown::before,
  .score-understanding::before,
  .recommended-actions::before,
  .progress-tracking::before,
  .treatment-info::before,
  .results-treatment-info::before,
  .assessment-narrative::before,
  .save-results-section::before {
    font-size: 20px;
    padding: 8px 12px;
    top: -25px;
  }
  
  /* Mobile styling for all section h3 headers with negative margins */
  .score-breakdown h3,
  .score-understanding h3,
  .recommended-actions h3,
  .progress-tracking h3,
  .treatment-info h3,
  .results-treatment-info h3,
  .assessment-narrative h3,
  .sms-opt-in-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin: -15px -15px 20px -15px;
    padding: 12px 15px;
    text-align: center;
    background: #ff0056;
    border-radius: 16px 16px 0 0;
    position: relative;
    z-index: 1;
  }

  /* Mobile styling for score ranges layout */
  .score-ranges .range-item {
    display: block;
  }
  
  .score-ranges .range-header {
    display: block;
    margin-bottom: 8px;
  }
  
  .score-ranges .range-description {
    margin-left: 0;
    margin-top: 8px;
  }
  
  .treatment-details {
    max-width: 100%;
  }
  
  .treatment-info {
    padding: 50px 20px 25px 20px;
    margin: 25px 0;
  }
  
  .treatment-details p {
    padding: 15px 20px;
    font-size: 16px;
  }
  
  .treatment-details p strong {
    min-width: 100px;
    font-size: 14px;
  }
  
  /* Enhanced Breakdown Mobile */
  .breakdown-summary {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 12px;
  }
  
  .question-breakdown {
    padding: 20px;
  }
  
  .question-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .question-score {
    align-self: flex-end;
  }
  
  .question-response {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .response-progress {
    width: 100%;
  }
  
  .area-breakdown {
    padding: 15px;
  }
  
  .area-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .detailed-breakdown h5 {
    font-size: 16px;
    margin: 25px 0 15px 0;
  }
  
  .breakdown-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .breakdown-value {
    align-self: flex-end;
  }
  
  /* Range Items Mobile */
  .range-item {
    padding: 15px;
  }
  
  .range-score {
    font-size: 14px;
    margin-right: 8px;
    display: block;
    margin-bottom: 8px;
  }
  
  .range-description {
    font-size: 14px;
  }
  
  /* Legacy compatibility */
  .score-card,
  .progress-tracking,
  .treatment-info,
  .assessment-narrative {
    padding: 20px;
  }
  
  .total-score {
    font-size: 36px;
  }
  
  .max-score {
    font-size: 18px;
  }
  
  .percentage-score {
    font-size: 16px;
  }
  
  .interpretation h3 {
    font-size: 20px;
  }
  
  .progress-tracking h3,
  .treatment-info h3,
  .assessment-narrative h3 {
    font-size: 20px;
    margin: -20px -20px 20px -20px;
  }
  
  .assessment-narrative .summary {
    font-size: 16px;
  }
}

/* Language Switcher Styling */
.language-switcher {
  margin-left: auto;
}

.language-switcher .nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: auto;
}

.flag-icon {
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,0.1);
}

.flag-icon-small {
  border-radius: 1px;
  border: 1px solid rgba(0,0,0,0.1);
  margin-right: 8px;
}

.dropdown-item {
  display: flex;
  align-items: center;
}

/* Remove shimmer effects from condition detail page buttons */
.condition-detail .btn-primary::before,
.condition-detail .btn-secondary::before {
  display: none;
}

/* Remove shimmer effects from dashboard page buttons */
.dashboard .btn-primary::before,
.dashboard .btn-secondary::before {
  display: none;
}

.bmi-results {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid #e8e8ed;
}

.bmi-score {
  text-align: center;
  padding: 30px;
  border: 3px solid;
  border-radius: 16px;
  margin-bottom: 30px;
  background: white;
}

.bmi-value {
  font-size: 48px;
  font-weight: 700;
  color: #1d1d1f;
  line-height: 1;
}

.bmi-label {
  font-size: 16px;
  color: #6e6e73;
  margin-top: 8px;
}

.bmi-category {
  padding: 25px;
  border-radius: 12px;
  border: 2px solid;
  margin-bottom: 30px;
  text-align: center;
}

.bmi-category h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}

.bmi-category p {
  font-size: 16px;
  color: #6e6e73;
  line-height: 1.5;
  margin: 0;
}

.bmi-ranges h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 20px;
  text-align: center;
}

.range-list {
  display: grid;
  gap: 10px;
}

.range-item {
  display: flex;
  justify-content: space-between;
  padding: 15px 20px;
  background: #f5f5f7;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.range-item.active {
  background: rgba(0, 113, 227, 0.1);
  border: 1px solid oklch(.623 .214 259.815);
}

.range-label {
  font-weight: 500;
  color: #1d1d1f;
}

.range-value {
  color: #6e6e73;
  font-weight: 500;
}

.error-message {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  color: #c53030;
  padding: 15px 20px;
  border-radius: 8px;
  margin-top: 20px;
  text-align: center;
}

.bmi-disclaimer {
  background: #f8f9fa;
  border: 1px solid #e8e8ed;
  color: #1d1d1f;
  padding: 20px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .bmi-calculator {
    padding: 10px;
    margin: 20px auto;
  }
  
  .bmi-header h1 {
    font-size: 30px;
  }
  
  .bmi-content {
    padding: 20px;
  }
  
  .unit-options {
    flex-direction: column;
    align-items: center;
  }
  
  .input-groups {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0;
  }
  
  .height-inputs,
  .imperial-height.height-inputs {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .bmi-calculator .form-input {
    width: 80%;
    font-size: 24px;
    padding: 15px 20px;
  }
  
  .bmi-calculator .imperial-height .form-input {
    width: 85px;
    font-size: 24px;
  }
  
  .bmi-value {
    font-size: 36px;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .assessment-question {
    padding: 10px;
    margin: 20px auto;
  }
  
  .assessment-header {
    margin-bottom: 30px;
  }
  
  #assessment-content {
    padding: 25px 20px;
  }
  
  .assessment-subtitle {
    font-size: 12px;
  }
  
  .progress-bar {
    margin-bottom: 40px;
  }
  
  .answer-options {
    gap: 12px;
    margin-bottom: 40px;
    padding: 0 5px;
  }
  
  .navigation-buttons {
    padding: 0 20px;
  }
  
  .navigation-buttons .btn-secondary {
    font-size: 16px;
    padding: 8px 16px;
  }
  
  .conditions-grid {
    grid-template-columns: 1fr;
  }
  
  /* Start page mobile optimization */
  .assessment-start {
    margin: 30px auto;
  }
  
  .assessment-start h1 {
    font-size: 30px;
  }
  
  .assessment-start .assessment-header {
    margin-bottom: 40px;
  }
  
  /* Results page mobile optimization */
  .assessment-results {
    margin: 20px auto;
    padding: 15px;
  }
  
  
  
  .ad-container {
    margin-bottom: 30px;
  }
  
  .ad-container .dcmads {
    width: 320px !important;
    height: 50px !important;
  }
  
  .intro-section {
    padding: 20px;
  }
  
  .intro-section h2 {
    font-size: 20px;
  }
  
  .intro-section p,
  .intro-section li {
    font-size: 16px;
  }
  
  /* Center likelihood score on mobile */
  .likelihood-score {
    text-align: center;
  }
}

/* Dry Eye Assessment Specific Styles */

/* Ensure Next button is visible for dry eye assessment (overrides ADL hiding rule) */
.assessment-question[data-controller="dry-eye-assessment"] .navigation-buttons .btn-primary {
  display: inline-block !important;
}

/* Ensure proper button positioning for dry eye assessment */
.assessment-question[data-controller="dry-eye-assessment"] .navigation-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
}

/* Save Results Section */
.save-results-section {
  margin-bottom: 0;
}

.save-results-card {
  background: #ffffff;
  padding: 40px;
  border-radius: 20px;
  border: 3px solid #e53e3e;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.save-results-card h3 {
  font-size: 32px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0 0 25px 0;
  line-height: 1.2;
}

.save-description {
  color: #6e6e73;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.save-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.btn-save-signup {
  background: #e53e3e;
  color: white;
  border: none;
  padding: 18px 32px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 200px;
}

.btn-save-signup:hover {
  background: #c53030;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(229, 62, 62, 0.3);
}

.btn-save-signin {
  background: #f7fafc;
  color: #2d3748;
  border: 2px solid #e2e8f0;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 200px;
}

.btn-save-signin:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(45, 55, 72, 0.15);
}

.continue-link {
  margin-top: 20px;
}

.continue-without-saving {
  color: #e53e3e;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.continue-without-saving:hover {
  border-bottom-color: #e53e3e;
}

.signup-prompt {
  color: #6e6e73;
  font-size: 16px;
  line-height: 1.5;
  max-width: 400px;
  margin: 0 auto;
}

.signup-prompt a {
  color: #ff0056;
  text-decoration: none;
  font-weight: 500;
}

.signup-prompt a:hover {
  text-decoration: underline;
  color: oklch(0.58 0.246 16.439);
}

/* Flash Messages */
.flash-notice,
.flash-alert {
  padding: 15px 20px;
  margin: 20px auto;
  max-width: 800px;
  border-radius: 8px;
  text-align: center;
  font-size: 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity 0.3s ease, transform 0.3s ease, height 0.3s ease, margin 0.3s ease, padding 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.flash-notice {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.flash-alert {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.flash-close {
  background: none;
  border: none;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  padding: 0;
  margin-left: auto;
  transition: opacity 0.3s ease;
}

.flash-close:hover {
  opacity: 1;
}

.flash-fade-out {
  opacity: 0;
  transform: translateY(-5px);
}

.flash-collapse {
  height: 0;
  margin: 0;
  padding: 0;
  border-width: 0;
}

@media (max-width: 768px) {
  .flash-notice,
  .flash-alert {
    margin: 10px 15px;
    padding: 12px 15px;
    font-size: 14px;
  }
  
  .flash-collapse {
    margin: 0;
  }
}

/* Dashboard Styles */
.dashboard {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
}

.dashboard-header {
  text-align: center;
  margin-bottom: 40px;
}

.dashboard-header h1 {
  color: #1d1d1f;
  font-size: 48px;
  margin-bottom: 10px;
}

.dashboard-header p {
  color: #6e6e73;
  font-size: 18px;
}

.assessments-list {
  display: grid;
  gap: 20px;
  margin-bottom: 40px;
}

.assessment-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  border: 1px solid #e8e8ed;
}

.assessment-date {
  color: #6e6e73;
  font-size: 14px;
  margin-bottom: 15px;
}

.top-diagnosis h3 {
  color: #1d1d1f;
  font-size: 20px;
  margin-bottom: 8px;
}

.likelihood {
  color: #ff0056;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 20px;
}

.assessment-actions {
  display: flex;
  gap: 10px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #f5f5f7;
  border-radius: 12px;
  margin-bottom: 40px;
}

.empty-state p {
  color: #6e6e73;
  font-size: 18px;
  margin-bottom: 20px;
}

.dashboard-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
}

@media (max-width: 768px) {
  .save-results-card {
    padding: 35px 25px;
    border-radius: 16px;
  }
  
  .save-results-card h3 {
    font-size: 26px;
    margin-bottom: 20px;
  }
  
  .save-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  
  .save-actions {
    flex-direction: column;
    gap: 15px;
  }
  
  .btn-save-signup,
  .btn-save-signin {
    width: 100%;
    max-width: 350px;
    font-size: 17px;
    padding: 16px 24px;
  }
  
  .dashboard-header h1 {
    font-size: 30px;
  }
  
  .dashboard-actions {
    flex-direction: column;
  }
  
  .dashboard-actions .btn {
    width: 100%;
  }
}

/* Welcome Page */
.welcome-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.welcome-header {
  text-align: center;
  margin-bottom: 60px;
}

.welcome-subtitle {
  font-size: 14px;
  font-weight: 500;
  color: #ff0056;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.welcome-header h1 {
  font-size: 56px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0 0 30px 0;
  line-height: 1.1;
}

.welcome-description {
  font-size: 20px;
  color: #6e6e73;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

.assessment-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

.assessment-card {
  background: white;
  padding: 40px;
  border-radius: 16px;
  border: 1px solid #e8e8ed;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.assessment-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: #ff0056;
}

.card-icon {
  color: #ff0056;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.assessment-card h3 {
  font-size: 24px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 15px;
  line-height: 1.3;
}

.assessment-card p {
  color: #6e6e73;
  line-height: 1.6;
  margin-bottom: 25px;
  font-size: 16px;
}

.card-actions {
  margin-top: auto;
}

.welcome-features {
  margin-bottom: 60px;
}

.features-header {
  text-align: center;
  margin-bottom: 50px;
}

.features-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.feature-item {
  text-align: center;
}

.feature-icon {
  color: #ff0056;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.feature-item h4 {
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 12px;
}

.feature-item p {
  color: #6e6e73;
  line-height: 1.6;
  font-size: 16px;
}

.welcome-disclaimer {
  background: #f8f9fa;
  border: 1px solid #e8e8ed;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  margin-top: 40px;
}

.disclaimer-content {
  color: #1d1d1f;
  font-size: 16px;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .welcome-page {
    padding: 40px 15px;
  }
  
  .welcome-header {
    margin-bottom: 40px;
  }
  
  .welcome-header h1 {
    font-size: 36px;
    margin-bottom: 20px;
  }
  
  .welcome-description {
    font-size: 18px;
  }
  
  .assessment-cards {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 60px;
  }
  
  .assessment-card {
    padding: 30px 20px;
  }
  
  .features-header h2 {
    font-size: 28px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .welcome-disclaimer {
    padding: 20px;
  }
  
  .disclaimer-content {
    font-size: 14px;
  }
}

/* Remove shimmer effects and transitions from welcome page buttons */
.welcome-page .btn-primary::before {
  display: none;
}

.welcome-page .btn.btn-primary,
.main-content .welcome-page .btn.btn-primary {
  color: white !important;
  transition: none;
}

/* Remove shimmer effects from navigation Sign Up button */
.nav-links .btn-primary::before {
  display: none;
}

/* Treatment Information Styles */

.treatment-header {
  text-align: center;
  margin-bottom: 0;
}

.treatment-subtitle {
  color: #ff0056;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
}

.treatment-header h1 {
  font-size: 48px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0 0 20px 0;
  line-height: 1.1;
}

.treatment-description {
  font-size: 16px;
  color: #6e6e73;
  text-align: center;
  margin: -20px 0 30px 0;
  line-height: 1.5;
}

.treatment-content {
  background: white;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #e8e8ed;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.treatment-content h2 {
  font-size: 28px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 30px;
  line-height: 1.3;
  text-align: center;
}

.form-section {
  margin-bottom: 40px;
}

.form-section:last-child {
  margin-bottom: 0;
}

.form-section h3 {
  font-size: 24px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 15px;
}

.section-description {
  font-size: 16px;
  color: #6e6e73;
  margin-bottom: 25px;
  line-height: 1.5;
}


.other-treatment {
  margin-top: 15px;
}

.form-textarea {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 2px solid #d2d2d7;
  border-radius: 12px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}

.form-textarea:focus {
  outline: none;
  border-color: #ff0056;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.change-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  padding: 15px;
  background: #f5f5f7;
  border-radius: 12px;
}

.change-checkbox {
  margin-top: 2px;
  flex-shrink: 0;
}

.change-label {
  font-size: 16px;
  color: #1d1d1f;
  cursor: pointer;
  margin: 0;
  line-height: 1.5;
}


/* Treatment page answer options - inline and wrap */
.treatment-content .answer-options {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 15px;
  align-items: flex-start;
  max-width: none;
}

.treatment-content .answer-option {
  width: auto;
  max-width: none;
  flex: none;
  box-sizing: border-box;
}

.treatment-content .answer-option .option-label {
  white-space: nowrap;
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
  font-weight: 400;
}

/* Keep font weight consistent to prevent width changes */
.treatment-content .answer-option.selected .option-label {
  font-weight: 400;
}

/* Remove shimmer effects from treatment page buttons */
.treatment-content .btn-primary::before,
.treatment-content .btn-secondary::before {
  display: none;
}

@media (max-width: 768px) {
  .treatment-info {
    padding: 25px 20px;
    margin: 20px auto;
    border-radius: 16px;
  }
  
  .treatment-header {
    margin-bottom: 30px;
  }
  
  .treatment-header h1 {
    font-size: 30px;
    margin-bottom: 15px;
  }
  
  .treatment-description {
    font-size: 16px;
  }
  
  .treatment-content {
    padding: 25px 20px;
  }
  
  .treatment-content h2 {
    font-size: 20px;
    margin-bottom: 30px;
    padding: 0 20px;
  }
}

/* SMS Opt-In Page Styles - Updated */
.sms-opt-in-page {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
}

.sms-opt-in-header {
  text-align: center;
  margin-bottom: 50px;
}

.sms-subtitle {
  font-size: 14px;
  font-weight: 500;
  color: #ff0056;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.sms-opt-in-header h1 {
  font-size: 48px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0 0 20px 0;
  line-height: 1.1;
}

.sms-description {
  font-size: 18px;
  color: #6e6e73;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

.sms-opt-in-content {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.consent-section,
.opt-in-section,
.opt-out-section {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e8e8ed;
}

.consent-section h2,
.opt-in-section h2,
.opt-out-section h2 {
  font-size: 28px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0 0 25px 0;
  text-align: center;
}

.consent-details h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 30px 0 15px 0;
}

.consent-details h3:first-child {
  margin-top: 0;
}

.consent-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.consent-list li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
  line-height: 1.6;
}

.consent-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #ff0056;
  font-weight: bold;
  font-size: 20px;
}

.frequency-info,
.opt-out-info {
  background: #f5f5f7;
  padding: 20px;
  border-radius: 12px;
  margin: 15px 0;
}

.frequency-info p,
.opt-out-info p {
  margin-bottom: 10px;
  color: #1d1d1f;
}

.frequency-info p:last-child,
.opt-out-info p:last-child {
  margin-bottom: 0;
}

.opt-out-info ul {
  margin: 10px 0 0 0;
  padding-left: 20px;
}

.opt-out-info li {
  margin-bottom: 8px;
  color: #1d1d1f;
}

.sms-form {
  max-width: 500px;
  margin: 30px auto 0 auto;
  text-align: center;
}

.phone-input {
  width: 100%;
  padding: 15px 20px;
  font-size: 18px;
  border: 2px solid #d2d2d7;
  border-radius: 12px;
  transition: all 0.3s ease;
  margin-bottom: 8px;
  text-align: center;
  font-weight: 500;
}

.phone-input:focus {
  outline: none;
  border-color: #ff0056;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.form-help {
  font-size: 14px;
  color: #6e6e73;
  text-align: center;
  margin-bottom: 25px;
}

.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 25px 0;
  padding: 20px;
  background: #f5f5f7;
  border-radius: 12px;
}

.consent-check {
  width: 20px;
  height: 20px;
  margin: 0;
  flex-shrink: 0;
  margin-top: 2px;
}

.consent-label {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #1d1d1f;
  cursor: pointer;
}

.legal-disclaimer {
  background: #f8f9fa;
  border: 1px solid #e8e8ed;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
}

.legal-disclaimer h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0 0 15px 0;
}

.legal-disclaimer p {
  color: #1d1d1f;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

/* Remove shimmer effects from SMS opt-in page buttons */
.sms-opt-in-page .btn-primary::before,
.sms-opt-in-page .btn-secondary::before {
  display: none;
}

@media (max-width: 768px) {
  .sms-opt-in-page {
    padding: 15px;
    margin: 20px auto;
  }
  
  .sms-opt-in-header {
    margin-bottom: 30px;
  }
  
  .sms-opt-in-header h1 {
    font-size: 32px;
    margin-bottom: 15px;
  }
  
  .sms-description {
    font-size: 16px;
  }
  
  .sms-opt-in-content {
    gap: 30px;
  }
  
  .consent-section,
  .opt-in-section,
  .opt-out-section {
    padding: 25px 20px;
  }
  
  .consent-section h2,
  .opt-in-section h2,
  .opt-out-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .consent-details h3 {
    font-size: 18px;
    margin: 25px 0 12px 0;
  }
  
  .phone-input {
    font-size: 16px;
    padding: 12px 15px;
  }
  
  .consent-checkbox {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
  }
  
  .consent-check {
    align-self: flex-start;
  }
  
  .legal-disclaimer {
    padding: 20px 15px;
  }
  
  .legal-disclaimer h3 {
    font-size: 18px;
  }
  
  .legal-disclaimer p {
    font-size: 14px;
  }
}

/* Global Footer */
.global-footer {
  padding: 40px 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.footer-copyright {
  color: #6e6e73;
  font-size: 14px;
  margin-bottom: 20px;
  font-weight: 500;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-link {
  color: #6e6e73;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #1d1d1f;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .global-footer {
    padding: 30px 0;
  }
  
  .footer-links {
    gap: 5px;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .footer-link {
    flex: 0 0 auto;
    min-width: 110px;
    text-align: center;
  }
  
  /* Force Contact Us to be on its own row */
  .footer-link:last-child {
    flex-basis: 100%;
    margin-top: 5px;
  }
}

/* SMS Opt-in Section Styles */
.sms-opt-in-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 40px;
  border-radius: 20px;
  border: 2px solid #e8e8ed;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  position: relative;
}

.sms-opt-in-section::before {
  display: none;
}

.sms-opt-in-card {
  /* No additional padding needed - handled by section */
}

.sms-opt-in-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin: -40px -40px 30px -40px;
  padding: 15px 20px;
  text-align: center;
  background: #ff0056;
  border-radius: 20px 20px 0 0;
  position: relative;
  z-index: 1;
}

.sms-description {
  color: #6e6e73;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.sms-opt-in-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-group {
  flex: 1;
}

.form-label {
  display: block;
  font-weight: 500;
  color: #1d1d1f;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  font-size: 16px;
  background: white;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #007aff;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.form-check-input {
  margin-top: 4px;
  accent-color: #007aff;
}

.form-check-label {
  font-size: 14px;
  color: #6e6e73;
  line-height: 1.4;
  cursor: pointer;
}

.sms-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.sms-subscribed {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 16px;
}

.subscription-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.subscription-status i {
  font-size: 18px;
  color: #059669;
}

.subscription-status span {
  font-weight: 500;
  color: #1d1d1f;
}

.phone-number {
  white-space: nowrap;
}

.subscription-details {
  color: #6e6e73;
}

.sms-anonymous-info {
  text-align: center;
  padding: 24px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.sms-footer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e8e8ed;
  text-align: center;
}

/* Mobile responsiveness for SMS opt-in */
@media (max-width: 768px) {
  .sms-opt-in-section {
    /* Mobile styling handled by main section group */
  }
  
  .form-row {
    flex-direction: column;
    gap: 20px;
  }
  
  .sms-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .sms-actions .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    line-height: 1.3;
  }
}
/* Authentication Styles */
* {
  box-sizing: border-box;
}

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px 20px 20px;
  background-color: #f5f5f7;
}

.auth-box {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  width: 100%;
  max-width: 500px;
  overflow: hidden;
}

.auth-box * {
  box-sizing: border-box;
}

.auth-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-header h2 {
  font-size: 32px;
  color: #1d1d1f;
  margin-bottom: 10px;
}

.auth-header p {
  color: #6e6e73;
  font-size: 16px;
}

.auth-form {
  margin-bottom: 30px;
}

.form-field {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-hint {
  color: #6e6e73;
  font-size: 12px;
  font-weight: normal;
}

.form-field .form-input {
  width: 100%;
  padding: 12px 20px;
  font-size: 16px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-field .form-input:focus {
  border-color: #ff0056;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-field input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.checkbox-field label {
  margin-bottom: 0;
  font-weight: normal;
  color: #6e6e73;
}

.form-actions {
  margin-top: 30px;
}

.form-actions .btn {
  width: 100%;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: #ff0056;
  color: white;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: none;
  text-decoration: none;
  position: relative;
  overflow: visible;
}

.form-actions .btn:hover {
  background: oklch(0.58 0.246 16.439);
  box-shadow: none;
}

.form-actions .btn:active {
  transform: none;
}

.form-actions .btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Override the shimmer effect for auth buttons */
.form-actions .btn::before {
  display: none;
}

/* Ensure no transform on submit inputs */
.form-actions input[type="submit"] {
  transform: none !important;
  transition: none !important;
}

.form-actions input[type="submit"]:hover {
  transform: none !important;
}

.form-actions input[type="submit"]:active {
  transform: none !important;
}

.auth-links {
  text-align: center;
  margin-bottom: 20px;
}

.auth-links a {
  color: #ff0056;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.8;
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-divider {
  text-align: center;
  margin: 30px 0;
  position: relative;
  display: none;
}

.auth-divider span {
  background: white;
  padding: 0 15px;
  color: #6e6e73;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #d2d2d7;
  z-index: 0;
}

/* Ensure forms within form-actions match the container width exactly */
.form-actions form {
  width: 100%;
  display: block;
  margin: 0;
  padding: 0;
}

/* Ensure button_to forms don't add extra width */
.form-actions form[method="post"] {
  max-width: 100%;
  box-sizing: border-box;
}

/* Make cancel account button 70% width */
.form-actions .btn[href*="registration"] {
  width: 70%;
  margin: 0 auto;
}

/* Auth secondary section for Continue without account buttons */
.auth-secondary {
  text-align: center;
  display: none;
}

.auth-secondary .btn {
  width: 70%;
  margin: 0 auto;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: #ff0056;
  color: white;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: none;
  text-decoration: none;
  position: relative;
  overflow: visible;
}

.auth-secondary .btn:hover {
  background: oklch(0.58 0.246 16.439);
  box-shadow: none;
}

.auth-secondary .btn:active {
  transform: none;
}

.auth-secondary .btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Remove shimmer effect for auth secondary buttons */
.auth-secondary .btn::before {
  display: none !important;
}

/* Error Messages */
#error_explanation {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

#error_explanation h2 {
  color: #721c24;
  font-size: 16px;
  margin-bottom: 10px;
}

#error_explanation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#error_explanation ul li {
  color: #721c24;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .auth-container {
    padding: 15px;
  }
  
  .auth-box {
    padding: 30px 20px;
    max-width: 100%;
  }
  
  .auth-header h2 {
    font-size: 28px;
  }
  
  .form-actions .btn,
  .auth-secondary .btn {
    padding: 12px 20px;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 480px) {
  .auth-container {
    padding: 10px;
  }
  
  .auth-box {
    padding: 20px 15px;
  }
  
  .auth-header h2 {
    font-size: 24px;
  }
  
  .form-actions .btn,
  .auth-secondary .btn {
    padding: 12px 15px;
    font-size: 15px;
  }
  
  .auth-links {
    margin-bottom: 15px;
  }
  
  .auth-links a {
    font-size: 16px;
    padding: 10px 15px;
    display: inline-block;
    text-align: center;
  }
  
  /* Mobile select field styling */
  .healthcare-fields select.form-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    font-size: 16px;
    line-height: 1.5;
  }
  
  .healthcare-fields select.form-input option {
    font-size: 16px;
    padding: 12px 8px;
  }
}

/* User Type Toggle Buttons - Updated v3 */
.auth-form .user-type-selection {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-form .user-type-selection .toggle-buttons {
  display: flex !important;
  gap: 20px;
  margin-top: 16px;
  width: 100%;
  max-width: 500px;
  justify-content: center;
}

.auth-form .user-type-selection .toggle-btn {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  padding: 16px 12px !important;
  background: #ffffff !important;
  border: 2px solid #d1d5db !important;
  border-radius: 8px !important;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #6b7280 !important;
  text-align: center !important;
  position: relative;
  min-height: 80px !important;
  box-shadow: none !important;
}

.auth-form .user-type-selection .toggle-btn:hover {
  border-color: #9ca3af !important;
  background-color: #f9fafb !important;
}

.auth-form .user-type-selection .toggle-btn.active {
  border-color: #ff0056 !important;
  background: #fef2f2 !important;
  color: #ff0056 !important;
}

/* Remove the gradient background and checkmark */
.auth-form .user-type-selection .toggle-btn.active::before {
  display: none !important;
}

.auth-form .user-type-selection .toggle-btn.active::after {
  display: none !important;
}

@keyframes checkmark {
  0% {
    transform: scale(0) rotate(180deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.auth-form .user-type-selection .toggle-btn.inactive {
  opacity: 1 !important;
}

.auth-form .user-type-selection .toggle-btn i {
  font-size: 20px !important;
  margin-bottom: 2px !important;
  transition: all 0.2s ease !important;
}

.auth-form .user-type-selection .toggle-btn.active i {
  color: #ff0056 !important;
}

.auth-form .user-type-selection .toggle-btn span {
  line-height: 1.2 !important;
  font-weight: 500 !important;
}

.auth-form .user-type-selection .toggle-btn.active span {
  color: #ff0056 !important;
}

/* Enhanced mobile responsiveness */
@media (max-width: 640px) {
  .auth-form .user-type-selection .toggle-buttons {
    gap: 12px;
    max-width: 100%;
    flex-direction: row;
  }
  
  .auth-form .user-type-selection .toggle-btn {
    padding: 18px 12px !important;
    min-height: 85px !important;
    font-size: 14px !important;
    border-radius: 12px !important;
    flex: 1;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
  }
  
  .auth-form .user-type-selection .toggle-btn i {
    font-size: 20px !important;
    margin-bottom: 0 !important;
  }
  
  .auth-form .user-type-selection .toggle-btn span {
    line-height: 1.3 !important;
    font-size: 13px !important;
    text-align: center !important;
    word-break: break-word;
    hyphens: auto;
  }
}

@media (max-width: 480px) {
  .auth-form .user-type-selection .toggle-buttons {
    gap: 10px;
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  
  .auth-form .user-type-selection .toggle-btn {
    padding: 20px 16px !important;
    min-height: 75px !important;
    font-size: 15px !important;
    border-radius: 12px !important;
    width: 100% !important;
    flex: none !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 16px !important;
    text-align: left !important;
  }
  
  .auth-form .user-type-selection .toggle-btn i {
    font-size: 24px !important;
    margin-bottom: 0 !important;
    flex-shrink: 0;
  }
  
  .auth-form .user-type-selection .toggle-btn span {
    line-height: 1.4 !important;
    font-size: 15px !important;
    text-align: left !important;
    word-break: normal;
    hyphens: none;
    flex: 1;
  }
}

/* Healthcare Professional Fields */
.healthcare-fields {
  margin-bottom: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.healthcare-fields .form-field {
  margin-bottom: 16px;
}

.healthcare-fields .form-field:last-child {
  margin-bottom: 0;
}

.healthcare-fields .form-label {
  font-weight: 500;
  color: #374151;
}

/* Select dropdown styling */
.healthcare-fields select.form-input {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23666' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 40px;
  appearance: none;
  background-color: white;
  color: #1d1d1f;
}

/* Remove blue selection styling on mobile */
.healthcare-fields select.form-input:focus {
  border-color: #ff0056;
  background-color: white;
  color: #1d1d1f;
}

.healthcare-fields select.form-input option {
  background-color: white;
  color: #1d1d1f;
}

.healthcare-fields select.form-input option:checked {
  background-color: #f5f5f7;
  color: #1d1d1f;
}

/* Style for section headers in specialty dropdown */
.healthcare-fields select.form-input option[value=""] {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #6c757d;
}

/* Required field indicator */
.healthcare-fields .form-label::after {
  content: " *";
  color: #dc3545;
  font-weight: bold;
}

/* NPI Verification Section */
.npi-verification-section {
  margin-top: 24px;
  padding: 20px;
  background: #f0f9ff;
  border-radius: 8px;
  border: 1px solid #0ea5e9;
}

.verification-title {
  font-size: 18px;
  font-weight: 600;
  color: #0c4a6e;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.verification-title::before {
  content: "🏥";
  font-size: 20px;
}

.verification-description {
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
  margin: 0 0 20px 0;
}

.npi-verification-section .form-field {
  margin-bottom: 0;
}

.npi-verification-section .form-label {
  font-weight: 600;
  color: #0c4a6e;
}

.form-help-text {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
  font-style: italic;
}

/* Attestation Checkbox */
.attestation-field {
  margin-top: 24px;
  padding: 16px;
  background: #fefefe;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.attestation-field:hover {
  border-color: #0ea5e9;
  background: #f8fcff;
}

.attestation-field:has(.attestation-checkbox:checked) {
  border-color: #0ea5e9;
  background: #f0f9ff;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}

.attestation-checkbox {
  width: 20px !important;
  height: 20px;
  margin: 0 !important;
  flex-shrink: 0;
  appearance: none;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.attestation-checkbox:hover {
  border-color: #0ea5e9;
}

.attestation-checkbox:checked {
  background: #0ea5e9;
  border-color: #0ea5e9;
}

.attestation-checkbox:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.attestation-label {
  margin: 0 !important;
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  font-weight: 500;
  cursor: pointer;
  flex: 1;
}

.attestation-field:has(.attestation-checkbox:checked) .attestation-label {
  color: #0c4a6e;
}

.required-asterisk {
  color: #dc3545;
  font-weight: bold;
  margin-left: 2px;
}

/* Terms Agreement Checkbox */
.terms-agreement-field {
  margin-top: 24px;
  padding: 16px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.terms-agreement-field:hover {
  border-color: #ff0056;
  background: #fefefe;
}

.terms-agreement-field:has(.terms-agreement-checkbox:checked) {
  border-color: #ff0056;
  background: #fef2f2;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.1);
}

.terms-agreement-checkbox {
  width: 20px !important;
  height: 20px;
  margin: 0 !important;
  flex-shrink: 0;
  appearance: none;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.terms-agreement-checkbox:hover {
  border-color: #ff0056;
}

.terms-agreement-checkbox:checked {
  background: #ff0056;
  border-color: #ff0056;
}

.terms-agreement-checkbox:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.terms-agreement-label {
  margin: 0 !important;
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  font-weight: 500;
  cursor: pointer;
  flex: 1;
}

.terms-agreement-field:has(.terms-agreement-checkbox:checked) .terms-agreement-label {
  color: #ff0056;
}

.terms-link {
  color: #ff0056;
  text-decoration: none;
  font-weight: 600;
}

.terms-link:hover {
  text-decoration: underline;
}

/* NPI Validation Styles */
.npi-status {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  display: none;
  border: none;
  box-shadow: none;
}

.npi-status.loading,
.npi-status.success,
.npi-status.error {
  display: flex;
}

.npi-status.loading {
  background-color: #eff6ff;
  color: #1e40af;
}

.npi-status.success {
  background-color: #f0fdf4;
  color: #15803d;
}

.npi-status.error {
  background-color: transparent;
  color: #dc2626;
}

.npi-status .status-icon {
  font-size: 14px;
  margin-top: 1px;
  flex-shrink: 0;
}

.npi-status .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #dbeafe;
  border-top: 2px solid #1e40af;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  flex-shrink: 0;
  margin-top: 1px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.npi-status .status-content {
  flex: 1;
  min-width: 0;
}

.npi-status .provider-name {
  font-weight: 600;
  margin-bottom: 2px;
  line-height: 1.3;
}

.npi-status .provider-specialty {
  color: #6b7280;
  font-size: 12px;
  margin-bottom: 2px;
  line-height: 1.3;
}

.npi-status .verification-text {
  color: #9ca3af;
  font-size: 11px;
  line-height: 1.3;
}

.npi-status .error-message {
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 4px;
}

.npi-status .error-help {
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.3;
}

.npi-status .error-content {
  flex: 1;
  min-width: 0;
}

/* NPI input field states */
.npi-verification-section .form-input.error {
  border-color: #f87171 !important;
}

.npi-verification-section .form-input.success {
  border-color: #34d399 !important;
}

/* Smooth transitions for input field */
.npi-verification-section .form-input {
  transition: border-color 0.2s ease;
}
/* Dashboard Styles - Consistent with Site Design */

.dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: #f5f5f7;
  min-height: 100vh;
}

/* Dashboard Header */
.dashboard-header {
  background: white;
  border: 1px solid #e8e8ed;
  border-radius: 18px;
  padding: 30px;
  margin-bottom: 30px;
}

.dashboard-header .header-content h1 {
  margin: 0 0 10px 0;
  font-size: 2rem;
  font-weight: 600;
  color: #1d1d1f;
}

.dashboard-header .welcome-message {
  font-size: 1.1rem;
  margin: 0 0 25px 0;
  color: #6e6e73;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.stat-item {
  text-align: center;
  padding: 15px;
  background: #f5f5f7;
  border-radius: 12px;
  border: 1px solid #e8e8ed;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1d1d1f;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: #6e6e73;
  margin-top: 5px;
}

/* Dashboard Controls */
.dashboard-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px;
  background: white;
  border-radius: 18px;
  border: 1px solid #e8e8ed;
}

.filters-form {
  display: flex;
  align-items: center;
  gap: 15px;
}

.filter-group .form-select {
  min-width: 200px;
  padding: 11px 15px;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  background: white;
  font-size: 17px;
  color: #1d1d1f;
}

.view-controls {
  display: flex;
  gap: 10px;
}

.view-toggle {
  padding: 8px 16px;
  text-decoration: none;
  background: #f5f5f7;
  color: #1d1d1f;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}

.view-toggle:hover {
  background: #e8e8ed;
  color: #1d1d1f;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.view-toggle.active {
  background: #ff0056;
  color: white !important;
  border-color: #ff0056;
}

.view-toggle.active:hover {
  background: #ff0056;
  color: white !important;
}

/* Assessments Grid */
.assessments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

/* Assessment Cards - Redesigned to match site patterns */
.assessment-card {
  background: white;
  border: 1px solid #e8e8ed;
  border-radius: 16px;
  padding: 25px;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: auto;
}

.assessment-card:hover {
  border-color: #d2d2d7;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Card Header - Clean title with subtle close button */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.assessment-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
  line-height: 1.3;
  flex: 1;
  padding-right: 15px;
}

.card-close-btn {
  background: none;
  border: none;
  color: #d1d1d6;
  padding: 4px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.card-close-btn:hover {
  background: #f5f5f7;
  color: #ff3b30;
}

/* Card Body - Main content area */
.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Assessment Info - Date and trend in clean row */
.assessment-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid #f5f5f7;
}

.completion-date {
  font-size: 15px;
  color: #6e6e73;
  font-weight: 500;
}

/* Trend Badges - Compact, professional pills */
.trend-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trend-badge.trend-better {
  background: #e8f5e8;
  color: #2d7d32;
}

.trend-badge.trend-worse {
  background: #ffebee;
  color: #d32f2f;
}

.trend-badge.trend-stable {
  background: #f5f5f7;
  color: #6e6e73;
}

.trend-badge i {
  font-size: 12px;
}

/* Primary Result - Hero section showing main finding */
.primary-result {
  text-align: center;
  padding: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Top Condition Display for Differential */
.top-condition {
  margin: 0;
}

.condition-name {
  font-size: 18px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 8px;
  line-height: 1.3;
}

.condition-probability {
  font-size: 24px;
  font-weight: 700;
  color: #ff0056;
  margin: 0;
}

/* Score Display Card - Match Results Page Styling */
.score-display-card {
  flex: 0 0 auto;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 20px;
  margin: 0 auto;
  max-width: 273px;
  padding: 0;
}

.score-value-large {
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  width: 273px;
  background: transparent;
}

.score-number-large {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
}

.score-label-large {
  font-size: 18px;
  font-weight: 600;
  text-transform: capitalize;
}

/* Legacy Score Result Display for Single Condition */
.score-result {
  margin: 0 auto;
  max-width: 400px;
  border-radius: 20px;
}

.score-value {
  display: inline-block;
  border-radius: 20px;
  background: white;
  text-align: center;
  padding: 30px 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
  font-size: 36px;
  font-weight: 700;
  color: #ff0056;
  margin-bottom: 8px;
  line-height: 1;
}

.score-interpretation {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

/* No Result State */
.no-result {
  font-size: 16px;
  color: #6e6e73;
  font-style: italic;
  margin: 0;
}

/* Legacy Result State */
.legacy-result {
  text-align: center;
}

.legacy-label {
  font-size: 16px;
  font-weight: 600;
  color: #6e6e73;
  margin-bottom: 4px;
}

.legacy-note {
  font-size: 14px;
  color: #6e6e73;
  font-style: italic;
  margin: 0;
}

/* Card Actions - Clean button at bottom */
.card-actions {
}

.card-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #ff0056;
  color: white !important;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: none;
  text-decoration: none;
  position: relative;
  overflow: visible;
}

.card-actions .btn-primary:hover {
  background: oklch(0.58 0.246 16.439);
  color: white !important;
  text-decoration: none;
}

.card-actions .btn-primary:active {
  transform: none;
}

.card-actions .btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Override the shimmer effect for dashboard buttons */
.card-actions .btn-primary::before {
  display: none;
}

/* Empty state actions styling */
.empty-actions {
  margin-top: 20px;
}

.empty-actions .btn-large {
  max-width: none;
  width: auto;
  white-space: normal;
  padding: 16px 32px;
  border-radius: 24px;
  background: #ff0056;
  color: white;
  border: none;
  font-size: 16px;
  font-weight: 500;
  transition: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.empty-actions .btn-large:hover {
  background: oklch(0.58 0.246 16.439);
  color: white;
  text-decoration: none;
  transform: none;
  box-shadow: none;
}

.empty-actions .btn-large:active {
  transform: none;
}

/* Remove shimmer effect for dashboard empty state button */
.empty-actions .btn-large::before {
  display: none;
}


/* Grouped View */
.assessments-grouped {
  margin-bottom: 30px;
}

.assessment-group {
  margin-bottom: 25px;
  border: 1px solid #e8e8ed;
  border-radius: 18px;
  overflow: hidden;
}

.group-header {
  background: white;
  padding: 15px 20px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}

.group-header:hover {
  background: #f5f5f7;
}

.group-header h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  color: #1d1d1f;
}

.group-toggle-icon {
  transition: transform 0.3s ease;
}

.assessment-count {
  color: #6e6e73;
  font-weight: normal;
}

.group-content {
  padding: 20px;
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Pagination */
.pagination-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding: 20px;
  background: white;
  border-radius: 18px;
  border: 1px solid #e8e8ed;
}

.pagination-info {
  color: #6e6e73;
  font-size: 0.9rem;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.pagination-btn {
  padding: 8px 16px;
  background: #f5f5f7;
  color: #1d1d1f;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pagination-btn:hover {
  background: #e8e8ed;
  color: #1d1d1f;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.pagination-pages {
  display: flex;
  gap: 5px;
}

.pagination-number {
  padding: 8px 12px;
  background: #f5f5f7;
  color: #1d1d1f;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  min-width: 40px;
  text-align: center;
}

.pagination-number:hover {
  background: #e8e8ed;
  color: #1d1d1f;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.pagination-number.active {
  background: #ff0056;
  color: white !important;
  border-color: #ff0056;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px 80px 20px;
  background: white;
  border-radius: 18px;
  border: 2px dashed #d2d2d7;
  margin-bottom: 30px;
}

.empty-icon {
  font-size: 4rem;
  color: #d2d2d7;
  margin-bottom: 20px;
}

.empty-state h3 {
  margin: 0 0 10px 0;
  color: #1d1d1f;
}

.empty-state p {
  color: #6e6e73;
  margin: 0 0 30px 0;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Quick Actions */
.quick-actions {
  margin-top: 40px;
}

.quick-actions h4 {
  margin: 0 0 20px 0;
  color: #1d1d1f;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.quick-action-card {
  display: flex;
  align-items: center;
  padding: 20px;
  background: white;
  border: 1px solid #e8e8ed;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.quick-action-card:hover {
  border-color: #007aff;
  text-decoration: none;
  color: inherit;
}

.action-icon {
  margin-right: 15px;
  font-size: 1.5rem;
  color: #007aff;
}

.action-content h5 {
  margin: 0 0 5px 0;
  color: #1d1d1f;
}

.action-content p {
  margin: 0;
  color: #6e6e73;
  font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .dashboard {
    padding: 15px;
  }
  
  .dashboard-header {
    padding: 30px 20px;
  }
  
  .dashboard-header h1 {
    font-size: 2rem;
  }
  
  .dashboard-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  
  .dashboard-stats .stat-item {
    flex: 0 0 calc(50% - 7.5px);
    max-width: 150px;
  }
  
  .dashboard-controls {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .filters-form {
    justify-content: center;
  }
  
  .view-controls {
    justify-content: center;
  }
  
  .assessments-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .score-display {
    flex-direction: column;
    gap: 15px;
  }
  
  .pagination-wrapper {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .pagination-controls {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .actions-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .assessment-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  /* Score display mobile centering */
  .assessment-card {
    text-align: center;
  }
  
  .primary-result {
    padding: 15px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .score-display-card {
    width: 100%;
    max-width: 273px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .score-value-large {
    width: 273px;
    margin: 0 auto;
  }
}
/* HCP Dashboard - Mobile-First Responsive Design */

.hcp-dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Mobile-first breakpoints */
@media (max-width: 768px) {
  .hcp-dashboard {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .hcp-dashboard {
    padding: 0.75rem;
  }
}

/* ===== DASHBOARD HEADER ===== */
.dashboard-header {
  margin-bottom: 2rem;
}

.dashboard-header.mobile-sticky {
  position: sticky;
  top: 0;
  background: white;
  z-index: 100;
  padding: 1.5rem 2rem;
  margin: -2rem -2rem 2rem -2rem;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .dashboard-header.mobile-sticky {
    padding: 1rem;
    margin: -1rem -1rem 1.5rem -1rem;
  }
}

@media (max-width: 480px) {
  .dashboard-header.mobile-sticky {
    padding: 0.75rem;
    margin: -0.75rem -0.75rem 1rem -0.75rem;
  }
}

@media (min-width: 769px) {
  .dashboard-header.mobile-sticky {
    position: static;
    border-bottom: none;
    margin: 0 0 2rem 0;
    padding: 2rem;
    box-shadow: none;
    background: #f8f9fa;
    border-radius: 1rem;
  }
}

/* Desktop header layout - simple and clean */
@media (min-width: 769px) {
  .dashboard-header {
    text-align: center;
  }
  
  .dashboard-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }
  
  .user-info {
    margin-bottom: 1.5rem;
  }
  
  .quick-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
  }
}

/* Mobile and tablet header layout */
@media (max-width: 768px) {
  .header-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }
  
  .dashboard-header h1 {
    text-align: left;
  }
  
  .user-info {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .header-content {
    gap: 0.5rem;
  }
}

.dashboard-header h1 {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 700;
  color: #1f2937;
}

@media (max-width: 480px) {
  .dashboard-header h1 {
    font-size: 1.5rem;
  }
}

.user-info {
  flex-shrink: 0;
}

.reviewer-name {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
}

.expertise-level {
  display: block;
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.quick-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 768px) {
  .quick-stats {
    justify-content: flex-start;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .quick-stats {
    gap: 0.5rem;
    width: 100%;
  }
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f9fafb;
  padding: 0.625rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  border: 1px solid #e5e7eb;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.stat-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-badge.urgent {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

.stat-badge.pending {
  background: #fffbeb;
  color: #d97706;
  border-color: #fed7aa;
}

.stat-badge.cme {
  background: #f0f9ff;
  color: #0369a1;
  border-color: #bae6fd;
}

.stat-badge i {
  font-size: 1rem;
}

/* ===== PRIORITY ALERTS ===== */
.priority-alerts {
  margin-bottom: 2rem;
}

.urgent-alert {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

@media (max-width: 480px) {
  .urgent-alert {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

.alert-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: #dc2626;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.alert-icon i {
  color: white;
  font-size: 1.25rem;
}

.alert-content {
  flex: 1;
}

.alert-content h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #dc2626;
}

.alert-content p {
  margin: 0;
  font-size: 0.875rem;
  color: #7f1d1d;
}

.btn-urgent {
  background: #dc2626;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-urgent:hover {
  background: #b91c1c;
}

/* ===== KPI SECTION ===== */
.kpi-section {
  margin-bottom: 2rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

@media (max-width: 640px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}

.kpi-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.kpi-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

@media (max-width: 480px) {
  .kpi-card {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    padding: 1rem;
  }
}

.kpi-icon {
  width: 3rem;
  height: 3rem;
  background: #f3f4f6;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-icon i {
  font-size: 1.5rem;
  color: #3b82f6;
}

.kpi-content {
  flex: 1;
}

@media (max-width: 480px) {
  .kpi-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

.kpi-number {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1;
}

.kpi-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.kpi-trend {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.5rem;
}

@media (max-width: 480px) {
  .kpi-trend {
    justify-content: center;
  }
}

.trend-value {
  font-size: 0.75rem;
  font-weight: 600;
  color: #059669;
}

.trend-label {
  font-size: 0.75rem;
  color: #6b7280;
}

.trending-up {
  color: #059669;
}

/* ===== ACTION SECTION ===== */
.action-section {
  margin-bottom: 2rem;
}

.action-section h2 {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
}

.action-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

@media (max-width: 640px) {
  .action-cards {
    grid-template-columns: 1fr;
  }
}

.action-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.action-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.action-card.primary {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #dbeafe 0%, #f8fafc 100%);
}

@media (max-width: 480px) {
  .action-card {
    padding: 1rem;
  }
}

.card-icon {
  width: 3rem;
  height: 3rem;
  background: #f3f4f6;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.action-card.primary .card-icon {
  background: #3b82f6;
}

.card-icon i {
  font-size: 1.5rem;
  color: #3b82f6;
}

.action-card.primary .card-icon i {
  color: white;
}

.card-content {
  flex: 1;
}

.card-content h3 {
  margin: 0 0 0.375rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
}

.card-content p {
  margin: 0 0 0.5rem 0;
  font-size: 0.875rem;
  color: #6b7280;
}

.card-badge {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  padding: 0.25rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.card-badge.urgent {
  background: #fef2f2;
  color: #dc2626;
}

.card-badge.master {
  background: #f3e8ff;
  color: #7c3aed;
}

.card-arrow {
  color: #9ca3af;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ===== CONDITIONS SECTION ===== */
.conditions-section {
  margin-bottom: 2rem;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-header h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
}

.section-header p {
  margin: 0;
  color: #6b7280;
}

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .conditions-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.condition-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.condition-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.condition-card.no-specialty-match {
  background: #f9fafb;
  border-color: #d1d5db;
}

@media (max-width: 480px) {
  .condition-card {
    padding: 1.25rem;
  }
}

.condition-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

@media (max-width: 480px) {
  .condition-header {
    flex-direction: column;
    gap: 0.75rem;
  }
}

.condition-title h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
}

.specialty-match {
  font-size: 0.75rem;
  font-weight: 500;
}

.match-perfect {
  color: #059669;
}

.match-good {
  color: #d97706;
}

.match-fair {
  color: #dc2626;
}

.match-none {
  color: #6b7280;
}

.overdue-badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: #fef2f2;
  color: #dc2626;
  padding: 0.25rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid #fecaca;
}

.condition-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stat {
  text-align: center;
}

.stat .number {
  display: block;
  font-size: 1.875rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1;
}

.stat .number.completed {
  color: #059669;
}

.stat .number.pending {
  color: #d97706;
}

.stat .label {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.375rem;
}

.condition-action {
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-sm {
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
}

.btn-primary {
  background: #ff0056;
  color: white;
}

.btn-primary:hover {
  background: oklch(0.58 0.246 16.439);
}

.time-estimate {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

.completion-status,
.specialty-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.completion-status {
  color: #059669;
}


/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 640px) {
  .desktop-only {
    display: none;
  }
}

@media (min-width: 641px) {
  .mobile-only {
    display: none;
  }
}

/* Touch improvements for mobile */
@media (hover: none) and (pointer: coarse) {
  .action-card:active {
    transform: scale(0.98);
    opacity: 0.8;
  }
  
  .btn:active {
    transform: scale(0.95);
  }
}
/* Learning Module Styles */

.learning-module-header {
  padding: 60px 20px 40px;
  text-align: center;
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 50%, #6366f1 100%);
  color: white;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.learning-module-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  animation: float 20s linear infinite;
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-30px) rotate(360deg); }
}

.module-hero {
  max-width: 800px;
  margin: 0 auto;
}

.hero-icon {
  margin-bottom: 20px;
}

.hero-icon svg {
  color: rgba(255, 255, 255, 0.9);
}

.learning-module-header h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-description {
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 30px;
}

/* Progress Overview */
.progress-overview {
  max-width: 600px;
  margin: 40px auto 0;
}

.progress-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 30px;
  color: #1d1d1f;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.progress-card h3 {
  margin: 0 0 25px 0;
  font-size: 24px;
  font-weight: 700;
  color: #1d1d1f;
  text-align: center;
}

/* Remove ::before animations from Continue Learning button */
.progress-card .btn-primary {
  position: static !important;
  overflow: visible !important;
}

.progress-card .btn-primary::before {
  display: none !important;
}

.progress-card .btn-primary:hover::before {
  display: none !important;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669, #047857);
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.progress-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  justify-content: center;
}

.progress-stats .stat {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: #374151;
  font-size: 18px;
}

.progress-stats .stat i {
  color: #10b981;
  font-size: 20px;
}

/* Get Started & Sign-in Prompts */
.get-started, .sign-in-prompt {
  text-align: center;
  margin-top: 30px;
}

/* Remove ::before animations from get-started buttons */
.get-started .btn-primary {
  position: static !important;
  overflow: visible !important;
}

.get-started .btn-primary::before {
  display: none !important;
}

.get-started .btn-primary:hover::before {
  display: none !important;
}

.sign-in-prompt p {
  margin-bottom: 20px;
  opacity: 0.9;
}

.sign-in-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.sign-in-prompt .btn {
  min-width: 160px;
  padding: 12px 24px;
  font-weight: 600;
}

/* Modules Overview */
.modules-overview {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px 60px;
  overflow: visible;
}

.modules-overview h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 40px;
  color: #1d1d1f;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 50px 30px;
  margin: 40px 0 40px 0;
  overflow: visible;
}

/* Module Cards */
.module-card {
  background: white;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 2px solid transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #10b981, #059669);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.module-card:hover::before {
  opacity: 1;
}

.module-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(59, 130, 246, 0.2);
}

.module-card.completed {
  border-color: #10b981;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  transform: scale(1.01);
}

.module-card.completed::before {
  background: linear-gradient(90deg, #10b981, #059669);
  opacity: 1;
}

.module-number {
  position: absolute;
  top: -28px;
  left: 32px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  font-size: 24px;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.module-number i {
  font-size: 24px;
}

.module-num {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.95);
  color: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Consistent health-focused colors for all modules */
.module-card .module-number {
  background: linear-gradient(135deg, #10b981, #059669);
}

.module-card .module-number i {
  color: white;
}

.module-card.completed .module-number {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  animation: pulse-success 2s ease-in-out infinite;
}

.module-card.completed .copd-journey-module-number {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  animation: pulse-success 2s ease-in-out infinite;
}

@keyframes pulse-success {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
  }
  50% { 
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.4);
  }
}

.module-card:hover .module-number {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.module-card:hover .copd-journey-module-number {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.module-content {
  margin-top: 20px;
  margin-bottom: 25px;
}

.module-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1d1d1f;
  line-height: 1.3;
}

.module-content p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 20px;
}

.module-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.module-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: #374151;
  font-size: 14px;
}

.module-features i {
  color: #ef4444;
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.module-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.module-actions .btn {
  flex: 1;
}

.module-actions i.text-success {
  color: #22c55e;
  font-size: 20px;
}

.locked {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  background: #f9fafb;
  border-radius: 8px;
  flex: 1;
  justify-content: center;
}

.locked i {
  font-size: 12px;
}

/* Learning Features */
.learning-features {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 80px 20px;
}

.learning-features h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 50px;
  color: #1d1d1f;
}

.features-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.feature-item {
  text-align: center;
  padding: 30px 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-2px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 26px;
  position: relative;
  transition: all 0.3s ease;
}

.feature-item .feature-icon {
  background: linear-gradient(135deg, #10b981, #059669);
}

.feature-item:hover .feature-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.feature-item h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1d1d1f;
}

.feature-item p {
  color: #6b7280;
  line-height: 1.6;
  font-size: 14px;
}

/* Button Styles for Learning Modules */
.btn-large {
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Enhanced module action buttons */
.module-actions .btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.module-actions .btn:hover {
  transform: translateY(-1px);
}

/* Override hover transform for btn-primary to match dashboard style */
.module-actions .btn-primary:hover {
  transform: none;
}

.module-actions .btn-primary {
  padding: 12px 30px;
  font-size: 17px;
  font-weight: 500;
  border-radius: 24px;
  text-decoration: none;
  transition: all 0.2s ease;
  background: oklch(0.64 0.246 16.439);
  border: none;
  color: white;
}

.module-actions .btn-primary:hover {
  background: oklch(0.58 0.246 16.439);
  color: white !important;
  text-decoration: none;
  transform: none;
}

/* Ensure no ::before animations on Start Module buttons */
.module-actions .btn-primary {
  position: static !important;
  overflow: visible !important;
}

.module-actions .btn-primary::before {
  display: none !important;
}

.module-actions .btn-primary:hover::before {
  display: none !important;
}

.module-actions .btn-outline,
.section-actions .btn-outline {
  border: 2px solid #e5e7eb;
  background: white;
  color: #374151;
}

.module-actions .btn-outline:hover,
.section-actions .btn-outline:hover {
  border-color: #3b82f6;
  color: #1d4ed8;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .learning-module-header {
    padding: 40px 15px 30px;
  }
  
  .learning-module-header h1 {
    font-size: 32px;
  }
  
  .hero-description {
    font-size: 16px;
  }
  
  .progress-card {
    padding: 30px 25px;
  }
  
  .progress-card h3 {
    font-size: 20px;
  }
  
  .progress-stats {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
  
  .modules-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .module-card {
    padding: 25px 20px;
  }
  
  .modules-overview h2 {
    font-size: 28px;
  }
  
  .learning-features {
    padding: 60px 15px;
  }
  
  .learning-features h2 {
    font-size: 28px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .feature-item {
    padding: 25px 15px;
  }
  
  .sign-in-prompt {
    flex-direction: column;
  }
  
  .sign-in-prompt .btn {
    width: 100%;
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .module-actions {
    flex-direction: column;
  }
  
  .module-actions .btn {
    width: 100%;
  }
}

/* Module Page Styles */
.module-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #e3f2fd 100%);
}

/* Module Header */
.module-header {
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 50%, #6366f1 100%);
  color: white;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

.module-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  animation: float 20s linear infinite;
}

.module-breadcrumb {
  max-width: 1200px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  position: relative;
  z-index: 2;
}

.breadcrumb-link {
  color: white !important;
  text-decoration: underline !important;
  transition: color 0.3s ease;
}

.breadcrumb-link:hover {
  color: rgba(255, 255, 255, 0.9) !important;
}

.current-module {
  color: white;
  font-weight: 600;
}

.module-hero {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 30px;
  position: relative;
  z-index: 2;
}

.module-number-large {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
}

/* COPD Journey specific module number styling - like module-1 page */
.copd-journey-module-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid white;
  position: absolute;
  top: -40px;
  left: 32px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  z-index: 10;
  transition: all 0.3s ease;
}

.copd-journey-module-number i {
  font-size: 32px;
  color: white;
}

.copd-journey-module-number .module-num {
  position: absolute;
  bottom: -5px;
  right: -5px;
  background: #e74c3c;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  border: 3px solid white;
}

.module-number-large i {
  font-size: 32px;
  color: white;
}

.module-number-large .number {
  position: absolute;
  bottom: -5px;
  right: -5px;
  background: #e74c3c;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  border: 3px solid white;
}

.module-title h1 {
  font-size: 42px;
  font-weight: 800;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.module-description {
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.9;
  margin: 0;
  max-width: 600px;
}

/* Progress Tracker */
.module-progress-tracker {
  background: white;
  padding: 30px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.progress-steps {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.progress-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: #e5e7eb;
  z-index: 1;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
  background: white;
  padding: 0 15px;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  background: #e5e7eb;
  color: #6b7280;
  transition: all 0.3s ease;
}

.progress-step.active .step-number {
  background: #3b82f6;
  color: white;
  transform: scale(1.1);
}

.progress-step.completed .step-number {
  background: #10b981;
  color: white;
}

.progress-step span {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  text-align: center;
  transition: color 0.3s ease;
}

.progress-step.active span {
  color: #3b82f6;
  font-weight: 600;
}

.progress-step.completed span {
  color: #10b981;
}

/* Module Content */
.module-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.content-section {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.content-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-container {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.content-header {
  text-align: center;
  margin-bottom: 40px;
}

.content-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 15px;
}

.content-header p {
  font-size: 18px;
  color: #6b7280;
  margin: 0;
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.content-text h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 20px;
}

.lead {
  font-size: 20px;
  line-height: 1.6;
  color: #374151;
  margin-bottom: 30px;
}

.key-facts {
  background: #f8fafc;
  padding: 30px;
  border-radius: 16px;
  border-left: 4px solid #10b981;
}

.key-facts h3 {
  color: #1d1d1f;
  margin-bottom: 20px;
  font-size: 20px;
}

.fact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.fact-list li:last-child {
  border-bottom: none;
}

.fact-list i {
  color: #10b981 !important;
  font-size: 20px;
  margin-top: 2px;
}

/* Enhanced fact list icons */
.fact-list i.bi-check-circle-fill {
  color: #10b981 !important;
}

.fact-list span {
  color: #374151;
  line-height: 1.5;
}

/* Lung Animations */
.lung-intro-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.lung-svg {
  width: 100%;
  max-width: 400px;
  height: auto;
}

.lung-svg .lung {
  transform-origin: center;
}

.breathing-lungs .left-lung,
.breathing-lungs .right-lung {
  transform-origin: center;
}

.breathing-text {
  text-align: center;
  color: #6b7280;
  font-size: 16px;
  font-style: italic;
}

/* Interactive Lung Container */
.interactive-lung-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

/* Hotspot interaction improvements - COMPLETELY STATIC APPROACH */
.hotspot-group {
  cursor: pointer;
  /* Completely disable all transforms and animations */
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

.hotspot-click-area {
  cursor: pointer;
  /* Lock position absolutely */
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

.hotspot-visual {
  pointer-events: none;
  /* Default state - no transforms at all */
  transform: none !important;
  animation: none !important;
  /* Only allow opacity and filter changes, NO transform */
  transition: opacity 0.2s ease, filter 0.2s ease;
}

/* Hover effect - NO TRANSFORM AT ALL, only visual changes */
.hotspot-group:hover .hotspot-visual {
  /* NO SCALE! Only brightness and opacity */
  opacity: 1 !important;
  filter: brightness(1.5) !important;
  /* Explicitly prevent any transform */
  transform: none !important;
}

/* Active/clicked state - NO TRANSFORM AT ALL */
.hotspot-group.highlighted .hotspot-visual {
  opacity: 1 !important;
  filter: brightness(1.6) drop-shadow(0 0 8px rgba(52, 152, 219, 0.8)) !important;
  /* Explicitly prevent any transform */
  transform: none !important;
}

.lung-diagram {
  background: #f8fafc;
  border-radius: 16px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.interactive-lung-svg {
  width: 100%;
  max-width: 600px;
  height: auto;
  cursor: pointer;
}

/* Info Panel */
.info-panel {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 30px;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.info-content h3 {
  color: #1d1d1f;
  font-size: 20px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-content i {
  color: #3b82f6;
}

.info-content ul {
  margin: 15px 0;
  padding-left: 20px;
}

.info-content li {
  margin-bottom: 8px;
  line-height: 1.5;
  color: #374151;
}

.default-info {
  text-align: center;
  color: #6b7280;
}

.default-info h3 {
  color: #1d1d1f;
  margin-bottom: 15px;
}

/* Comparison Grid */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.comparison-item {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.comparison-item.healthy {
  border-top: 4px solid #10b981;
}

.comparison-item.copd {
  border-top: 4px solid #f59e0b;
}

.comparison-item h3 {
  margin-bottom: 20px;
  font-size: 20px;
}

.lung-visual {
  margin-bottom: 25px;
}

.comparison-svg {
  width: 100%;
  max-width: 200px;
  height: auto;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: #374151;
}

.feature-list i {
  width: 20px;
  text-align: center;
  font-size: 16px;
}

/* Enhanced Bootstrap Icon Colors */
.feature-list i.text-success {
  color: #10b981 !important;
}

.feature-list i.text-danger {
  color: #ef4444 !important;
}

.feature-list i.text-warning {
  color: #f59e0b !important;
}

/* Comparison item improvements */
.comparison-item h3 i.text-success {
  color: #10b981 !important;
}

.comparison-item h3 i.text-danger {
  color: #ef4444 !important;
}

.comparison-item h3 i.text-warning {
  color: #f59e0b !important;
}

/* Key Differences */
.key-differences {
  margin-bottom: 40px;
}

.key-differences h3 {
  text-align: center;
  font-size: 28px;
  color: #1d1d1f;
  margin-bottom: 30px;
}

.difference-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.difference-card {
  background: white;
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.difference-card:hover {
  transform: translateY(-5px);
}

.difference-card .card-icon {
  font-size: 38px;
  color: #ff0056;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.difference-card h4 {
  color: #1d1d1f;
  font-size: 18px;
  margin-bottom: 15px;
}

.difference-card p {
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

/* Breathing Exercise */
.breathing-exercise {
  text-align: center;
}

.exercise-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.exercise-btn {
  padding: 15px 25px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.exercise-btn.healthy {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.exercise-btn.healthy:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.exercise-btn.copd {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.exercise-btn.copd:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.exercise-btn.stop {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.exercise-btn.stop:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.breathing-visualization {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.breathing-lung {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f8fafc;
  border-radius: 16px;
  padding: 30px;
}

.breathing-svg {
  width: 100%;
  max-width: 300px;
  height: auto;
}

.lung-shape {
  transition: all 0.5s ease;
}

.breathing-indicator {
  transition: all 0.5s ease;
}

.breathing-text {
  font-size: 16px;
  fill: #6b7280;
  font-weight: 500;
}

.breathing-feedback {
  background: white;
  border-radius: 16px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.feedback-healthy h4,
.feedback-copd h4 {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
}

.feedback-healthy h4 i {
  color: #10b981 !important;
  font-size: 20px;
}

.feedback-copd h4 i {
  color: #ef4444 !important;
  font-size: 20px;
}

.feedback-healthy ul,
.feedback-copd ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.feedback-healthy li,
.feedback-copd li {
  margin-bottom: 12px;
  color: #374151;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feedback-healthy li i {
  color: #10b981 !important;
  font-size: 14px;
  width: 16px;
  text-align: center;
}

.feedback-copd li i {
  color: #ef4444 !important;
  font-size: 14px;
  width: 16px;
  text-align: center;
}

.feedback-healthy li:last-child,
.feedback-copd li:last-child {
  margin-bottom: 0;
}

/* Initial Instructions Styling */
.initial-instructions {
  padding: 20px 0;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 20px;
}

.initial-instructions h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1d1d1f;
}

.initial-instructions h4 i {
  color: #3b82f6 !important;
  font-size: 20px;
}

.initial-instructions p {
  color: #6b7280;
  line-height: 1.6;
  font-size: 14px;
}

.instruction-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid transparent;
}

.badge-success {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #065f46;
  border-color: #10b981;
}

.badge-warning {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border-color: #f59e0b;
}

.badge i {
  font-size: 12px;
}

.exercise-tips {
  background: #f8fafc;
  border-radius: 16px;
  padding: 30px;
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
}

.exercise-tips h3 {
  color: #1d1d1f;
  margin-bottom: 15px;
}

.exercise-tips p {
  color: #374151;
  line-height: 1.6;
  margin: 0;
}

/* Section Actions */
.section-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #e5e7eb;
}

.section-actions .btn {
  min-width: 150px;
  padding: 12px 30px;
  font-size: 17px;
  font-weight: 500;
  border-radius: 24px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.section-actions .btn:hover {
  transform: none;
}

/* Section actions btn-primary styling to match dashboard */
.section-actions .btn-primary {
  background: oklch(0.64 0.246 16.439);
  color: white;
  border: none;
}

.section-actions .btn-primary:hover {
  background: oklch(0.58 0.246 16.439);
  color: white !important;
  text-decoration: none;
}

/* Remove ::before animations from section-actions buttons */
.section-actions .btn-primary {
  position: static !important;
  overflow: visible !important;
}

.section-actions .btn-primary::before {
  display: none !important;
}

.section-actions .btn-primary:hover::before {
  display: none !important;
}

/* Module Completion Overlay */
.module-completion-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.completion-content {
  background: white;
  border-radius: 20px;
  padding: 50px;
  text-align: center;
  max-width: 500px;
  margin: 20px;
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.completion-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  animation: bounce 1s ease infinite;
}

.completion-icon i {
  color: white;
  font-size: 36px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.completion-content h2 {
  color: #1d1d1f;
  font-size: 28px;
  margin-bottom: 15px;
}

.completion-content p {
  color: #6b7280;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 30px;
}

.completion-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.completion-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.completion-stats .stat i {
  color: #10b981;
  font-size: 24px;
}

.completion-stats .stat span {
  color: #374151;
  font-size: 14px;
  font-weight: 500;
}

.continue-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.continue-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

/* Breathing Struggle Animation */
@keyframes breathing-struggle {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .module-hero {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .module-title h1 {
    font-size: 32px;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .interactive-lung-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  
  .breathing-visualization {
    grid-template-columns: 1fr;
  }
  
  .exercise-controls {
    flex-direction: column;
    align-items: center;
  }
  
  .section-actions {
    flex-direction: column-reverse;
  }
  
  .section-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Ensure back button maintains black text on mobile */
  .section-actions .btn-outline {
    color: #374151 !important;
    border-color: #e5e7eb !important;
    background: white !important;
  }
  
  .section-actions .btn-outline:hover,
  .section-actions .btn-outline:focus,
  .section-actions .btn-outline:active {
    color: #1d4ed8 !important;
    border-color: #3b82f6 !important;
    background: white !important;
  }
  
  /* Compact mobile progress design */
  .progress-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
    padding: 0 10px;
  }
  
  .progress-steps::before {
    display: none;
  }
  
  .progress-step {
    padding: 8px 4px;
    gap: 6px;
  }
  
  .step-number {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  
  .progress-step span {
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .progress-step.active .step-number {
    transform: scale(1.05);
  }
}

@media (max-width: 480px) {
  .section-container {
    padding: 25px 20px;
  }
  
  .module-header {
    padding: 30px 20px;
  }
  
  .module-progress-tracker {
    padding: 15px 10px;
  }
  
  /* Even more compact progress for very small screens */
  .progress-steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    padding: 0 5px;
  }
  
  .progress-step {
    padding: 6px 2px;
    gap: 4px;
  }
  
  .step-number {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  
  .progress-step span {
    font-size: 10px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .completion-content {
    padding: 30px 25px;
  }
  
  .exercise-btn {
    padding: 12px 20px;
    font-size: 14px;
  }
}
/* Print Styles - Extracted from inline styles */

@media print {
  /* Hide navigation and UI elements */
  .navbar,
  .nav,
  .actions,
  .dashboard-actions,
  .assessment-actions,
  .btn,
  .flash,
  .ad-container,
  .coming-soon-section,
  .sms-subscription-section,
  .feature-preview,
  .audio-section,
  .audio-player,
  .save-results-section {
    display: none !important;
  }
  
  /* Page setup */
  @page {
    margin: 1in;
    size: auto;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000 !important;
    background: white !important;
  }
  
  /* Typography for print */
  h1 {
    font-size: 18pt;
    font-weight: bold;
    margin-bottom: 12pt;
    page-break-after: avoid;
  }
  
  h2 {
    font-size: 16pt;
    font-weight: bold;
    margin-top: 12pt;
    margin-bottom: 8pt;
    page-break-after: avoid;
  }
  
  h3 {
    font-size: 14pt;
    font-weight: bold;
    margin-top: 10pt;
    margin-bottom: 6pt;
    page-break-after: avoid;
  }
  
  h4, h5, h6 {
    font-size: 12pt;
    font-weight: bold;
    margin-top: 8pt;
    margin-bottom: 4pt;
    page-break-after: avoid;
  }
  
  p, li {
    font-size: 11pt;
    line-height: 1.3;
    margin-bottom: 6pt;
  }
  
  /* Assessment specific print styles */
  .assessment-results,
  .adl-results {
    page-break-inside: avoid;
  }
  
  .condition-card {
    border: 1px solid #ccc !important;
    margin-bottom: 12pt;
    padding: 8pt;
    page-break-inside: avoid;
  }
  
  .score-display,
  .total-score {
    border: 2px solid #000 !important;
    padding: 6pt;
    margin: 6pt 0;
    font-weight: bold;
  }
  
  .likelihood-score,
  .score-number {
    font-weight: bold;
    font-size: 14pt;
  }
  
  /* Charts and visualizations */
  .chart-container {
    display: none !important;
  }
  
  /* Tables */
  table {
    border-collapse: collapse;
    width: 100%;
    margin: 12pt 0;
  }
  
  th, td {
    border: 1px solid #ccc;
    padding: 4pt 6pt;
    text-align: left;
  }
  
  th {
    background: #f0f0f0 !important;
    font-weight: bold;
  }
  
  /* Lists */
  ul, ol {
    margin: 6pt 0;
    padding-left: 20pt;
  }
  
  li {
    margin-bottom: 3pt;
  }
  
  /* Links */
  a {
    color: #000 !important;
    text-decoration: underline;
  }
  
  /* Show URLs after links */
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #666;
  }
  
  /* Don't show URLs for internal links */
  a[href^="#"]:after,
  a[href^="/"]:after {
    content: "";
  }
  
  /* Explanation sections */
  .explanation-section {
    margin: 8pt 0;
    padding: 6pt;
    border-left: 3px solid #ccc;
  }
  
  .supporting-factors,
  .opposing-factors {
    margin: 4pt 0;
  }
  
  .factor-answer {
    font-style: italic;
  }
  
  /* Disclaimer */
  .disclaimer {
    border-top: 1px solid #ccc;
    margin-top: 12pt;
    padding-top: 8pt;
    font-size: 10pt;
    color: #666 !important;
  }
  
  /* Page breaks */
  .page-break-before {
    page-break-before: always;
  }
  
  .page-break-after {
    page-break-after: always;
  }
  
  .no-page-break {
    page-break-inside: avoid;
  }
  
  /* BMI specific print styles */
  .bmi-results {
    page-break-inside: avoid;
    border: 1px solid #ccc !important;
    padding: 8pt;
    margin: 12pt 0;
  }
  
  .bmi-score {
    font-size: 16pt;
    font-weight: bold;
    text-align: center;
    margin: 8pt 0;
  }
  
  .bmi-category {
    text-align: center;
    padding: 6pt;
    margin: 6pt 0;
    border: 1px solid #ccc !important;
  }
  
  /* Treatment info print styles */
  .treatment-info {
    page-break-inside: avoid;
    margin: 12pt 0;
    padding: 8pt;
    border: 1px solid #ccc;
  }
  
  .progress-bar {
    display: none !important;
  }
}
/* CSS Utilities - Replaces inline styles */

/* CSS Custom Properties for Dynamic Colors */
:root {
  --dynamic-color: #0071e3;
  --success-color: #34c759;
  --warning-color: #ffcc00;
  --danger-color: #ff3b30;
  --orange-color: #ff9500;
  --light-bg: #f5f5f7;
  --text-secondary: #6e6e73;
  --border-light: #d2d2d7;
}

/* Dynamic Color Classes */
.dynamic-color {
  color: var(--dynamic-color);
}

.dynamic-border {
  border-color: var(--dynamic-color);
}

.dynamic-bg {
  background-color: var(--dynamic-color);
}

.dynamic-bg-light {
  background-color: rgba(from var(--dynamic-color, #f5f5f7) r g b / 0.15);
  /* Fallback for older browsers */
  background-color: var(--dynamic-color-light, rgba(245, 245, 247, 0.15));
}

/* Visibility Utilities */
.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

.inline {
  display: inline !important;
}

.inline-block {
  display: inline-block !important;
}

.flex {
  display: flex !important;
}

/* Layout Utilities */
.chart-container {
  height: 300px;
  position: relative;
}

.audio-section {
  text-align: center;
  margin: 20px 0;
}

.audio-player {
  margin-top: 15px;
  text-align: center;
}

.audio-element {
  width: 100%;
  max-width: 400px;
}

.center-text {
  text-align: center;
}

.no-margin {
  margin: 0;
}

.margin-top-20 {
  margin-top: 20px;
}

.margin-15 {
  margin: 15px 0;
}

.padding-40 {
  padding: 40px;
}

.padding-12 {
  padding: 12px;
}

/* Form Utilities */
.form-section {
  margin: 15px 0;
  padding: 12px;
  background: var(--light-bg);
  border-radius: 8px;
}

.form-hint {
  color: var(--text-secondary);
}

.danger-button {
  background: var(--danger-color);
  color: white;
  border-color: var(--danger-color);
}

/* Progress Bar Utilities */
.progress-full {
  width: 100%;
}

.progress-animated {
  transition: width 0.3s ease;
}

.progress-instant {
  transition: none;
}

/* Text Utilities */
.text-secondary {
  color: var(--text-secondary);
}

.text-underline {
  text-decoration: underline;
}

.text-light {
  color: var(--text-secondary);
}

/* Spacing Utilities */
.space-y-10 > * + * {
  margin-top: 10px;
}

.space-y-15 > * + * {
  margin-top: 15px;
}

.space-y-20 > * + * {
  margin-top: 20px;
}

/* Score Category Colors - Dynamic via CSS Custom Properties */
.score-minimal {
  --dynamic-color: #28a745;
}

.score-mild {
  --dynamic-color: #ffc107;
}

.score-moderate {
  --dynamic-color: #fd7e14;
}

.score-severe {
  --dynamic-color: #dc3545;
}

/* BMI Category Colors */
.bmi-underweight {
  --dynamic-color: #007aff;
}

.bmi-normal {
  --dynamic-color: #34c759;
}

.bmi-overweight {
  --dynamic-color: #ff9500;
}

.bmi-obese {
  --dynamic-color: #ff3b30;
}

/* Chart and Data Visualization */
.score-display {
  color: var(--dynamic-color);
  border-color: var(--dynamic-color);
}

.score-category {
  background-color: rgba(from var(--dynamic-color, #f5f5f7) r g b / 0.15);
  /* Fallback for older browsers */
  background-color: var(--dynamic-color-light, rgba(245, 245, 247, 0.15));
  border-color: var(--dynamic-color);
  color: var(--dynamic-color);
}

/* Feature Preview Styles */
.feature-preview {
  background: var(--light-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}

.feature-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.coming-soon-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Print Specific Utilities */
@media print {
  .no-print {
    display: none !important;
  }
  
  .print-only {
    display: block !important;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* Global Font Family */
* {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
}

/* Force asset recompilation for MG-ADL styles */

/* H1 Styling - only when child of a classed parent */
.adl-header h1,
[class] h1 {
  font-weight: 800;
  font-size: 48px;
}

/* Bootstrap Icons Color Adjustments */
.bi {
  display: inline-block;
  vertical-align: middle;
  font-size: 1.1em;
}

/* Default icon colors */
.bi {
  color: currentColor;
}

/* Icons on dark backgrounds */
.btn-primary .bi,
.flash-notice .bi,
.flash-alert .bi,
.nav-dropdown-toggle .bi,
.score-severe .bi {
  color: #ffffff;
}

/* Navigation */
.top-navigation {
  background: white;
  border-bottom: 1px solid #e8e8ed;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand .brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.nav-brand .brand-link:hover {
  opacity: 0.8;
}

.nav-logo {
  height: 32px;
  width: auto;
}

.brand-text {
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: oklch(0.208 0.042 265.755);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #1d1d1f;
}

.nav-links .btn-small {
  padding: 8px 20px;
  font-size: 14px;
}

.nav-links .btn-primary {
  color: white !important;
}

.nav-links .btn-primary:hover {
  color: white !important;
}

/* Dropdown Styles */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: oklch(0.208 0.042 265.755);
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s ease;
}

.nav-dropdown-toggle:hover {
  color: #1d1d1f;
}

.nav-dropdown-toggle svg {
  transition: transform 0.3s ease;
}

.nav-dropdown.active .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  min-width: 200px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.nav-dropdown.active .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 20px;
  color: #1d1d1f;
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.dropdown-item:first-child {
  border-radius: 12px 12px 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 12px 12px;
}

.dropdown-item:hover {
  background-color: #f5f5f7;
  color: #ff0056;
}

.dropdown-divider {
  margin: 0;
  border: none;
  border-top: 1px solid #e5e5e7;
}

.main-content {
  min-height: calc(100vh - 70px);
}

.main-content a:not(.btn) {
  color: #ff0056;
  transition: color 0.3s ease;
}

.main-content a:not(.btn):hover {
  color: oklch(0.58 0.246 16.439);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: #1d1d1f;
  border-radius: 3px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.mobile-menu-toggle.active .hamburger-line:first-child {
  transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-container {
    padding: 15px;
    position: relative;
  }
  
  .nav-logo {
    height: 28px;
  }
  
  .brand-text {
    font-size: 18px;
  }
  
  /* Show mobile menu toggle on mobile */
  .mobile-menu-toggle {
    display: flex;
  }
  
  /* Hide desktop nav links on mobile by default */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 80px 20px 20px;
    gap: 30px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 9;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  }
  
  /* Show mobile menu when open */
  .mobile-menu-open .nav-links {
    transform: translateX(0);
  }
  
  /* Style mobile nav links */
  .nav-links a {
    font-size: 18px;
    color: #1d1d1f;
    padding: 15px 30px;
    text-align: center;
    width: 100%;
    max-width: 300px;
    border-radius: 12px;
    transition: background-color 0.3s ease;
    position: relative;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
  }
  
  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    background-color: #e8e8ed;
  }
  
  .nav-links a:last-child::after,
  .nav-dropdown-menu a::after {
    display: none;
  }
  
  .nav-links a:hover {
    background-color: #f5f5f7;
  }
  
  /* Mobile dropdown adjustments */
  .nav-dropdown {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
  }
  
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 12px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    box-sizing: border-box;
    font-size: 18px;
    color: #1d1d1f;
    background: transparent;
    border: none;
    text-align: center;
  }
  
  .nav-dropdown-toggle:hover {
    background-color: #f5f5f7;
  }
  
  .nav-dropdown-menu {
    position: static;
    margin-top: 10px;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: #f8f9fa;
    border-radius: 12px;
    width: 100%;
    margin-bottom: 20px;
    margin-left: 0;
    margin-right: 0;
    padding: 10px 0;
  }
  
  .nav-dropdown-menu .dropdown-item {
    font-size: 16px;
    color: #6e6e73;
    padding: 12px 30px;
    text-align: center;
    width: 100%;
    display: block;
    margin: 0;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    text-decoration: none;
  }
  
  .nav-dropdown-menu .dropdown-item:hover {
    background-color: #e8e9eb;
    color: #1d1d1f;
  }
  
  .nav-dropdown:not(.active) .nav-dropdown-menu {
    display: none;
  }
  
  /* Remove divider line before sign out */
  .nav-dropdown-menu .dropdown-divider {
    display: none;
  }
  
  /* Special styling for sign-up button in mobile nav */
  .nav-links .btn-primary {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
    box-sizing: border-box;
    text-align: center;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 12px;
    background: #ff0056;
    color: white;
    border: none;
    font-weight: 500;
  }
  
  /* Ensure all nav items have consistent spacing */
  .nav-links > * {
    margin-bottom: 0;
  }
  
  /* Add consistent spacing between nav items */
  .nav-links > .nav-dropdown,
  .nav-links > a {
    margin-bottom: 10px;
  }
  
  .nav-links > *:last-child {
    margin-bottom: 0;
  }
  
  /* Prevent body scroll when mobile menu is open */
  body.mobile-menu-open {
    overflow: hidden;
  }
}

/* Language Switcher Styles */
.language-switcher {
  margin-left: 10px;
}

.flag-icon, .flag-icon-small {
  margin-right: 8px;
  flex-shrink: 0;
}

/* Icons on light backgrounds */
.btn-secondary .bi,
.condition-card .bi,
.assessment-card .bi {
  color: #1d1d1f;
}

/* Status-specific icon colors */
.bi-circle-fill.text-success { color: #34c759; }
.bi-circle-fill.text-warning { color: #ffcc00; }
.bi-circle-fill.text-danger { color: #ff3b30; }
.bi-circle-fill.text-orange { color: #ff9500; }

/* Icon animations */
.bi-hourglass-split {
  animation: spin 2s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Global Input Focus Styling */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
select,
textarea,
.form-input {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus,
.form-input:focus {
  outline: none;
  border-color: #0071e3 !important;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1) !important;
}

/* Override browser default invalid styling */
input:invalid,
textarea:invalid,
input:required:invalid,
textarea:required:invalid,
.form-input:invalid {
  border-color: #d2d2d7 !important;
  box-shadow: none !important;
}

/* Focus styling takes priority over invalid styling */
input:focus:invalid,
textarea:focus:invalid,
input:focus:required:invalid,
textarea:focus:required:invalid,
.form-input:focus:invalid {
  border-color: #0071e3 !important;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1) !important;
}

/* Mobile h1 overrides */
@media (max-width: 768px) {
  .adl-header h1,
  [class] h1 {
    font-size: 30px;
  }
}
