.top-nav {
    margin-bottom: 16px;
}

.top-nav a {
    color: #1a3a6c;
    font-weight: 600;
    text-decoration: none;
}

.teacher-panel,
.teacher-results {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.teacher-panel {
    padding: 18px;
}

.teacher-controls {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 150px auto;
    gap: 12px;
    align-items: end;
}

.teacher-controls label {
    display: grid;
    gap: 6px;
    color: #555;
    font-size: 0.9rem;
    font-weight: 600;
}

.teacher-controls input,
.teacher-controls select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
}

.teacher-controls button {
    padding: 12px 18px;
    border: 0;
    border-radius: 6px;
    background-color: #1a3a6c;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}

.teacher-summary {
    margin-top: 12px;
    color: #666;
}

.teacher-results {
    overflow-x: auto;
}

.teacher-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

.teacher-table th,
.teacher-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e9ecef;
    text-align: left;
    vertical-align: top;
}

.teacher-table th {
    background-color: #f8f9fa;
    color: #1a3a6c;
    font-weight: 700;
    position: sticky;
    top: 0;
}

.teacher-table tr:hover td {
    background-color: #f7fbff;
}

.teacher-note {
    display: block;
    margin-top: 4px;
    color: #666;
    font-size: 0.85rem;
}

.teacher-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 7px;
    border-radius: 999px;
    background-color: #eef2ff;
    color: #1a3a6c;
    font-size: 0.78rem;
    white-space: nowrap;
}

.teacher-group {
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 3px 8px;
    border-radius: 6px;
    background-color: #f1f5f9;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .teacher-controls {
        grid-template-columns: 1fr;
    }

    .teacher-table {
        min-width: 0;
    }

    .teacher-table thead {
        display: none;
    }

    .teacher-table,
    .teacher-table tbody,
    .teacher-table tr,
    .teacher-table td {
        display: block;
        width: 100%;
    }

    .teacher-table tr {
        padding: 10px;
        border-bottom: 1px solid #e9ecef;
    }

    .teacher-table td {
        padding: 4px 0;
        border-bottom: 0;
    }

    .teacher-table td::before {
        content: attr(data-label);
        display: inline-block;
        min-width: 105px;
        color: #666;
        font-weight: 700;
    }
}
