/* admin.css */
.dashboard-container {
  max-width: 1200px;
  width: 100%;
  padding: 1rem;
  position: relative;
}

.dashboard-banner {
  position: relative;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.dashboard-banner h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 1;
  position: relative;
}

.dashboard-banner p {
  font-size: 1.1rem;
  font-weight: 400;
  opacity: 0.9;
  margin-top: 0.5rem;
  z-index: 1;
  position: relative;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"%3E%3Ccircle cx="100" cy="100" r="80" fill="none" stroke="rgba(255,255,255,0.2)" stroke-width="20" /%3E%3C/svg%3E');
  opacity: 0.1;
  z-index: 0;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.metric-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.metric-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #4f46e5;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-subtext {
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: 0.5rem;
  display: block;
}

.metric-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  opacity: 0.3;
}

.dashboard-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.chart-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

.chart-card:hover {
  transform: translateY(-5px);
}

.chart-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
}

.chart-card canvas {
  max-height: 250px;
}

.dashboard-activity {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.dashboard-activity h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
}

.activity-list {
  list-style: none;
}

.activity-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.95rem;
  color: #1f2937;
}

.activity-list li:last-child {
  border-bottom: none;
}

.activity-time {
  font-size: 0.85rem;
  color: #6b7280;
  margin-right: 1rem;
}

.dashboard-actions {
  text-align: center;
  margin-bottom: 2rem;
}

.upload-results-btn {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-results-btn:hover {
  background: linear-gradient(135deg, #4338ca, #0891b2);
  transform: translateY(-2px);
}

.upload-results-btn:active {
  transform: translateY(0);
}

.upload-dialog {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  width: 90%;
  max-width: 500px;
}

.dialog-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  position: relative;
}

.dialog-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard-container {
    margin: 1rem;
  }

  .dashboard-banner h1 {
    font-size: 1.8rem;
  }

  .dashboard-banner p {
    font-size: 1rem;
  }

  .dashboard-metrics {
    grid-template-columns: 1fr;
  }

  .dashboard-charts {
    grid-template-columns: 1fr;
  }

  .upload-dialog {
    width: 95%;
  }
}

@media (max-width: 640px) {
  .dashboard-banner h1 {
    font-size: 1.5rem;
  }

  .metric-value {
    font-size: 2rem;
  }

  .chart-card canvas {
    max-height: 200px;
  }
}
.gradeCount{
  display: flex; 
  justify-content: space-around; 
  margin-top: 10px;
}
.gradeHeader{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.gradeTitle{
  font-size: 18px; 
  
}