/* Reset básico */
body, h1, p, a, label, input, button {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

/* Estilo geral */
body {
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

/* Container de formulário */
.container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    text-align: center;
}

/* Container para páginas amplas */
.admin-container {
    background: #fff;
    padding: 20px;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 1200px;
}

/* Cabeçalho da página */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-header h1 {
    font-size: 28px;
    color: #333;
}

.admin-header .admin-actions {
    display: flex;
    gap: 10px;
}

.admin-header .admin-actions button {
    padding: 8px 15px;
    font-size: 14px;
}

/* Conteúdo principal */
.admin-content {
    margin-top: 20px;
}

/* Rodapé */
footer {
    text-align: center;
    margin-top: 20px;
}

/* Títulos */
h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

/* Labels e inputs */
label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    text-align: left;
}

input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

/* Botão */
button {
    background: #007BFF;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    width: auto;
}

button:hover {
    background: #0056b3;
}

/* Links */
a {
    color: #007BFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Mensagem de erro */
.error {
    color: red;
    font-size: 14px;
    margin-top: 10px;
}

/* Ajuste para tabelas */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

thead th {
    background-color: #007BFF;
    color: #fff;
    text-align: left;
    padding: 10px;
    border: 1px solid #ddd;
}

tbody td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: middle;
}

tbody td:last-child {
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
}

tbody tr:hover {
    background-color: #f1f1f1;
}

/* Ajuste específico para botões dentro de tabelas */
table button {
    margin: 2px;
    padding: 5px 10px;
    font-size: 12px;
    display: inline-block;
    width: auto; /* Permite que os botões se ajustem ao texto */
    text-align: center;
}

/* Limitação do tamanho das colunas */
th, td {
    word-wrap: break-word;
    max-width: 200px;
}

select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    background-color: #fff;
}

/* Estilização do menu de navegação */
ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

ul li {
    margin-bottom: 10px;
}

ul li a {
    text-decoration: none;
    color: #007BFF;
    font-size: 16px;
}

ul li a:hover {
    text-decoration: underline;
}

textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}