#chart-detail-description {
    text-align: justify;
    margin-top: 45px;
}

.csv-charts-grid {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); */
  gap: 2rem;
  margin: 2rem 0;
}

.csv-chart-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  padding: 1rem;
  min-height: 140px;
}

.csv-chart-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.csv-chart-preview {
  flex: 0 0 120px;
  height: 100px;
  background: #f2f4f8;
  margin-right: 1rem;
  border: 2px solid #f0f0f0; 
  box-shadow: 0 4px 20px rgba(0,0,0,0.15); 
}

.csv-chart-content {
  flex: 1;
}

.csv-chart-content h3 {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
  color: #222;
}

.csv-chart-content .button {
  display: inline-block;
  padding: 6px 12px;
  background: #0056d6;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.csv-chart-content .button:hover {
  background: #0041a8;
}

.chart-detail {
  display: flex;
  height: 100vh;
  background: #f9f9f9;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
}

.chart-detail.hidden {
  display: none;
}

.chart-detail-main {
  flex: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-right: 1px solid #ddd;
}

.chart-detail-sidebar {
  flex: 1;
  padding: 20px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chart-detail-sidebar h3 {
  margin-top: 0;
}

.download-buttons button {
  display: block;
  margin-bottom: 10px;
  width: 100%;
  padding: 10px;
  border: none;
  background: #0073aa;
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
}

.download-buttons button:hover {
  background: #005f8d;
}

#close-detail {
  margin-top: auto;
  background: #ccc;
  color: #000;
}
#chart-detail-preview {
  width: 100%;
  height: 90%;
  background: #fff; 
  border: 2px solid #f0f0f0; 
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  padding: 0px; 
}