/* Remove the modal styling and make it a regular div */
#immi-chart {
  display: none; /* Hidden by default */
  margin: 10px 0;
  max-height: 90vh; /* Limit height to 80% of viewport */
  overflow-y: auto; /* Make it scrollable */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

#immi-chart::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Keep your existing chart styles */
.chart-container {
  width: 100%;
  height: 600px;
  margin-top: 10px;
}

.controls {
  margin-bottom: 20px;
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.control-group label {
  font-weight: bold;
  color: #555;
  font-size: 14px;
}

.control-group select,
.control-group input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.stats-summary {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #2171b5;
}

.stats-summary h3 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 18px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.stat-item {
  background: white;
  padding: 12px;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-value {
  font-size: 24px;
  font-weight: bold;
  color: #2171b5;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#immigrationChart {
  width: 100% !important;
  height: 100% !important;
}
