body {
  padding: 32px 16px;
}

/* ── Header ─────────────────────────────── */
.header {
  text-align: center;
  margin-bottom: 32px;
}
.header-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 12px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.12));
}
.header-school {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.header h1 {
  font-size: 1.75rem;
  color: var(--brand);
  font-weight: 700;
}
.header-divider {
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  border-radius: 2px;
  margin: 10px auto 8px;
}
.header p {
  color: var(--muted);
  margin-top: 4px;
  font-size: 0.92rem;
}

/* ── Search ──────────────────────────────── */
.page-content {
  max-width: 800px;
  margin: 0 auto;
}
.search-container {
  margin-bottom: 24px;
}

/* ── Tabs ────────────────────────────────── */
.tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
}
.tab-btn {
  background: none;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}
.tab-btn:hover {
  color: var(--brand);
}
.tab-btn.active {
  color: var(--brand);
}
.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand);
  border-radius: 2px;
}
.search-box {
  position: relative;
  width: 100%;
}
.search-box input {
  width: 100%;
  padding: 14px 14px 14px 48px;
  font-size: 1.05rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.search-box .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--muted);
}

/* ── Table Card ──────────────────────────── */
.table-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  overflow: hidden;
  min-height: 200px;
}
table {
  width: 100%;
  border-collapse: collapse;
}
thead th {
  background: var(--brand);
  color: #fff;
  padding: 14px 20px;
  text-align: left;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
tbody tr:hover {
  background: #f8faff;
}
tbody td {
  padding: 14px 20px;
  font-size: 0.95rem;
}
tbody td:last-child {
  font-weight: 600;
  color: var(--brand);
}

.hidden { display: none !important; }

/* ── States ──────────────────────────────── */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  color: var(--muted);
}
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.no-results {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
}


