/* MFD Education Enhancer custom styles */

/* Reading Progress Bar */
#reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(135deg, #2E6B4B 0%, #fcb900 100%);
  z-index: 99999;
  transition: width 0.1s ease;
}

/* Styled Alert/Notice Boxes */
.mfd-alert {
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  border-left: 5px solid;
  font-size: 0.95rem;
  line-height: 1.6;
}

.mfd-alert-warning {
  background-color: #fffbeb;
  border-left-color: #fcb900;
  color: #92400e;
}

.mfd-alert-info {
  background-color: #eaf7f1;
  border-left-color: #2e6b4b;
  color: #1a3a2d;
}

/* Jargon Tooltips */
.mfd-tooltip-term {
  border-bottom: 1px dotted #2e6b4b;
  cursor: help;
  position: relative;
  font-weight: 500;
}

/* Simple visual accordion styling for FAQs */
.mfd-faq-accordion {
  border: 1px solid #b8c0cc;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background-color: #fff;
}

.mfd-faq-question {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  background-color: #f8fafc;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
}

.mfd-faq-question:hover {
  background-color: #f1f5f9;
}

.mfd-faq-answer {
  padding: 1rem 1.25rem;
  border-top: 1px solid #e2e8f0;
  display: none;
  line-height: 1.6;
}

/* Interactive Visualizer Styles */
.mfd-visualizer-container {
  background: #ffffff;
  border: 1px solid #B8C0CC;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 10px 30px rgba(46, 107, 75, 0.05);
}

.mfd-viz-header {
  margin-bottom: 1.25rem;
  text-align: center;
}

.mfd-viz-slider-group {
  margin: 1.5rem 0;
}

.mfd-viz-slider-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.mfd-viz-slider {
  width: 100%;
  accent-color: #2E6B4B;
}

.mfd-viz-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  text-align: center;
}

.mfd-viz-result-card {
  background: #EAF7F1;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #2E6B4B;
}

.mfd-viz-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2E6B4B;
}
