body {
  font-family: 'Poppins', Arial, sans-serif;
  background-color: #f8f9fa;
  margin: 0;
  padding: 20px;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Question Screen */
.question-container {
  text-align: center;
}

.day-indicator {
  display: inline-block;
  background-color: #4CAF50;
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.question-title {
  font-size: 28px;
  color: #333;
  margin-bottom: 24px;
  font-weight: 700;
}

.question-card {
  background-color: #f8f9fa;
  padding: 30px;
  border-radius: 16px;
  margin-bottom: 30px;
  border-left: 5px solid #4CAF50;
  text-align: left;
}

.question-text {
  font-size: 18px;
  line-height: 1.6;
}

.cta-button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
  margin-top: 20px;
}

.cta-button:hover {
  background-color: #3d9140;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(76, 175, 80, 0.4);
}

/* Answer Screen */
.answer-container {
  text-align: center;
}

.answer-title {
  font-size: 28px;
  color: #4CAF50;
  margin-bottom: 20px;
  font-weight: 700;
}

.answer-box {
  padding: 30px;
  border-radius: 16px;
  margin-bottom: 30px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.practical-answer {
  background-color: #E8F5E9;
  border-left: 6px solid #4CAF50;
}

.pure-answer {
  background-color: #FFF8E1;
  border-left: 6px solid #FFC107;
}

.balanced-answer {
  background: linear-gradient(135deg, #E8F5E9 0%, #F5F5F5 50%, #FFF8E1 100%);
  border-left: 6px solid #9C27B0;
}

.answer-box-title {
  font-size: 22px;
  margin-bottom: 16px;
  color: #333;
  font-weight: 700;
}

.answer-box-text {
  font-size: 16px;
  line-height: 1.6;
}

/* Slider */
.slider-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0;
}

.slider-label {
  font-size: 16px;
  color: #757575;
  margin: 0 15px;
  cursor: pointer;
  transition: color 0.3s ease;
  text-align: center;
  max-width: 120px;
  line-height: 1.3;
}

.slider-label.active {
  color: #4CAF50;
  font-weight: 600;
}

.slider-track {
  width: 200px;
  height: 8px;
  background: linear-gradient(to right, #4CAF50, #9C27B0, #FFC107);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.slider-thumb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: white;
  position: absolute;
  top: 50%;
  left: 50%; /* Center the thumb by default */
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: left 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.3s ease;
  border: 3px solid #9C27B0;
  cursor: grab;
  will-change: left, transform;
}

.slider-thumb:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.slider-thumb:active {
  cursor: grabbing;
}

.slider-thumb::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background-color: #9C27B0;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

/* Facts Preview */
.facts-preview {
  background: linear-gradient(135deg, #E8F5E9 0%, #F5F5F5 100%);
  border-radius: 16px;
  padding: 20px;
  margin: 30px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-left: 6px solid #4CAF50;
}

.facts-preview-title {
  font-size: 20px;
  color: #4CAF50;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

.facts-preview-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #4CAF50;
  border-radius: 3px;
}

.fact-preview-card {
  background-color: white;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  animation: slideIn 0.5s ease forwards;
  animation-delay: calc(var(--animation-order) * 0.3s);
  opacity: 0;
  transform: translateY(20px);
}

.fact-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: #4CAF50;
  color: white;
  border-radius: 50%;
  margin-right: 15px;
  flex-shrink: 0;
  font-weight: 600;
  font-size: 14px;
}

.fact-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
}

.more-facts {
  text-align: center;
  color: #4CAF50;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  font-size: 14px;
}

.more-facts:hover {
  text-decoration: underline;
}

/* Research Screen */
.research-container {
  text-align: center;
}

.research-title {
  font-size: 28px;
  color: #333;
  margin-bottom: 20px;
  font-weight: 700;
}

.tabs-container {
  display: flex;
  background-color: #f1f1f1;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
}

.tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.tab.active {
  background-color: #4CAF50;
  color: white;
}

.tab-content {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

.fact-card, .research-card, .resource-card {
  background-color: #f8f9fa;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  text-align: left;
  display: flex;
  align-items: flex-start;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.research-icon, .resource-icon {
  color: #4CAF50;
  margin-right: 15px;
  font-size: 18px;
}

.research-text, .resource-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.5;
}

.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: #757575;
  background-color: #f8f9fa;
  border-radius: 12px;
}

.next-button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
  margin-top: 30px;
  display: inline-block;
}

.next-button:hover {
  background-color: #3d9140;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(76, 175, 80, 0.4);
}

/* Loading and Error States */
.loading-container {
  text-align: center;
  padding: 60px 20px;
}

.loading-spinner {
  border: 4px solid rgba(76, 175, 80, 0.2);
  border-top: 4px solid #4CAF50;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-size: 18px;
  color: #4CAF50;
}

.error-container {
  text-align: center;
  padding: 60px 20px;
}

.error-icon {
  color: #F44336;
  font-size: 50px;
  margin-bottom: 20px;
}

.error-text {
  font-size: 18px;
  color: #F44336;
  margin-bottom: 20px;
}

.retry-button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.retry-button:hover {
  background-color: #3d9140;
}

/* Animations */
.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.slide-in {
  animation: slideIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 20px;
  }
  
  .question-title, .answer-title, .research-title {
    font-size: 24px;
  }
  
  .question-text {
    font-size: 16px;
  }
  
  .slider-track {
    width: 150px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }
  
  .container {
    padding: 15px;
  }
  
  .question-card, .answer-box {
    padding: 20px;
  }
  
  .cta-button, .next-button {
    padding: 12px 24px;
    font-size: 14px;
  }
}

/* Accordion Styles */
.accordion-container {
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  background-color: white;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background-color: #f8f9fa;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-left: 4px solid #4CAF50;
}

.accordion-header:hover {
  background-color: #f1f1f1;
}

.accordion-header.active {
  background-color: #E8F5E9;
}

.accordion-title {
  font-weight: 600;
  font-size: 16px;
  color: #333;
}

.accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: white;
}

.accordion-content.active {
  max-height: 1000px; /* Large enough to accommodate content */
  padding: 16px;
}

.accordions-wrapper {
  margin-bottom: 30px;
}

/* Animation classes */
.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fact-preview-card, .fact-card, .research-card, .resource-card {
  animation: slideIn 0.5s ease forwards;
  animation-delay: calc(var(--animation-order) * 0.1s);
  opacity: 0;
}

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

/* Hide old tab styles */
.tabs-container, .tab {
  display: none;
}
  