/* General Chart Container Styling */

#firearmChart {
  background: linear-gradient(135deg, #000000, #3a1d1d);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.3);
}

/* Tooltip Styling */

.chartjs-tooltip {
  background-color: #212121;
  color: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
}

/* Bar Styling */

.chart-bar {
  border-radius: 8px;
}

/* Legend Styling */

.chartjs-legend {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.chartjs-legend li {
  display: flex;
  align-items: center;
  margin: 0 10px;
  cursor: pointer;
  transition: transform 0.3s;
}

.chartjs-legend li:hover {
  transform: scale(1.1);
}

.chartjs-legend li span {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 10px;
  border-radius: 50%;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

/* Text Styling */

.chartjs-title {
  color: #f0f0f0;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  text-align: center;
  margin-bottom: 15px;
}

.chartjs-axis {
  color: #aaa;
  font-size: 12px;
  font-family: 'Roboto', sans-serif;
}

/* X-Axis Styling */

.chartjs-x-axis {
  color: #e0e0e0;
  font-size: 12px;
}

/* Y-Axis Styling */

.chartjs-y-axis {
  color: #e0e0e0;
  font-size: 12px;
}

/* Grid Line Styling */

.chartjs-grid-line {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-dasharray: 4;
}

/* Highlighted Grid Line */

.chartjs-grid-line-major {
  stroke: rgba(255, 255, 255, 0.3);
}

/* Data Points */

.chart-data-point {
  background: radial-gradient(circle, rgba(255, 0, 0, 0.6), rgba(255, 0, 0, 0.8));
  border-radius: 50%;
  box-shadow: 0px 4px 10px rgba(255, 0, 0, 0.4);
}

/* Responsive Styling */

@media (max-width: 768px) {
  #firearmChart {
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .chartjs-title {
    font-size: 16px;
  }
}

#firearmChart {
  height: 75vh !important;
}

#add-firearm-section {
}

/* Force legend label color and font size */

.chartjs-legend {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  list-style: none;
  padding: 0;
}

.chartjs-legend li {
  cursor: pointer;
  margin: 0 10px;
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  font-family: 'Montserrat', sans-serif;
}

#chart {
}

#chart, #horizontal-bar-chart, #pie-chart {
  height: 400px !important;
  overflow: hidden;
}

.apexcharts-canvas {
  margin: 0 !important;
  padding: 0 !important;
}

.row {
  margin-bottom: 0 !important;
}

div[id$="-chart"] {
  margin-top: 20px;
}

.chart-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 400px;
  margin: 20px 0;
  overflow: hidden;
  background: linear-gradient(135deg, #000000, #3a1d1d);
  border-radius: 12px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.3);
}

#chart, #horizontal-bar-chart, #pie-chart {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

.apexcharts-inner {
  margin: 0 !important;
}

.apexcharts-canvas {
  margin: 0 auto !important;
  padding: 0 !important;
  display: block;
}

