:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --background: #f3f4f6;
  --card-bg: #ffffff;
  --text: #111827;
  --text-light: #6b7280;
  --border: #e5e7eb;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  margin: 0;
  color: var(--text);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.main-title {
  text-align: center;
  color: var(--text);
  font-size: 16px;
  margin-bottom: 2rem;
}

.questionnaire-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.section:last-child {
  border-bottom: none;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.section-subtitle {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* Specialties Grid */
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.checkbox-container {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  background: #f9fafb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.checkbox-container:hover {
  background: #f3f4f6;
}

.checkbox-container input[type='checkbox'] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
}

/* Slider Styles */
.style-slider {
  margin-bottom: 1.5rem;
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.slider-container span {
  color: var(--text-light);
  font-size: 0.9rem;
  width: 120px;
}

.slider-with-labels {
  position: relative;
  width: 200px;
  margin: 0.5rem 0;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  padding: 0;
  margin-bottom: 10px;
  position: relative;
  width: 100%;
}

.slider-labels span {
  font-size: 0.75rem;
  color: var(--text-light);
  position: absolute;
  width: 20px;
  text-align: center;
  transform: translateX(-50%);
}

/* Position each number specifically */
.slider-labels span:nth-child(1) {
  left: 0%;
}
.slider-labels span:nth-child(2) {
  left: 25%;
}
.slider-labels span:nth-child(3) {
  left: 50%;
}
.slider-labels span:nth-child(4) {
  left: 75%;
}
.slider-labels span:nth-child(5) {
  left: 100%;
}

input[type='range'] {
  width: 100%;
  margin: 0;
  padding: 0;
}

input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-top: -8px;
}

input[type='range']::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .slider-with-labels {
    width: 150px;
  }

  .slider-labels span {
    font-size: 0.7rem;
  }
}

/* Preferences Grid */
.preferences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.preference-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.select-input {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--text);
  background-color: white;
  cursor: pointer;
}

.select-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.submit-button {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 2rem auto 0;
  padding: 1rem 2rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.submit-button:hover {
  background-color: var(--primary-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
  .specialties-grid {
    grid-template-columns: 1fr;
  }

  .preferences-grid {
    grid-template-columns: 1fr;
  }

  .questionnaire-card {
    padding: 1.5rem;
  }
}

/* Loading State */
.loading {
  text-align: center;
  padding: 2rem;
  color: var(--text-light);
}

/* Results Section */
.results-section {
  margin-top: 3rem;
}

.results-header {
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
  margin-top: 1rem;
}

.results-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem 0;
}

.results-count {
  font-size: 1rem;
  color: var(--text-light);
  margin: 0;
}

@media (max-width: 768px) {
  .results-header {
    margin-bottom: 1rem;
  }

  .results-title {
    font-size: 1.25rem;
  }
}

/* Coach Cards */
.coaches-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.coach-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 2px solid transparent;
  margin-bottom: 4px;
}

.coach-card.top-coach {
  border: 1px solid var(--primary);
}

.coach-summary {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  gap: 1rem;
  cursor: pointer;
}

.coach-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.coach-info {
  flex: 1;
  min-width: 0;
}

