/* Geral */
body {
    font-family: Arial, sans-serif;
    background: #f0f4f8;
    margin: 0;
    padding: 0;
}

/* Container central */
.container {
    max-width: 900px;
    margin: 30px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 3px 8px rgba(0,0,0,0.1);
}

/* Cabeçalho */
header {
    text-align: center;
    margin-bottom: 20px;
}
header img {
    max-width: 100px;
}
header h1 {
    margin-top: 10px;
    color: #3db5e5;
}

/* Formulários */
form {
    margin-top: 15px;
}
input[type="text"],
input[type="password"],
input[type="file"],
select {
    width: 100%;
    padding: 8px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}
button {
    background: #3db5e5;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
button:hover {
    background: #003060;
}

/* Mensagens */
.msg-success {
    background: #d4edda;
    color: #155724;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 10px;
}
.msg-error {
    background: #f8d7da;
    color: #721c24;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Tabela */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
table th, table td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: left;
}
table th {
    background: #3db5e5;
    color: white;
}
table tr:nth-child(even) {
    background: #f9f9f9;
}

/* Botões de ação */
.action-btn {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 4px;
    text-decoration: none;
    color: white;
    font-size: 14px;
}
.btn-download {
    background: #28a745;
}
.btn-delete {
    background: #dc3545;
}
.btn-download:hover {
    background: #218838;
}
.btn-delete:hover {
    background: #c82333;
}

/* =========================
   AJUSTES DE MARGENS/ALINHAMENTO
   ========================= */

/* Garante que o container respeita o max-width incluindo o padding,
   evitando “diferença” visual nas margens esquerda/direita */
.container {
    box-sizing: border-box;
}

/* Inputs e selects com largura exata ao espaço útil (sem “estourar” à direita) */
input[type="text"],
input[type="password"],
input[type="file"],
select,
textarea {
    box-sizing: border-box; /* inclui padding+border dentro dos 100% */
    width: 100%;
}
