/* Ancestral Diet Explorer - Main Stylesheet */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: #000000;
  color: #ffffff;
}

/* Header */
.header {
  height: 70px;
  background: #000000;
  border-bottom: 1px solid #1a1a1a;
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 100;
  flex-shrink: 0;
}

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  margin-right: 16px;
  color: #d3d3d3;
  border-radius: 6px;
  transition: color 0.2s;
}

.sidebar-toggle:hover {
  color: #ffffff;
}

/* Desktop sidebar collapse button */
.sidebar-collapse-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  color: #d3d3d3;
  font-size: 14px;
  transition: all 0.2s;
  margin-left: auto;
}

.sidebar-collapse-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.header-content h1 {
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 2px;
  font-weight: 700;
}

.header-content p {
  font-size: 13px;
  color: #b3b3b3;
}

/* Main Content Layout */
.main-content {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
}

/* Sidebar Overlay (mobile) */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: #000000;
  border-right: 1px solid #1a1a1a;
  overflow-y: auto;
  padding: 12px;
  flex-shrink: 0;
  transition: width 0.3s ease, padding 0.3s ease;
  color: #d3d3d3;
}

.sidebar.collapsed {
  width: 48px;
  padding: 12px 8px;
  overflow: hidden;
}

.sidebar.collapsed .sidebar-content {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sidebar-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #1a1a1a;
}

.sidebar-header h2 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar.collapsed .sidebar-header h2 {
  display: none;
}

.sidebar-content {
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Content Area */
.content-area {
  flex: 1;
  display: flex;
  position: relative;
  padding: 20px;
  overflow: hidden;
  background: linear-gradient(to bottom, #1e3a5f 0%, #000000 100%);
}

/* Results Container (no-map version) */
.results-container {
  flex: 1;
  border-radius: 12px;
  overflow-y: auto;
  background: transparent;
  padding: 40px;
  color: #ffffff;
}

.results-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: #b3b3b3;
}

.results-placeholder .placeholder-icon {
  font-size: 72px;
  margin-bottom: 24px;
}

.results-placeholder h2 {
  font-size: 32px;
  color: #ffffff;
  margin-bottom: 12px;
  font-weight: 700;
}

.results-placeholder p {
  font-size: 16px;
  max-width: 400px;
  line-height: 1.6;
  color: #b3b3b3;
}

.results-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Mode Toggle */
.mode-toggle {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  background: #1a1a1a;
  padding: 3px;
  border-radius: 6px;
}

.mode-toggle button {
  flex: 1;
  padding: 8px 10px;
  border: none;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: #d3d3d3;
  transition: all 0.2s;
}

.mode-toggle button:hover {
  color: #ffffff;
}

.mode-toggle button.active {
  background: #1a1a1a;
  color: #ffffff;
  font-weight: 700;
}

/* Mode Panels */
.mode-panel {
  display: none;
}

.mode-panel.active {
  display: block;
}

/* Ancestry Search */
.ancestry-search-container {
  position: relative;
  margin-bottom: 12px;
}

.ancestry-search {
  width: 100%;
  padding: 10px 32px 10px 12px;
  border: 1px solid #333333;
  border-radius: 6px;
  font-size: 13px;
  background: #1a1a1a;
  color: #ffffff;
  transition: all 0.2s;
}

.ancestry-search:focus {
  outline: none;
  border-color: #1db954;
  background: #121212;
}

.ancestry-search::placeholder {
  color: #666666;
}

.search-clear-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #d3d3d3;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s;
  border-radius: 4px;
}

.search-clear-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* Collapsible Sections */
.collapsible-section {
  border: 1px solid #1a1a1a;
  border-radius: 6px;
  margin-bottom: 8px;
  overflow: hidden;
  background: #121212;
}

.collapsible-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: transparent;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

.collapsible-header:hover {
  background: rgba(255, 255, 255, 0.1);
}

