.analytics-content {
  display: block;
  padding: 20px;
}

h1, h2, h3 {
  text-align: center;
}

.chart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}



.chart-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.legend-section {
  display: flex;
  align-items: center;
  padding: 20px;
}

.chart-legend {
  display: flex;
  gap: 12px;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
  margin-top:20px;
  margin-bottom: 20px;
  width: 100%;
  border-radius: var(--border-radius, 12px);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.legend-item span {
  font-size: 1.2em;
}

.legend-item:hover {
  background-color: rgba(86, 222, 147, 0.1);
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.category-selection {
  text-align: center;
}

.main-content {
  display: flex;
  flex-direction: column;
}


.category-select {
  background: var(--sec-color, #1a1d24);
  color: var(--white, #ffffff);
  border: 1px solid var(--sec-color-2, #2a2d35);
  border-radius: var(--border-radius, 12px);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
}

.category-select:hover {
  border-color: var(--green, rgb(86, 222, 147));
  box-shadow: 0 0 0 2px rgba(86, 222, 147, 0.1);
}

.category-select:focus {
  outline: none;
  border-color: var(--green, rgb(86, 222, 147));
  box-shadow: 0 0 0 3px rgba(86, 222, 147, 0.2);
}

.category-select optgroup {
  font-weight: 600;
  color: var(--green, rgb(86, 222, 147));
  background: var(--sec-color, #1a1d24);
}

.category-select option {
  background: var(--sec-color, #1a1d24);
  color: var(--white, #ffffff);
  padding: 8px;
}

.no-content {
  text-align: center;
  padding: 60px 20px;
  color: var(--white, #ffffff);
}

.no-content h2 {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--green, rgb(86, 222, 147));
}

.no-content p {
  font-size: 16px;
  opacity: 0.7;
}

.legend-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--white, #ffffff);
  text-align: left;
}

#pieChart {
  transform: scale(1);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

#pieChart:hover {
  transform: scale(1.1);
}

