.students-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}
.students-head__actions { display: flex; gap: var(--space-3); }

.students-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.summary-item {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-4);
    text-align: center;
}
.summary-item h3 { color: var(--primary); font-size: var(--text-2xl); margin: 0 0 var(--space-1); }
.summary-item span { color: var(--text-light); font-size: var(--text-sm); }

.students-search { position: relative; margin-bottom: var(--space-4); }
.students-search input {
    width: 100%;
    height: var(--control-height);
    padding-inline: var(--space-4);
    border: 1.5px solid var(--outline-variant);
    border-radius: var(--radius-md);
    background: var(--surface-container-lowest);
    font-family: var(--font-urdu);
    font-size: var(--text-md);
}
.students-search__clear {
    position: absolute;
    inset-inline-start: var(--space-3);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: var(--text-xl);
    cursor: pointer;
    color: var(--text-light);
}
.students-search__clear[hidden] { display: none; }

.students-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}
.students-toolbar select {
    height: 2.75rem;
    padding-inline: var(--space-3);
    border: 1.5px solid var(--outline-variant);
    border-radius: var(--radius-md);
    background: var(--surface-container-lowest);
    font-family: var(--font-urdu);
}

.students-list[hidden] { display: none; }
.students-list { display: flex; flex-direction: column; gap: var(--space-3); }

.student-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
}
.student-row:hover, .student-row:focus-visible { box-shadow: var(--shadow-md); }

.student-row__main { display: flex; flex-direction: column; gap: 2px; }
.student-row-name { font-weight: var(--font-weight-semibold); }
.student-row-father { font-size: var(--text-sm); color: var(--text-light); }

.student-row__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.student-row-admission { font-size: var(--text-sm); color: var(--text-light); }
.student-row-class { font-size: var(--text-xs); color: var(--text-light); }

.student-status-badge {
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    white-space: nowrap;
}
.student-status--active { background: var(--md-success-container); color: var(--md-success); }
.student-status--inactive { background: var(--surface-container-high); color: var(--text-light); }
.student-status--transferred { background: var(--gold-container); color: var(--on-gold-container); }

.students-pagination[hidden] { display: none; }
.students-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-6);
}
.students-pagination button[disabled] { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 640px) {
    .student-row { flex-direction: column; align-items: flex-start; }
    .student-row__meta { align-items: flex-start; }
}
