/* Plot styling for interactive visualizations */

.plot-container {
  width: 100%;
  height: auto;
  min-height: 500px;
  margin: 2rem 0;
  padding: 1rem;
  border-radius: 5px;
  background-color: #f9f9f9;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.plot-container:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .plot-container {
    min-height: 400px;
    padding: 0.5rem;
    margin: 1.5rem 0;
  }
}

/* Dark mode support if your theme has it */
@media (prefers-color-scheme: dark) {
  .plot-container {
    background-color: #2a2a2a;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  }
}

/* Plotly-specific overrides to match your site theme */
.js-plotly-plot .plotly .modebar {
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.js-plotly-plot .plotly .modebar:hover {
  opacity: 1;
}

/* Add padding for the plotly modebar to prevent it from overlapping content */
.js-plotly-plot {
  padding-top: 25px !important;
}