.collapsible-header h3 {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.collapsible-header h3::before {
  font-size: 14px;
}

.collapsible-icon {
  font-size: 10px;
  color: #d3d3d3;
  transition: transform 0.2s;
}

.collapsible-section.open .collapsible-icon {
  transform: rotate(180deg);
}

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

.collapsible-section.open .collapsible-content {
  max-height: 500px;
}

.collapsible-inner {
  padding: 10px 12px;
  background: #121212;
}

/* Instructions */
.instructions {
  background: #e8f4f8;
  border-left: 3px solid #3498db;
  padding: 8px 10px;
  margin-bottom: 10px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.4;
  color: #2c3e50;
}

/* Family Section */
.family-section {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 10px;
}

.family-section h3 {
  font-size: 12px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.family-section h3::before {
  font-size: 14px;
}

.family-section.maternal h3::before {
  content: '\1F469';
}

.family-section.paternal h3::before {
  content: '\1F468';
}

/* Grandparent Input */
.grandparent-input {
  margin-bottom: 8px;
}

.grandparent-input:last-child {
  margin-bottom: 0;
}

.grandparent-input label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #d3d3d3;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.grandparent-input select {
  width: 100%;
  padding: 7px 8px;
  border: 1px solid #333333;
  border-radius: 5px;
  font-size: 12px;
  background: #1a1a1a;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s;
}

.grandparent-input select:hover {
  border-color: #555555;
}

.grandparent-input select:focus {
  outline: none;
  border-color: #1db954;
}

/* Genetics Info */
.genetics-info {
  background: #e8f4f8;
  border-left: 3px solid #3498db;
  padding: 8px 10px;
  margin-top: 10px;
  margin-bottom: 10px;
  border-radius: 4px;
  font-size: 10px;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 6px;
}

.genetics-info::before {
  content: '\2139\FE0F';
  font-size: 12px;
}

/* Ancestry Input */
.ancestry-input {
  margin-bottom: 10px;
}

.ancestry-input label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #d3d3d3;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ancestry-row {
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.ancestry-input select {
  flex: 1 1 0;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid #333333;
  border-radius: 5px;
  font-size: 12px;
  background: #1a1a1a;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s;
}

.ancestry-input select:hover {
  border-color: #555555;
}

.ancestry-input select:focus {
  outline: none;
  border-color: #1db954;
}

.ancestry-input input[type="number"] {
  flex: 0 0 45px;
  width: 45px;
  min-width: 45px;
  padding: 7px 2px;
  border: 1px solid #333333;
  border-radius: 5px;
  font-size: 12px;
  text-align: center;
  background: #1a1a1a;
  color: #ffffff;
  transition: all 0.2s;
}

.ancestry-input input[type="number"]:hover {
  border-color: #555555;
}

.ancestry-input input[type="number"]:focus {
  outline: none;
  border-color: #1db954;
}

.percent-label {
  font-weight: 600;
  color: #d3d3d3;
  font-size: 12px;
}

/* Percentage Total */
.percentage-total {
  background: #1a1a1a;
  padding: 8px;
  border-radius: 5px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
  border: 2px solid #333333;
  color: #d3d3d3;
}

.percentage-total.valid {
  background: rgba(29, 185, 84, 0.1);
  border-color: #1db954;
  color: #1db954;
}

.percentage-total.invalid {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
  color: #ef4444;
}

/* Buttons */
.btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: #1db954;
  color: #000000;
}

.btn-primary:hover {
  background: #1ed760;
  transform: scale(1.02);
}

.btn-primary:disabled {
  background: #333333;
  color: #666666;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: transparent;
  color: #d3d3d3;
  border: 1px solid #333333;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: #555555;
}

/* Selected Regions */
.selected-regions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #ecf0f1;
}

.selected-regions h3 {
  font-size: 11px;
  color: #ffffff;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.region-tag {
  display: inline-block;
  background: #1a1a1a;
  padding: 4px 12px;
  margin: 2px;
  border-radius: 12px;
  font-size: 10px;
  color: #d3d3d3;
  border: 1px solid #333333;
  transition: all 0.2s;
}

