.chart-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.chart-modal {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  max-width: 90%;
  width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.chart-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
}

.chart-modal-header h2 {
  margin: 0;
  font-size: 1.8rem;
  color: #333;
}

.chart-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  transition: all 0.3s ease;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-modal-close:hover {
  color: #333;
  background: #f5f5f5;
  border-radius: 4px;
}

.chart-modal-body {
  margin-bottom: 1.5rem;
}

.chart-modal-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #f0f0f0;
  color: #666;
}

.chart-modal-footer p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .chart-modal {
    width: 95%;
    padding: 1rem;
  }

  .chart-modal-body {
    height: 300px;
  }

  .chart-modal-footer {
    grid-template-columns: 1fr;
  }
}
