/* Assignment Report Page Styles */

#assignment-report-section {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Report Header */
.report-header {
  margin-bottom: 2rem;
}

.report-title {
  text-align: center;
}

.report-title h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1F2937;
  margin: 0 0 0.5rem 0;
}

.report-title p {
  font-size: 1rem;
  color: #6B7280;
  margin: 0;
}

/* Report Summary */
.report-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.summary-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.summary-card:hover {
  border-color: #2BB673;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.summary-card:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.summary-icon {
  width: 3rem;
  height: 3rem;
  background: #F0FDF4;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2BB673;
  flex-shrink: 0;
}

.summary-content h3 {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6B7280;
  margin: 0 0 0.25rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.summary-content p {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1F2937;
  margin: 0;
  position: relative;
}

.summary-content p::after {
  content: '→';
  position: absolute;
  right: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: #2BB673;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.summary-card:hover .summary-content p::after {
  opacity: 1;
}

/* Report Filters */
.report-filters {
  margin-bottom: 2rem;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid #E5E7EB;
  padding-bottom: 0.5rem;
}

.filter-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: none;
  background: none;
  color: #6B7280;
  font-weight: 500;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.filter-tab:hover {
  background-color: #F9FAFB;
  color: #374151;
}

.filter-tab.active {
  background-color: #F0FDF4;
  color: #2BB673;
}

.filter-tab svg {
  width: 1rem;
  height: 1rem;
}

/* Students Table */
.students-table-container {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 0.75rem;
  overflow: hidden;
}

.table-wrapper {
  overflow-x: auto;
}

.students-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.students-table th {
  background-color: #F9FAFB;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #E5E7EB;
}

.students-table td {
  padding: 1rem;
  border-bottom: 1px solid #F3F4F6;
  vertical-align: middle;
}

.students-table tr:last-child td {
  border-bottom: none;
}

.students-table tr:hover {
  background-color: #F9FAFB;
}

/* Student Name */
.student-name {
  font-weight: 600;
  color: #1F2937;
}

/* Progress Bar */
.progress-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.progress-bar-container {
  width: 100%;
  height: 0.5rem;
  background-color: #E5E7EB;
  border-radius: 0.25rem;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #2BB673 0%, #249c62 100%);
  border-radius: 0.25rem;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.875rem;
  color: #6B7280;
  font-weight: 500;
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge.completed {
  background-color: #F0FDF4;
  color: #2BB673;
}

.status-badge.in-progress {
  background-color: #EFF6FF;
  color: #3B82F6;
}

.status-badge.not-started {
  background-color: #F9FAFB;
  color: #6B7280;
}

.status-badge svg {
  width: 0.75rem;
  height: 0.75rem;
}



/* Responsive Design */
@media (max-width: 768px) {
  #assignment-report-section {
    padding: 1rem;
  }

  .report-summary {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .summary-card {
    padding: 1rem;
  }

  .summary-icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .summary-content p {
    font-size: 1.25rem;
  }

  .filter-tabs {
    flex-wrap: wrap;
  }

  .filter-tab {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .report-summary {
    grid-template-columns: 1fr;
  }

  .filter-tabs {
    flex-direction: column;
  }

  .filter-tab {
    flex: none;
  }
}
