@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

body {
  font-family: 'Manrope', sans-serif !important;
}

.navbar-brand, .nav-link, h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', sans-serif !important;
}

.desmos-container {
  width: 100%;
  height: 500px;
  margin: 1.5em 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin: 1.5em 0;
  border-radius: 8px;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.d3-container {
  width: 100%;
  margin: 1.5em 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fafafa;
}

.d3-container svg {
  display: block;
  width: 100%;
  height: auto;
}

.d3-controls {
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 0.75em 1em;
  background: #f0f0f0;
  border-top: 1px solid #ddd;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  flex-wrap: wrap;
}

.d3-controls label {
  font-weight: 600;
  white-space: nowrap;
}

.d3-controls input[type="range"] {
  flex: 1;
  min-width: 120px;
  accent-color: #2d70b3;
}

.d3-controls .value-display {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
  min-width: 60px;
}

.d3-controls button {
  padding: 0.4em 1.2em;
  background: #2d70b3;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 13px;
}

.d3-controls button:hover {
  background: #1a5490;
}

.key-formula {
  background: #f8f9fa;
  border-left: 4px solid #0d6efd;
  padding: 1em 1.5em;
  margin: 1em 0;
  border-radius: 0 8px 8px 0;
}