.region-tag:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Diet Panel */
.diet-panel {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  bottom: 20px;
  width: 380px;
  max-width: calc(100% - 40px);
  overflow: hidden;
  z-index: 500;
}

.diet-panel.visible {
  display: flex;
  flex-direction: column;
}

.diet-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8f9fa;
  border-bottom: 1px solid #e1e4e8;
  cursor: pointer;
  flex-shrink: 0;
}

.diet-panel-title {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
}

.diet-panel-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.diet-collapse-btn {
  background: none;
  border: none;
  font-size: 12px;
  color: #7f8c8d;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.diet-collapse-btn:hover {
  background: #ecf0f1;
  color: #2c3e50;
}

.diet-panel.collapsed .diet-collapse-btn {
  transform: rotate(-90deg);
}

.diet-panel-content {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
  transition: flex 0.3s ease, padding 0.3s ease;
}

.diet-panel.collapsed .diet-panel-content {
  flex: 0;
  padding: 0 20px;
  overflow: hidden;
}

.diet-panel.collapsed .diet-panel-header {
  border-bottom: none;
}

.diet-panel.collapsed {
  bottom: auto;
  height: auto;
}

.diet-panel h2 {
  font-size: 32px;
  margin-bottom: 8px;
  color: #ffffff;
  font-weight: 700;
}

.diet-panel .subtitle {
  font-size: 14px;
  color: #b3b3b3;
  margin-bottom: 14px;
}

.diet-section {
  margin-bottom: 24px;
}

.diet-section h3 {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.diet-section p {
  font-size: 14px;
  line-height: 1.6;
  color: #d3d3d3;
}

.food-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.food-item {
  background: #1a1a1a;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  color: #ffffff;
  border: 1px solid #333333;
  transition: all 0.2s;
}

.food-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #555555;
}

.macro-bar {
  display: flex;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.macro-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #000000;
}

.macro-carbs {
  background: #1db954;
}

.macro-protein {
  background: #ff6b6b;
}

.macro-fat {
  background: #ffd93d;
  color: #000000;
}

.close-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: #7f8c8d;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.close-btn:hover {
  background: #fadbd8;
  color: #e74c3c;
}

/* Tooltip styling for hover */
.region-tooltip {
  background: white;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  padding: 8px 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  pointer-events: none;
  transition: none !important;
  opacity: 1 !important;
}

.region-tooltip::before {
  border-top-color: white;
}

.leaflet-tooltip {
  transition: none !important;
}

/* Scrollbar styling */
.sidebar::-webkit-scrollbar,
.content-area::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track,
.content-area::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb,
.content-area::-webkit-scrollbar-thumb {
  background: #333333;
  border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.content-area::-webkit-scrollbar-thumb:hover {
  background: #555555;
}

/* Genetic Adaptations Styling */
.genetic-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid #1a1a1a;
}

.genetic-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.genetic-section h3::before {
  content: '\1F9EC';
  font-size: 20px;
}

.genetic-trait {
  background: linear-gradient(135deg, #1db954 0%, #1ed760 100%);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  color: #000000;
  box-shadow: 0 2px 8px rgba(29, 185, 84, 0.3);
}

.genetic-trait h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.genetic-trait .phenotype {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  opacity: 0.95;
}

.genetic-trait .probability {
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 8px;
  font-style: italic;
}

.genetic-trait .recommendation {
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.9;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px;
  border-radius: 6px;
  margin-top: 8px;
}

.genetic-trait .gene-info {
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 8px;
  font-style: italic;
  line-height: 1.3;
}

.genetic-trait .gene-details {
  font-size: 11px;
  opacity: 0.75;
  margin-top: 6px;
}

/* Different colors for different traits */
.genetic-trait.dairy {
  background: linear-gradient(135deg, #1db954 0%, #1ed760 100%);
  color: #000000;
}

.genetic-trait.starch {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8787 100%);
  color: #ffffff;
}

.genetic-trait.omega3 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: #000000;
}