.name-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.name-section h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.top-badge {
  background: var(--primary);
  color: white;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.score-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.score-label {
  font-size: 0.875rem;
  color: var(--text-light);
  white-space: nowrap;
}

/* Score Bars */
.score-bar {
  background: var(--border);
  border-radius: 6px;
  height: 16px;
  overflow: hidden;
  width: 150px;
}

.score-fill {
  background: linear-gradient(
    90deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  height: 100%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: width 0.3s ease;
  white-space: nowrap;
  padding: 0 0.5rem;
}

/* Accordion Toggle */
.accordion-toggle {
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.chevron-icon {
  width: 20px;
  height: 20px;
  stroke: var(--text-light);
  stroke-width: 2;
  fill: none;
  transition: transform 0.3s ease;
}

.accordion-toggle.expanded .chevron-icon {
  transform: rotate(180deg);
}

/* Expanded Details */
.coach-details {
  display: none;
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--border);
  transition: all 0.3s ease;
}

.coach-details.expanded {
  display: block;
}

.match-details h4,
.coach-bio h4,
.coach-reviews h4 {
  margin: 1rem 0 0.5rem;
  font-size: 1rem;
  color: var(--text);
}

.scores-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.score-row span {
  flex: 0 0 120px;
  font-size: 0.875rem;
  color: var(--text-light);
}

.score-row .score-bar {
  flex: 1;
}

/* Reviews Section */
.coach-reviews {
  margin-top: 1rem;
}

.review {
  background: var(--background);
  padding: 0.75rem;
  border-radius: 6px;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .coach-summary {
    flex-wrap: wrap;
  }

  .score-section {
    max-width: 100%;
  }

  .score-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .score-row span {
    flex: none;
  }
}

/* Match Scores */
.match-scores {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.score-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.score-item label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

.score-bar {
  background: var(--border);
  border-radius: 4px;
  height: 24px;
  overflow: hidden;
}

.score-fill {
  background: var(--primary);
  height: 100%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: width 0.3s ease;
}

/* Reviews Section */
.reviews-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Error Message */
.error-message {
  text-align: center;
  padding: 2rem;
  background: #fee2e2;
  border-radius: 8px;
  margin: 1rem 0;
}

.error-message h3 {
  color: #dc2626;
  margin-bottom: 1rem;
}

.error-message .env-note {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

.retry-button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.retry-button:hover {
  background: var(--primary-dark);
}

/* No Results */
.no-results {
  text-align: center;
  padding: 2rem;
  background: #f3f4f6;
  border-radius: 8px;
}

/* Buttons */
.retry-button,
.back-to-top {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 1rem;
}

.back-to-top {
  display: block;
  margin: 2rem auto;
}

.retry-button:hover,
.back-to-top:hover {
  background: var(--primary-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
  .coach-header {
    flex-direction: column;
    text-align: center;
  }

  .coach-image {
    width: 120px;
    height: 120px;
  }
}

/* Add at the top of your existing CSS */
.page-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 100%;
  margin: 0 auto;
}

.questions-panel {
  padding: 1rem;
  background: var(--background);
}

.results-panel {
  padding: 2rem;
  background: var(--background);
}

/* Media query for larger screens */
@media (min-width: 1200px) {
  .page-container {
    grid-template-columns: minmax(400px, 600px) 1fr;
    height: 100vh;
  }

  .questions-panel {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
  }

  .results-panel {
    height: 100vh;
    overflow-y: auto;
  }
}

/* Add to your existing CSS */
.score-table {
  margin: 1rem 0;
  width: 100%;
  overflow-x: auto;
}

.score-table table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.score-table th,
.score-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.score-table th {
  background: #f8fafc;
  font-weight: 600;
  color: var(--text);
}

.score-table td:nth-child(2) {
  font-family: monospace;
  color: var(--text-light);
}

.score-table tr:hover {
  background: #f8fafc;
}

.score-bar {
  background: #e2e8f0;
  border-radius: 4px;
  height: 20px;
  overflow: hidden;
  width: 150px;
}

.score-fill {
  background: linear-gradient(
    90deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  height: 100%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: width 0.3s ease;
  white-space: nowrap;
  padding: 0 0.5rem;
}

@media (max-width: 768px) {
  .score-table {
    font-size: 0.9rem;
  }

  .score-bar {
    width: 100px;
    height: 16px;
  }

  .score-fill {
    height: 16px;
    font-size: 0.7rem;
    line-height: 16px;
  }
}

/* Add to your existing CSS */
.score-bar .score-fill:empty::before {
  content: 'N/A';
  color: var(--text-light);
  padding: 0 0.5rem;
}

.score-table td:nth-child(2) {
  font-family: monospace;
  color: var(--text-light);
}

/* Style for N/A text */
.score-table td:nth-child(2):contains('N/A') {
  color: var(--text-light);
  font-style: italic;
}

/* Environment Toggle Styles */
.env-toggle {
  display: flex;
  align-items: center;
  justify-self: right;
  gap: 0.5rem;
}

.env-label {
  font-size: 0.875rem;
}

.env-label.dev {
  color: #b45309; /* Amber/Yellow for dev */
}

.env-label.prod {
  color: #059669; /* Green for prod */
}

/* Toggle switch styling */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #b45309; /* Default dev color */
  transition: 0.4s;
  border-radius: 20px;
}

.toggle-slider:before {
  position: absolute;
  content: '';
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #059669; /* Prod color when toggled */
}

input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

.env-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: 100%;
}

.env-heading {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  height: 22px;
  display: flex;
  align-items: center;
}

.env-label-container {
  min-width: 85px;
  height: 22px;
  display: flex;
  align-items: center;
}

.env-label {
  font-size: 0.875rem;
  font-weight: 500;
}

.env-label.dev {
  color: #b45309; /* Amber/Yellow for dev */
}

.env-label.prod {
  color: #059669; /* Green for prod */
}

/* Modern toggle switch styling */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #b45309; /* Default dev color */
  transition: 0.3s;
  border-radius: 22px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.toggle-slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

input:checked + .toggle-slider {
  background-color: #059669; /* Prod color when toggled */
}

input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

/* Hover effects */
.toggle-switch:hover .toggle-slider {
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch:hover .toggle-slider:before {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.environment-section {
  background: #f8fafc;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 1px solid #e2e8f0;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.env-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: 22px; /* Match the toggle height */
}

.env-heading {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  height: 22px;
  display: flex;
  align-items: center;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
  display: flex;
  align-items: center;
}

.env-label-container {
  min-width: 85px;
  height: 22px;
  display: flex;
  align-items: center;
}

.env-label {
  font-size: 0.875rem;
  font-weight: 500;
  height: 22px;
  display: flex;
  align-items: center;
}

.env-label.dev {
  color: #b45309; /* Amber/Yellow for dev */
}

.env-label.prod {
  color: #059669; /* Green for prod */
}

.env-info {
  font-size: 0.75rem;
  color: #64748b;
}

/* Modern toggle switch styling */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #b45309; /* Default dev color */
  transition: 0.3s;
  border-radius: 22px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.toggle-slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

input:checked + .toggle-slider {
  background-color: #059669; /* Prod color when toggled */
}

input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

/* Hover effects */
.toggle-switch:hover .toggle-slider {
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch:hover .toggle-slider:before {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.close-all-button {
  position: fixed;
  bottom: 5rem;
  right: 2rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.close-all-button.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.close-all-button:hover {
  background: #f8fafc;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.close-icon {
  fill: currentColor;
}

/* Add this to your existing accordion styles to ensure smooth transitions */
.coach-details {
  transition: all 0.3s ease;
}

/* Compare Button */
.coach-actions {
  padding: 0.75rem;
  border-top: 1px solid var(--border);
}

.compare-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  color: var(--text);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.compare-button:hover {
  background: #f8fafc;
}

.compare-button.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Comparison Bar */
.comparison-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 1rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
}

.comparison-bar.visible {
  transform: translateY(0);
}

.selected-coaches {
  display: flex;
  gap: 1rem;
}

.selected-coach-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: #f8fafc;
  border-radius: 6px;
  font-size: 0.875rem;
}

.remove-coach {
  cursor: pointer;
  opacity: 0.6;
}

.remove-coach:hover {
  opacity: 1;
}

.compare-now-button {
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.compare-now-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Comparison Modal */
.comparison-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1100;
}

.comparison-modal.visible {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  padding: 0.5rem;
}

.comparison-grid {
  padding: 2rem;
}

.comparison-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
  text-align: center;
}

.coach-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.coach-comparison-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.metrics-label {
  font-weight: 500;
  color: var(--text-light);
  font-size: 0.875rem;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.comparison-row:last-child {
  border-bottom: none;
}

.metric-label {
  font-weight: 500;
  color: var(--text);
  text-align: center;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 150px;
}

.metric-icon {
  font-size: 1.25rem;
}

.score-cell {
  padding: 0 1rem;
}

.score-bar {
  background: var(--border);
  border-radius: 6px;
  height: 24px;
  overflow: hidden;
}

.score-fill {
  background: var(--primary);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  transition: width 0.3s ease;
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
  /* Coach Cards */
  .coach-summary {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .score-section {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .score-bar {
    width: 100%;
    height: 20px;
  }

  .score-fill {
    font-size: 0.75rem;
    height: 20px;
  }

  /* Comparison Bar */
  .comparison-bar {
    padding: 0.75rem;
  }

  .selected-coaches {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .selected-coach-pill {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

  .compare-now-button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  /* Comparison Modal */
  .modal-content {
    width: 95%;
    max-height: 95vh;
    margin: 1rem;
  }

  .comparison-header {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .comparison-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
    padding: 1rem 0.5rem;
  }

  .score-cell {
    padding: 0;
  }

  .metric-label {
    order: -1; /* Move label to top on mobile */
    justify-content: center;
  }

  .coach-comparison-avatar {
    width: 60px;
    height: 60px;
  }

  /* Close All Button */
  .close-all-button {
    bottom: 4.5rem;
    right: 1rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }

  /* Environment Toggle */
  .environment-section {
    padding: 0.5rem;
    margin-bottom: 1rem;
  }

  .env-toggle {
    gap: 0.5rem;
  }

  .env-heading {
    font-size: 0.75rem;
  }
}

/* Additional adjustments for very small screens */
@media (max-width: 480px) {
  .comparison-bar {
    flex-direction: column;
    gap: 0.5rem;
  }

  .selected-coaches {
    justify-content: center;
  }

  .modal-header h2 {
    font-size: 1rem;
  }

  .metric-label {
    font-size: 0.875rem;
    min-width: auto;
  }

  .score-fill {
    font-size: 0.75rem;
    height: 16px;
  }

  .score-bar {
    height: 16px;
  }
}

/* Ensure modal is scrollable on mobile */
@media (max-height: 700px) {
  .modal-content {
    max-height: 85vh;
  }

  .comparison-grid {
    padding: 1rem;
  }
}

/* Comparison Modal Score Bars */
.comparison-row .score-bar {
  height: 16px;
}

.comparison-row .score-fill {
  height: 16px;
  font-size: 0.7rem;
}

/* Coach Summary Score Bars */
.coach-summary .score-bar {
  height: 16px;
}

.coach-summary .score-fill {
  height: 16px;
  font-size: 0.7rem;
}

@media (max-width: 768px) {
  /* Score Bar Adjustments - Making heights consistent */
  .score-bar {
    height: 16px;
    width: 100%;
  }

  .score-fill {
    height: 16px;
    font-size: 0.7rem;
    line-height: 16px; /* Match height for vertical centering */
  }

  /* Comparison Modal Score Bars */
  .comparison-row .score-bar,
  .comparison-row .score-fill {
    height: 16px;
    line-height: 16px;
  }

  /* Coach Summary Score Bars */
  .coach-summary .score-bar,
  .coach-summary .score-fill {
    height: 16px;
    line-height: 16px;
  }
}

@media (max-width: 480px) {
  .score-bar,
  .score-fill {
    height: 16px;
    line-height: 16px;
  }
}

.site-header {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.site-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.env-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #f8fafc;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.env-heading {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin: 0;
}

.env-label-container {
  min-width: 85px;
}

/* If you want to keep the header fixed on desktop only */
@media (max-width: 768px) {
  .site-header {
    position: relative;
  }

  .header-container {
    padding: 0 1rem;
  }
}

/* Collapsible sections */
.collapsible {
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.collapsible-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  cursor: pointer;
}

.collapsible-header h4 {
  margin: 0;
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.chevron-icon {
  width: 20px;
  height: 20px;
  stroke: var(--text-light);
  stroke-width: 2;
  fill: none;
  transition: transform 0.3s ease;
}

.collapsible.expanded .chevron-icon {
  transform: rotate(180deg);
}

/* Adjust existing styles */
.coach-bio,
.coach-reviews {
  margin-top: 1rem;
}

.coach-bio p,
.review {
  margin: 0 0 1rem 0;
}

.review:last-child {
  margin-bottom: 0;
}

/* Header controls layout */
.header-controls {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Live Changes Toggle */
.live-changes-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toggle-label {
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 500;
}

/* Adjust existing header styles */
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 768px) {
  .header-controls {
    gap: 1rem;
  }

  .toggle-label {
    font-size: 0.75rem;
  }
}
