body {
    font-family: Arial, sans-serif;
    background-color: #f3f3f3;
    margin: 0;
    color: #111;
}

.container {
    max-width: 1100px;
    margin: 40px auto;
    background: #fff;
    padding: 28px;
    border-radius: 10px;
    box-sizing: border-box;
}

h2 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 24px;
}

.filtros-form {
    margin-bottom: 24px;
}

.filtros-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.campo label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.campo input,
.campo select {
    width: 100%;
    height: 54px;
    padding: 0 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
    background: #fff;
}

.acoes-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.acoes-form button,
.btn-limpar {
    display: inline-block;
    height: 44px;
    line-height: 44px;
    padding: 0 18px;
    border: none;
    border-radius: 6px;
    background: #0d6b3c;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    font-size: 15px;
}

.btn-limpar {
    background: #666;
}

.tabela-wrap {
    overflow-x: auto;
}

.tabela-alunos {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.tabela-alunos th,
.tabela-alunos td {
    border: 1px solid #ccc;
    padding: 12px;
    text-align: left;
}

.tabela-alunos th {
    background: #f0f0f0;
}

@media (max-width: 768px) {
    .container {
        margin: 20px;
        padding: 20px;
    }

    .filtros-grid {
        grid-template-columns: 1fr;
    }

    .acoes-form {
        flex-wrap: wrap;
    }

    .acoes-form button,
    .btn-limpar {
        width: 100%;
        text-align: center;
    }
}

.paginacao-topo {
    margin-top: 20px;
    max-width: 220px;
}

.campo-select-pagina label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.paginacao {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.pagina-link {
    display: inline-block;
    padding: 10px 16px;
    background: #0d6b3c;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
}

.pagina-link:hover {
    background: #09552f;
}

.pagina-atual {
    font-weight: bold;
}

.paginacao-container {
    margin-top: 18px;
    padding-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.por-pagina {
    margin-left: auto;
    font-size: 14px;
    color: #555;
}

.por-pagina form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.por-pagina label {
    margin: 0;
    font-size: 14px;
    color: #555;
}

.por-pagina select {
    width: auto;
    min-width: 70px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
}

button {
    display: inline-block;
    height: 44px;
    line-height: 44px;
    padding: 0 18px;
    border: none;
    border-radius: 6px;
    background: #0d6b3c;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
}

.tabela-admin th:last-child,
.tabela-admin td:last-child {
    width: 180px;
    white-space: nowrap;
}

.acoes-admin {
    white-space: nowrap;
}

.acoes-admin a {
    text-decoration: none;
}

.acoes-admin span {
    margin: 0 6px;
    color: #666;
}

.acoes-admin a {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

.acoes-admin a:first-child {
    background-color: #e0f2fe;
    color: #0369a1;
}

.acoes-admin a:last-child {
    background-color: #fee2e2;
    color: #b91c1c;
}

.acoes-admin a:hover {
    opacity: 0.85;
}

.msg-sucesso {
    background: #dcfce7;
    color: #166534;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.msg-erro {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.tabela-alunos tr:hover td {
    background-color: #f9fafb;
}

button {
    transition: all 0.2s ease;
}

button:hover {
    transform: translateY(-1px);
}

