/* Estilos gerais para a página */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.container {
    width: 80%;
    max-width: 900px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
    color: #444;
    text-align: center;
}

/* Estilo para o botão de upload */
input[type="file"] {
    display: block;
    margin: 20px auto;
    padding: 10px 15px;
    border: 2px dashed #ccc;
    border-radius: 6px;
    cursor: pointer;
}

/* Estilos para a tabela */
table {
    width: 100%;
    border-collapse: collapse; /* Remove o espaço entre as bordas */
    margin-top: 20px;
}

th, td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

/* Cabeçalho da tabela */
th {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}

/* Linhas alternadas da tabela para melhor leitura */
tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Efeito ao passar o rato sobre uma linha */
tr:hover {
    background-color: #e9ecef;
}

/* Estilos gerais (sem alteração) */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.container {
    width: 80%;
    max-width: 900px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1, h2 {
    color: #444;
    text-align: center;
}

/* Input de ficheiro (sem alteração) */
input[type="file"] {
    display: block;
    margin: 20px auto;
    padding: 10px 15px;
    border: 2px dashed #ccc;
    border-radius: 6px;
    cursor: pointer;
}

/* Tabela (sem alteração) */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 30px;
}

th, td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #e9ecef;
}

/* --- NOVOS ESTILOS --- */

/* Classe para esconder elementos */
.hidden {
    display: none;
}

/* Estilo para o botão de envio */
#sendButton {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background-color: #28a745; /* Verde */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s;
}

#sendButton:hover {
    background-color: #218838;
}

#sendButton:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Estilo para as mensagens de status */
#statusMessage {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.status-success {
    background-color: #d4edda;
    color: #155724;
}

.status-error {
    background-color: #f8d7da;
    color: #721c24;
}

.status-loading {
    background-color: #e2e3e5;
    color: #383d41;
}

#paginationControls {
    margin-top: 20px;
    text-align: center;
}

.page-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 12px;
    margin: 0 4px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.page-btn:hover:not(:disabled) {
    background-color: #0056b3;
}

.page-btn.active {
    background-color: #0056b3;
    cursor: default;
}

.page-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}