/* Admin Table */
.admin-table {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.admin-table .table {
  margin-bottom: 0;
}

.admin-table .table th {
  background: var(--bg-subtle);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  white-space: nowrap;
}

.admin-table .table td {
  padding: 1rem;
  vertical-align: middle;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

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

.admin-table .table tbody tr:hover {
  background: var(--bg-subtle);
}

.admin-table .action-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--transition);
  margin-right: 0.25rem;
}

.admin-table .action-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

@media (max-width: 768px) {
  .admin-table {
    overflow-x: auto;
  }

  .admin-table .table {
    min-width: 700px;
  }
}

/* Admin stat cards with colored icons */
.admin-stat.summary-card {
  min-width: 0;
  overflow: hidden;
  padding: 1rem;
  gap: 0.75rem;
  align-items: flex-start;
}

.admin-stat.summary-card > div:last-child {
  min-width: 0;
  flex: 1;
}

.admin-stat .summary-icon {
  width: 44px;
  height: 44px;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.admin-stat .summary-value {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.1;
}

.admin-stat .summary-label {
  font-size: 0.75rem;
  line-height: 1.35;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  margin-top: 0.15rem;
}

@media (max-width: 575.98px) {
  .admin-stat.summary-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.875rem;
  }

  .admin-stat .summary-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .admin-stat .summary-label {
    font-size: 0.7rem;
  }
}

@media (min-width: 1400px) {
  .admin-stat .summary-label {
    font-size: 0.8rem;
  }
}

.admin-stat .summary-icon.bg-blue { background: #EBF1FF; color: #1E5EFF; }
.admin-stat .summary-icon.bg-amber { background: #FEF3C7; color: #D97706; }
.admin-stat .summary-icon.bg-green { background: #DCFCE7; color: #16A34A; }
.admin-stat .summary-icon.bg-purple { background: #EDE9FE; color: #7C3AED; }
.admin-stat .summary-icon.bg-rose { background: #FFE4E6; color: #E11D48; }
.admin-stat .summary-icon.bg-cyan { background: #CFFAFE; color: #0891B2; }

/* Class card for admin */
.class-card-admin .class-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.class-card-admin .class-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
