* {
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}

/* ── Top navbar ──────────────────────────────────────────────────────── */
nav {
    background: #1a1a2e;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
}

main {
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

/* ── Toast notifications ─────────────────────────────────────────────── */
.toast-container {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: #1b5e20;
    color: #fff;
    opacity: 1;
    transition: opacity 0.4s ease;
    pointer-events: auto;
    max-width: 320px;
}

.toast.success { background: #2e7d32; }
.toast.error   { background: #c62828; }
.toast.warning { background: #e65100; }
.toast.info    { background: #1565c0; }

/* ── Global form base ────────────────────────────────────────────────── */
form label {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
}

form input[type="text"],
form input[type="email"],
form input[type="number"],
form input[type="password"],
form select,
form textarea {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.25rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
button[type="submit"],
.btn-primary {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.6rem 1.5rem;
    background: #1a1a2e;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
}

button[type="submit"]:hover,
.btn-primary:hover {
    background: #2d2d5e;
}

.btn-secondary {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.2rem;
    background: transparent;
    color: #1a1a2e;
    border: 1px solid #1a1a2e;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #f0f0f8;
}

/* ── Breadcrumb ──────────────────────────────────────────────────────── */
.breadcrumb {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: #1a1a2e;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ── Card list (turmas / apostilas / atividades) ─────────────────────── */
.card-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

a.card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: background 0.15s, border-color 0.15s;
}

a.card:hover {
    background: #f5f5fa;
    border-color: #aab;
}

a.card strong {
    display: block;
    font-size: 1rem;
    color: #1a1a2e;
}

.card-meta {
    font-size: 0.85rem;
    color: #666;
    display: block;
    margin-top: 0.2rem;
}

.card-arrow {
    font-size: 1.3rem;
    color: #aaa;
    flex-shrink: 0;
    margin-left: 1rem;
}

.role-badge {
    display: inline-block;
    background: #e8eaf6;
    color: #3949ab;
    border-radius: 12px;
    padding: 0.2rem 0.75rem;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.empty-state {
    color: #888;
    font-style: italic;
    margin-top: 0.5rem;
}

/* ── Form sections ───────────────────────────────────────────────────── */
.form-section {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.form-section h2 {
    margin-top: 0;
}

.section-hint {
    color: #666;
    font-size: 0.9rem;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.form-field {
    margin-top: 1.25rem;
}

.field-label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.4rem;
    margin-top: 0;
}

.form-error {
    color: #c62828;
    font-size: 0.875rem;
    margin-top: 0.3rem;
}

.form-error-box {
    background: #ffebee;
    border-left: 3px solid #c62828;
    padding: 0.75rem 1rem;
    border-radius: 0 4px 4px 0;
    color: #c62828;
    margin-bottom: 1rem;
}

.form-warning-box {
    background: #fffbeb;
    border-left: 3px solid #d97706;
    padding: 0.75rem 1rem;
    border-radius: 0 4px 4px 0;
    color: #92400e;
    margin-bottom: 1rem;
}

/* ── File drop zone ──────────────────────────────────────────────────── */
.file-drop-zone {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border: 2px dashed #ccc;
    border-radius: 6px;
    background: #fafafa;
    cursor: default;
    transition: border-color 0.15s, background 0.15s;
}

.file-drop-zone.drag-over {
    border-color: #1a1a2e;
    background: #eef;
}

.drop-hint {
    width: 100%;
    margin: 0;
    font-size: 0.8rem;
    color: #999;
}

.file-btn {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: #1a1a2e;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    user-select: none;
    white-space: nowrap;
}

.file-btn:hover {
    background: #2d2d5e;
}

.file-name {
    font-size: 0.9rem;
    color: #555;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-clear-file {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #888;
    font-size: 1.1rem;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.btn-clear-file:hover {
    color: #c62828;
}

/* ── File preview (shown after selection) ────────────────────────────── */
.file-preview {
    margin-top: 0.75rem;
}

.file-preview img {
    max-width: 100%;
    max-height: 320px;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: block;
}

.file-badge {
    display: inline-block;
    background: #e8eaf6;
    color: #1a1a2e;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin: 0;
}

/* ── Gabarito status badge ───────────────────────────────────────────── */
.gabarito-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 0.6rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #166534;
}

.gabarito-ok-icon {
    font-size: 1rem;
    color: #16a34a;
    flex-shrink: 0;
}

/* ── Score card ──────────────────────────────────────────────────────── */
.score-card {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin: 1.5rem 0;
}

.score-value {
    font-size: 3rem;
    font-weight: bold;
    color: #1a1a2e;
}

.score-sep {
    font-size: 2rem;
    color: #999;
}

.score-max {
    font-size: 2rem;
    color: #555;
}

.edited-badge {
    font-size: 0.75rem;
    background: #fff3e0;
    color: #e65100;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    margin-left: 0.5rem;
}

/* ── Feedback list ───────────────────────────────────────────────────── */
.feedback-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feedback-list li {
    padding: 0.75rem 1rem;
    border-left: 3px solid #1a1a2e;
    margin-bottom: 0.75rem;
    background: #f8f9fa;
    border-radius: 0 4px 4px 0;
}

.feedback-list li strong {
    margin-right: 0.5rem;
}

.q-score {
    font-size: 0.85rem;
    color: #555;
    background: #e8eaf6;
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
}

.feedback-list li p {
    margin: 0.4rem 0 0;
    color: #444;
}

/* ── Professor comment ───────────────────────────────────────────────── */
.professor-comment {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #fffde7;
    border-left: 3px solid #f9a825;
    border-radius: 0 4px 4px 0;
}

.professor-comment p {
    margin: 0.4rem 0 0;
}

/* ── Data tables (coordinator dashboard, management views) ──────────── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.75rem;
}

.data-table th,
.data-table td {
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.data-table th {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.data-table tbody tr:hover {
    background: #f5f5fa;
}

.data-table a {
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 500;
}

.data-table a:hover {
    text-decoration: underline;
}

/* ── Small buttons (table actions) ──────────────────────────────────── */
.btn-small {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid #1a1a2e;
    color: #1a1a2e;
    background: transparent;
    cursor: pointer;
}

.btn-small:hover {
    background: #f0f0f8;
}

.btn-small.btn-danger {
    border-color: #c62828;
    color: #c62828;
}

.btn-small.btn-danger:hover {
    background: #ffebee;
}

/* ── Pendente badge ─────────────────────────────────────────────────── */
.pendente-badge {
    color: #e65100;
    font-weight: bold;
}

/* ── Turma group on professor dashboard ─────────────────────────────── */
.turma-group {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.turma-group h3 {
    margin: 0 0 0.5rem;
}

.turma-group h3 a {
    color: #1a1a2e;
    text-decoration: none;
}

.turma-group h3 a:hover {
    text-decoration: underline;
}

.disciplina-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.disciplina-list li {
    padding: 0.4rem 0;
}

.disciplina-list li a {
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 500;
}

.disciplina-list li a:hover {
    text-decoration: underline;
}

/* ── Status badges (envio status) ───────────────────────────────────── */
.status-badge {
    display: inline-block;
    font-size: 0.78rem;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    margin-left: 0.4rem;
}

.status-badge.pendente {
    background: #fff3e0;
    color: #e65100;
}

.status-badge.erro {
    background: #ffebee;
    color: #c62828;
}

/* ── Turma grid (parent dashboard) ─────────────────────────────────── */
.turma-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.turma-card {
    display: block;
    padding: 1.25rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s;
}

.turma-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.turma-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    color: #1a1a2e;
}

/* ── Review queue table ─────────────────────────────────────────────── */
.envios-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.envios-table th,
.envios-table td {
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.envios-table th {
    font-size: 0.8rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.envios-table tbody tr:hover {
    background: #f5f5fa;
}

/* ── Navbar unread message badge ────────────────────────────────────── */
.nav-mensagens-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: #e53935;
    color: #fff;
    border-radius: 9px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}

/* ── Inbox thread list ───────────────────────────────────────────────── */
.inbox-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.inbox-thread {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #ececec;
    background: #fff;
    transition: background 0.12s;
    cursor: pointer;
}

.inbox-thread:hover {
    background: #f5f5fa;
}

.inbox-thread.unread {
    background: #f0f4ff;
}

.inbox-thread-body {
    flex: 1;
    min-width: 0;
}

.inbox-thread-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inbox-thread.unread .inbox-thread-name {
    font-weight: 700;
}

.inbox-thread-subject {
    font-size: 0.85rem;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0.1rem;
    text-decoration: none;
}

.inbox-thread-subject:hover {
    text-decoration: underline;
    color: #1a1a2e;
}

.inbox-thread-meta {
    font-size: 0.78rem;
    color: #999;
    white-space: nowrap;
    align-self: flex-start;
    padding-top: 0.1rem;
}

.inbox-unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    background: #25d366;
    color: #fff;
    border-radius: 11px;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ── Autocomplete destinatário ───────────────────────────────────────── */
.autocomplete-wrapper {
    position: relative;
}

.autocomplete-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    margin-top: 0.25rem;
}

.autocomplete-input:focus {
    outline: none;
    border-color: #1a1a2e;
    box-shadow: 0 0 0 2px rgba(26,26,46,0.12);
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 200;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.autocomplete-item {
    padding: 0.55rem 0.8rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #1a1a2e;
    border-bottom: 1px solid #f0f0f0;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.focused {
    background: #f0f4ff;
}

.autocomplete-empty {
    padding: 0.6rem 0.8rem;
    color: #999;
    font-size: 0.9rem;
}

/* ── Onboarding photo modal ──────────────────────────────────────────── */
.onboarding-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.onboarding-modal {
    background: #fff;
    border-radius: 12px;
    padding: 2rem 2.5rem;
    max-width: 540px;
    width: 100%;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.22);
}

.onboarding-close {
    position: absolute;
    top: 0.9rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0.2rem 0.4rem;
}

.onboarding-close:hover {
    color: #1a1a2e;
}

.onboarding-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.onboarding-modal h2 {
    margin: 0 0 0.75rem;
    font-size: 1.3rem;
    color: #1a1a2e;
}

.onboarding-modal p {
    color: #444;
    line-height: 1.6;
    margin: 0.5rem 0;
}

.onboarding-modal strong {
    color: #1a1a2e;
}

.onboarding-tips {
    background: #f0f4ff;
    border-left: 3px solid #1a1a2e;
    border-radius: 0 6px 6px 0;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.7;
}

.onboarding-footer {
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.onboarding-dismiss {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: #666;
    cursor: pointer;
    user-select: none;
}

.onboarding-dismiss input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.onboarding-btn {
    padding: 0.55rem 1.5rem;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
}

.onboarding-btn:hover {
    background: #2d2d5e;
}

/* ── Nivel chip selector (turma form) ───────────────────────────────── */
.nivel-chip-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 0.25rem;
}

.nivel-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    user-select: none;
}

.nivel-chip input[type="radio"] {
    display: none;
}

.nivel-chip span {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border: 1px solid #bbb;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #444;
    background: #fff;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.nivel-chip input[type="radio"]:checked + span {
    background: #1a1a2e;
    color: #fff;
    border-color: #1a1a2e;
}

.nivel-chip:hover span {
    border-color: #1a1a2e;
}

.nivel-chip-outro input[type="text"] {
    padding: 0.3rem 0.6rem;
    border: 1px solid #bbb;
    border-radius: 4px;
    font-size: 0.9rem;
    width: 180px;
}

.nivel-chip-outro input[type="text"]:focus {
    outline: none;
    border-color: #1a1a2e;
}

/* ── Professor create: turma assignment table ────────────────────────── */
.prof-filter-bar {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.prof-filter-input {
    padding: 0.45rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    width: 100%;
}

.prof-filter-input:focus {
    outline: none;
    border-color: #1a1a2e;
    box-shadow: 0 0 0 2px rgba(26,26,46,0.1);
}

.nivel-filter-chips {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 0.15rem;
}

.nivel-filter-chip {
    padding: 0.2rem 0.65rem;
    border: 1px solid #bbb;
    border-radius: 14px;
    font-size: 0.8rem;
    background: #fff;
    color: #555;
    cursor: pointer;
    line-height: 1.5;
}

.nivel-filter-chip:hover {
    border-color: #1a1a2e;
    color: #1a1a2e;
}

.nivel-filter-chip.active {
    background: #1a1a2e;
    color: #fff;
    border-color: #1a1a2e;
}

.prof-turma-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.prof-turma-table th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    font-weight: 700;
    padding: 0.55rem 0.9rem;
    border-bottom: 2px solid #e0e0e0;
    background: #f7f7fb;
    text-align: left;
}

.prof-turma-table th + th,
.prof-turma-table td + td {
    border-left: 1px solid #e8e8f0;
}

.prof-turma-table td {
    padding: 0.55rem 0.9rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

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

.prof-turma-table tbody tr:hover td {
    background: #f5f5fa;
}

.nivel-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    background: #eef0ff;
    color: #3a3a6e;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.lotacao-select {
    padding: 0.3rem 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.875rem;
    width: 100%;
    background: #fff;
}

.lotacao-select:focus {
    outline: none;
    border-color: #1a1a2e;
}

/* ── Aluno picker (search + level filter + list) ─────────────────────── */
.aluno-picker-bar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.aluno-search-input {
    width: 100%;
    padding: 0.5rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.9rem;
}

.aluno-search-input:focus {
    outline: none;
    border-color: #1a1a2e;
    box-shadow: 0 0 0 2px rgba(26,26,46,0.1);
}

.nivel-filter-label {
    font-size: 0.8rem;
    color: #888;
    align-self: center;
    white-space: nowrap;
}

.aluno-picker {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
}

.aluno-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.9rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    user-select: none;
    transition: background 0.1s;
    gap: 0.75rem;
}

.aluno-option:last-of-type {
    border-bottom: none;
}

.aluno-option:hover {
    background: #f5f5fa;
}

.aluno-option.selected {
    background: #1a1a2e;
    color: #fff;
}

.aluno-option.selected .aluno-option-turma {
    color: rgba(255,255,255,0.65);
}

/* Multi-select checkbox variant */
.aluno-option-check {
    cursor: pointer;
}

.aluno-option-check input[type="checkbox"] {
    width: auto;
    margin: 0;
    flex-shrink: 0;
    accent-color: #1a1a2e;
}

.aluno-option-check:has(input:checked) {
    background: #eef0ff;
}

.aluno-option-name {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
}

.aluno-option-turma {
    font-size: 0.78rem;
    color: #888;
    white-space: nowrap;
}

.aluno-empty {
    padding: 1rem;
    text-align: center;
    color: #aaa;
    font-size: 0.875rem;
}

.aluno-selected-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.45rem 0.8rem;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #1b5e20;
}

.aluno-clear-btn {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
    padding: 0 0.2rem;
    line-height: 1;
}

.aluno-clear-btn:hover {
    color: #c62828;
}

.aluno-count-badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.1rem 0.55rem;
    background: #1a1a2e;
    color: #fff;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    vertical-align: middle;
}

/* ── CSV import result box ───────────────────────────────────────────── */
.import-result {
    padding: 0.9rem 1.2rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.import-result-ok {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
}

.import-result-empty {
    background: #fff8e1;
    color: #6d4c00;
    border: 1px solid #ffe082;
}

/* ── Coordinator action bar ──────────────────────────────────────────── */
.coord-action-bar {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.action-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.9rem 1.1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    min-width: 130px;
}

.action-group h3 {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
}

.action-group .btn-secondary {
    margin-top: 0;
    font-size: 0.9rem;
    padding: 0.35rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Revisão badge inside btn-secondary */
.revisao-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: #e53935;
    color: #fff;
    border-radius: 9px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}
