/* Intelligence Dashboard Styles */
.intelligence-dashboard {
  padding: 20px;
  font-family: 'Inter', sans-serif;
  color: #333;
  max-width: 1200px;
  margin: 0 auto;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.dashboard-header h2 {
  margin: 0;
  font-size: 24px;
  color: #333;
}

.powered-by {
  font-size: 14px;
  color: #888;
  font-weight: normal;
  margin-left: 10px;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.insight-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.insight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.insight-card h3 {
  margin-top: 0;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  color: #333;
  font-size: 18px;
}

.insight-content {
  color: #444;
  line-height: 1.6;
  flex-grow: 1;
}

.charts-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.chart-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.chart-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.chart-card h3 {
  margin-top: 0;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  color: #333;
  font-size: 18px;
}

.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.error-container {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 30px;
  text-align: center;
  color: #d32f2f;
  margin: 20px 0;
}

.error-container h3 {
  margin-top: 0;
  color: #d32f2f;
}

.hidden {
  display: none;
}

ul.recommendation-list {
  padding-left: 20px;
  margin-top: 0;
}

ul.recommendation-list li {
  margin-bottom: 10px;
}

.collection-insight {
  margin-bottom: 15px;
}

.collection-insight h4 {
  margin: 0 0 5px 0;
  color: #555;
}

.collection-insight p {
  margin: 0;
}

/* Card-specific styles */
.portfolio-summary {
  border-left: 4px solid #4caf50;
}

.market-trends {
  border-left: 4px solid #2196f3;
}

.recommendations {
  border-left: 4px solid #ff9800;
}

.purchase-suggestions {
  border-left: 4px solid #9c27b0;
}

.risk-assessment {
  border-left: 4px solid #f44336;
}

.collection-insights {
  border-left: 4px solid #607d8b;
}

/* Button styles */
.btn-primary {
  background-color: #2196f3;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: #1976d2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .insights-grid {
    grid-template-columns: 1fr;
  }
  
  .charts-container {
    grid-template-columns: 1fr;
  }
  
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .dashboard-header button {
    margin-top: 10px;
  }
}