/**
 * Chart.js Estimation Graphic Styles
 *
 * Styles for Chart.js-based property estimation visualization.
 * Uses mlsejs- prefix to differentiate from server-rendered graphics.
 *
 * @package BananaProperty\MlsEstimator\Assets
 */

/* Chart wrapper container */
.mlsejs-chart-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Canvas element */
.mlsejs-chart-canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: 600px;
}

/* Error message */
.mlsejs-error {
  color: #e74c3c;
  padding: 1rem;
  background: #ffe6e6;
  border-left: 4px solid #e74c3c;
  border-radius: 4px;
  font-size: 0.9rem;
  margin: 1rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .mlsejs-chart-wrapper {
    padding: 1rem;
    margin: 1rem auto;
  }

  .mlsejs-chart-canvas {
    max-height: 400px;
  }
}

@media (max-width: 480px) {
  .mlsejs-chart-wrapper {
    padding: 0.75rem;
    margin: 0.5rem auto;
  }

  .mlsejs-chart-canvas {
    max-height: 300px;
  }
}
