.publications-dashboard {
  background-color: #013C7C;
  padding: 3rem 0; /* Remove horizontal padding */
  width: 100%; /* Full width background */
  box-shadow: 0 10px 30px rgba(1, 60, 124, 0.3);
  color: white;
}

/* Container for the dashboard content */
.dashboard-content {
  max-width: 1200px; /* Match container width */
  margin: 0 auto; /* Center the content */
  padding: 0 2rem; /* Add horizontal padding to content */
}

.dashboard-header {
  text-align: center;
  margin-bottom: 3rem;
  border-bottom: 3px solid #ef7c00;
  padding-bottom: 1.5rem;
}

.dashboard-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: white;
  text-shadow: none;
}

.dashboard-header p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: #ffffff;
  border: 2px solid #ef7c00;
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer; /* Add cursor pointer */
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(239, 124, 0, 0.3);
  border-color: #d85600;
}

.stat-card.active {
  background: #ef7c00;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(239, 124, 0, 0.5);
}

.stat-card.active .stat-number {
  color: white;
}

.stat-card.active .stat-label {
  color: rgba(255, 255, 255, 0.9);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #ef7c00;
  transition: color 0.3s ease;
}

.stat-label {
  font-size: 1rem;
  color: #666;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Remove chart selector styles */
.chart-selector {
  display: none;
}

/* Single chart container */
.dashboard-chart {
  margin-bottom: 3rem;
}

.chart-container {
  background: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 3rem; /* Increased from 2rem to accommodate hover offset */
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  max-width: 800px;
  margin: 0 auto;
}

.chart-container:hover {
  transform: translateY(-3px);
  border-color: #ef7c00;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.chart-container h3 {
  text-align: center;
  margin-bottom: 2.5rem; /* Increased from 1.5rem */
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #ef7c00;
  padding-bottom: 0.8rem; /* Increased from 0.5rem */
}

.chart-container canvas {
  max-height: 400px;
  width: 100%;
  margin-top: 1rem; /* Add top margin to canvas */
  padding: 20px; /* Add padding around the canvas */
}

.dashboard-footer {
  text-align: center;
  border-top: 3px solid #ef7c00;
  padding-top: 2rem;
}

.view-all-btn {
  display: inline-block;
  background: linear-gradient(45deg, #ef7c00, #d85600);
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(239, 124, 0, 0.4);
  border: none;
}

.view-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239, 124, 0, 0.5);
  color: white;
  text-decoration: none;
  background: linear-gradient(45deg, #d85600, #c24a00);
}

/* Responsive design */
@media (max-width: 768px) {
  .dashboard-content {
    padding: 0 1rem;
  }
  
  .chart-container {
    min-width: auto;
    padding: 2.5rem 1.5rem; /* Reduced but still adequate for mobile */
  }
  
  .chart-container canvas {
    padding: 15px;
  }
  
  .dashboard-header h2 {
    font-size: 2rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}

/* Animation for loading */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.publications-dashboard > * {
  animation: fadeInUp 0.6s ease forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }