/* Estilos gerais */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #002880;
}

.container {
    text-align: center;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}
.info-container {
            text-align: center;
            margin: 40px 0;
            font-size: 1.2em;
            color: #0c1c3a;
        }

header h2 {
    margin-top: 0;
    color: #0c1c3a;
}

/* Estilos para tabelas */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    table-layout: fixed; /* Adiciona layout fixo para tabelas */
}

th, td {
    padding: 5px; /* Reduz o padding para tornar a tabela mais compacta */
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #0c1c3a;
    color: white;
    cursor: pointer;
}

th.sortable:hover {
    background-color: #09172e;
}

/* Largura específica para colunas */
th.index-column, td.index-column {
    width: 5%; /* Reduzir a largura da coluna de numeração */
}

th:nth-child(2), td:nth-child(2) {
    width: 43%; /* Ajustar a largura da coluna Nome */
}

th:nth-child(3), td:nth-child(3) {
    width: 43%; /* Ajustar a largura da coluna Status */
}

th:nth-child(4), td:nth-child(4) {
    width: 27%; /* Ajustar a largura da coluna Observação */
}

th:nth-child(5), td:nth-child(5) {
    width: 14%; /* Ajustar a largura da coluna Ações */
}

/* Estilos para formulários */
form {
    margin-top: 20px;
}

label {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

input[type="text"],
input[type="password"],
select {
    width: 100%;
    padding: 5px; /* Reduzir o padding para tornar os campos mais compactos */
    margin-bottom: 15px; /* Reduzir a margem inferior para tornar os campos mais compactos */
    border: 1px solid #ccc;
    border-radius: 5px;
}

input[type="submit"],
button {
    width: 100%;
    padding: 10px;
    background-color: #0c1c3a;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

input[type="submit"]:hover,
button:hover {
    background-color: #09172e;
}

/* Estilos para botões */
button.delete-button {
    background-color: red;
    color: white;
    padding: 5px;
    border: none;
    cursor: pointer;
}

button.delete-button:hover {
    background-color: darkred;
}

button#openAddModal,
button#updateAllButton {
    background-color: rgb(0, 255, 34);
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
}

button#openAddModal:hover,
button#updateAllButton:hover {
    background-color: darkblue;
}

/* Estilos para o modal */
#addModal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

#addModal .modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

#addModal h2 {
    margin-top: 0;
    color: #0c1c3a;
}

#addModal button {
    width: auto;
    margin-top: 10px;
}

#addModal button#closeAddModal {
    background-color: red;
}

#addModal button#closeAddModal:hover {
    background-color: darkred;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    table, th, td {
        font-size: 14px;
    }

    input[type="text"],
    input[type="password"],
    select,
    input[type="submit"],
    button {
        font-size: 14px;
        padding: 8px;
    }
}