.genetic-trait.alcohol {
  background: linear-gradient(135deg, #1ed760 0%, #1db954 100%);
  color: #000000;
}

.genetic-trait.arctic {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  color: #000000;
}

.genetic-trait.arctic .recommendation {
  background: rgba(0, 0, 0, 0.15);
}

.genetic-trait.vitamind {
  background: linear-gradient(135deg, #ffd93d 0%, #ffed4e 100%);
  color: #000000;
}

.genetic-trait.vitamind .recommendation {
  background: rgba(0, 0, 0, 0.15);
}

.genetic-trait.energy {
  background: linear-gradient(135deg, #30cfd0 0%, #00f2fe 100%);
  color: #000000;
}

.genetic-trait.edar {
  background: linear-gradient(135deg, #ff8787 0%, #ff6b6b 100%);
  color: #ffffff;
}

.genetic-trait.edar .recommendation {
  background: rgba(0, 0, 0, 0.2);
}

.genetic-trait.altitude {
  background: linear-gradient(135deg, #c471f5 0%, #fa71cd 100%);
  color: #ffffff;
}

.genetic-trait.generic {
  background: linear-gradient(135deg, #1db954 0%, #1ed760 100%);
  color: #000000;
}

/* New nutrient metabolism traits */
.genetic-trait.caffeine {
  background: linear-gradient(135deg, #6f4e37 0%, #a67b5b 100%);
  color: #ffffff;
}

.genetic-trait.folate {
  background: linear-gradient(135deg, #228b22 0%, #32cd32 100%);
  color: #ffffff;
}

.genetic-trait.iron {
  background: linear-gradient(135deg, #8b0000 0%, #b22222 100%);
  color: #ffffff;
}

.genetic-trait.glucose {
  background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
  color: #ffffff;
}

.genetic-trait.obesity {
  background: linear-gradient(135deg, #708090 0%, #778899 100%);
  color: #ffffff;
}

.genetic-trait.celiac {
  background: linear-gradient(135deg, #daa520 0%, #ffd700 100%);
  color: #000000;
}

.genetic-trait.salt {
  background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
  color: #000000;
}

.genetic-trait.bitter {
  background: linear-gradient(135deg, #2e8b57 0%, #3cb371 100%);
  color: #ffffff;
}

.no-genetic-data {
  background: #1a1a1a;
  border: 1px dashed #333333;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  color: #b3b3b3;
  font-size: 13px;
}

/* User Profile Section */
.user-profile-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #1a1a1a;
}

.profile-username {
  background: linear-gradient(135deg, #1db954 0%, #1ed760 100%);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  text-align: center;
}

.username-label {
  display: block;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2px;
}

.username-value {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.5px;
}

.profile-summary {
  margin-bottom: 10px;
}

.profile-info {
  background: #1a1a1a;
  border-radius: 6px;
  padding: 10px;
}

.profile-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid #1a1a1a;
}

.profile-stat:last-child {
  border-bottom: none;
}

.profile-ancestry {
  padding-top: 6px;
}

.stat-label {
  font-size: 10px;
  color: #b3b3b3;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.stat-value {
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
}

.ancestry-list {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #d3d3d3;
  margin-top: 4px;
  line-height: 1.4;
}

.no-saved-data {
  font-size: 11px;
  color: #b3b3b3;
  text-align: center;
  padding: 8px;
  font-style: italic;
}

.btn-profile {
  background: #1db954;
  color: #000000;
}

.btn-profile:hover {
  background: #1ed760;
  transform: scale(1.02);
}

.btn-small {
  padding: 6px 10px;
  font-size: 10px;
}

/* Onboarding Wizard */
.onboarding {
  position: fixed;
  inset: 0;
  background: linear-gradient(to bottom, #1e3a5f 0%, #000000 100%);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.onboarding.hidden {
  display: none;
}

.onboarding-container {
  background: #121212;
  border-radius: 16px;
  padding: 40px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  border: 1px solid #1a1a1a;
}

.onboarding-header {
  text-align: center;
  margin-bottom: 32px;
}

.onboarding-header h1 {
  font-size: 32px;
  color: #ffffff;
  margin-bottom: 8px;
  font-weight: 700;
}

.onboarding-header p {
  font-size: 14px;
  color: #b3b3b3;
}

/* Progress indicator */
.onboarding-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.progress-step {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #666666;
  transition: all 0.3s;
  border: 2px solid #333333;
}

.progress-step.active {
  background: #1db954;
  color: #000000;
  transform: scale(1.1);
  border-color: #1db954;
}

.progress-step.completed {
  background: #1db954;
  color: #000000;
  border-color: #1db954;
}

.progress-line {
  width: 40px;
  height: 3px;
  background: #1a1a1a;
  margin: 0 4px;
}

/* Step content */
.onboarding-step {
  display: none;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.onboarding-step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.onboarding-step h2 {
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 8px;
  font-weight: 700;
}

.onboarding-step p {
  font-size: 14px;
  color: #b3b3b3;
  margin-bottom: 24px;
}

.onboard-select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #333333;
  border-radius: 10px;
  font-size: 15px;
  background: #1a1a1a;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s;
}

.onboard-select:focus {
  outline: none;
  border-color: #1db954;
}

.onboard-select:hover {
  border-color: #555555;
}

/* Navigation buttons */
.onboarding-nav {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.onboard-btn {
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.onboard-btn-back {
  background: #1a1a1a;
  color: #d3d3d3;
  border: 1px solid #333333;
}

.onboard-btn-back:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.onboard-btn-back:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.onboard-btn-skip {
  background: transparent;
  color: #d3d3d3;
  border: 2px solid #333333;
}

.onboard-btn-skip:hover {
  border-color: #555555;
  color: #ffffff;
}

.onboard-btn-next {
  background: #1db954;
  color: #000000;
}

.onboard-btn-next:hover {
  background: #1ed760;
  transform: scale(1.02);
}

.onboard-btn-next.finish {
  background: #1db954;
}

.onboard-btn-next.finish:hover {
  background: #1ed760;
}

/* Footer link */
.onboarding-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #ecf0f1;
}

.onboard-link {
  background: none;
  border: none;
  color: #b3b3b3;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.onboard-link:hover {
  color: #1db954;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .sidebar-toggle {
    display: block;
  }

  .sidebar-collapse-btn {
    display: none;
  }

  .sidebar {
    position: fixed;
    top: 70px;
    left: -260px;
    width: 260px;
    height: calc(100vh - 70px);
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  }

  .sidebar.open {
    left: 0;
  }

  .sidebar.collapsed {
    width: 260px;
    left: -260px;
  }

  .sidebar.collapsed.open {
    left: 0;
  }

  .sidebar.collapsed .sidebar-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .sidebar-overlay.visible {
    display: block;
  }

  .content-area {
    padding: 12px;
  }

  .diet-panel {
    top: auto;
    bottom: 12px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    max-height: 50vh;
  }

  .diet-panel.collapsed {
    max-height: none;
  }

  .diet-panel-content {
    padding: 16px;
  }

  /* Onboarding mobile adjustments */
  .onboarding-container {
    padding: 24px;
    margin: 0 10px;
  }

  .onboarding-header h1 {
    font-size: 22px;
  }

  .onboarding-progress {
    margin-bottom: 24px;
  }

  .progress-step {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .progress-line {
    width: 24px;
  }

  .step-icon {
    font-size: 36px;
  }

  .onboarding-step h2 {
    font-size: 18px;
  }

  .onboarding-nav {
    flex-wrap: wrap;
  }

  .onboard-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
}
