#cross-source-visualization {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
}

.cross-source-viz-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 20px 30px;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  z-index: 10001;
}

.cross-source-viz-header h3 {
  margin: 0;
  font-size: 20px;
  color: #2c3e50;
}

.close-viz {
  background: none;
  border: none;
  font-size: 32px;
  color: #95a5a6;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.close-viz:hover {
  color: #2c3e50;
}

.cross-source-viz-body {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 30px;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 1200px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  z-index: 10001;
}

.viz-stats-bar {
  display: flex;
  gap: 24px;
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.viz-stat {
  display: flex;
  align-items: center;
  gap: 12px;
}

.viz-stat-icon {
  font-size: 32px;
}

.viz-stat-label {
  display: block;
  font-size: 12px;
  color: #7f8c8d;
  margin-bottom: 4px;
}

.viz-stat-value {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
}

.viz-chart-container {
  height: 400px;
  margin-bottom: 30px;
  background: white;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  padding: 20px;
}

.no-chart-message {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #7f8c8d;
  text-align: center;
}

.no-chart-message p {
  margin: 8px 0;
}

.viz-insights-section {
  margin-bottom: 30px;
}

.viz-insights-section h4 {
  margin: 0 0 16px 0;
  font-size: 18px;
  color: #2c3e50;
}

#insights-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.insight-card {
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  background: white;
  border: 1px solid #e1e4e8;
  border-left: 4px solid #3498db;
  border-radius: 8px;
  transition: all 0.2s;
}

.insight-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.insight-card.insight-match {
  border-left-color: #2ecc71;
  background: #f9fefb;
}

.insight-card.insight-warning {
  border-left-color: #f39c12;
  background: #fffcf5;
}

.insight-card.insight-suggestion {
  border-left-color: #9b59b6;
  background: #fcf9fe;
}

.insight-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.insight-content h5 {
  margin: 0 0 6px 0;
  font-size: 15px;
  color: #2c3e50;
}

.insight-content p {
  margin: 0;
  font-size: 14px;
  color: #7f8c8d;
  line-height: 1.5;
}

.viz-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #e1e4e8;
}

.viz-actions .btn-primary,
.viz-actions .btn-secondary {
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.viz-actions .btn-primary {
  background: #3498db;
  color: white;
}

.viz-actions .btn-primary:hover {
  background: #2980b9;
}

.viz-actions .btn-secondary {
  background: #ecf0f1;
  color: #7f8c8d;
}

.viz-actions .btn-secondary:hover {
  background: #dfe4e8;
  color: #2c3e50;
}

@media (max-width: 768px) {
  .cross-source-viz-header,
  .cross-source-viz-body {
    width: 95%;
  }
  
  .viz-stats-bar {
    flex-direction: column;
    gap: 16px;
  }
  
  .viz-actions {
    flex-direction: column;
  }
  
  .viz-chart-container {
    height: 300px;
  }
}
