/* Derivative Visualization Styles */

.viz-wrapper {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin: 1.5rem 0;
  background: var(--bg);
}

.derivative-svg {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 auto;
  user-select: none;
  -webkit-user-select: none;
  /* Allow scrolling - only prevent when dragging */
}

.viz-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.slope-display strong {
  color: #22c55e;
  font-size: 1.1em;
}

.second-deriv-display strong {
  color: #f59e0b;
  font-size: 1.1em;
}

.drag-point {
  cursor: grab;
  /* Visual feedback on touch */
}

.drag-point:active {
  cursor: grabbing;
}

.touch-target {
  cursor: grab;
}

/* Mobile adjustments */
@media (max-width: 500px) {
  .viz-info {
    flex-direction: column;
    align-items: flex-start;
  }
}
