/* Estilos Gerais */
body {
    font-family: 'Poppins', Arial, sans-serif;
    background-color: #f4f7fa;
    color: #333;
    margin: 0;
    padding: 0;
    text-align: center;
}

/* Cabeçalhos */
h1, h2 {
    color: #3f7adf;
    margin-bottom: 20px;
}

/* Formulário */
form {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto 30px auto;
    text-align: left;
}

label {
    display: block;
    font-weight: bold;
    margin-top: 15px;
}

input, select, button {
    margin-top: 10px;
    padding: 12px;
    width: 100%;
    max-width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

button {
    background: #3f7adf;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
    padding: 12px;
}

button:hover {
    background: #1f5aa0;
}

/* Botões de ação */
.btn-edit, .btn-delete, .btn-relatorio, .btn-voltar, .btn-novo-estabelecimento {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-edit {
    background: #ffc107;
}

.btn-edit:hover {
    background: #e0a800;
}

.btn-delete {
    background: #dc3545;
}

.btn-delete:hover {
    background: #c82333;
}

.btn-relatorio:hover, .btn-voltar:hover, .btn-novo-estabelecimento:hover {
    background: #218838;
}

/* Tabela */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    border-spacing: 0;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background: #3f7adf;
    color: white;
    text-transform: uppercase;
    font-weight: bold;
}

td {
    background: #fff;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Botão de Deletar */
form[action*="deletar"] button {
    background: #dc3545;
}

form[action*="deletar"] button:hover {
    background: #c82333;
}

/* Responsividade */
@media (max-width: 768px) {
    body {
        padding: 20px;
    }
    
    form {
        max-width: 100%;
    }
    
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Contêiner para os botões no topo */
.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

/* Avisos */
.aviso {
    padding: 20px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    color: #721c24;
    text-align: center;
    margin-top: 20px;
}

.grafico-pizza {
    max-width: 600px;
    height: auto;
    margin-top: 20px;
}

/* Estilo adicional para links */
a {
    text-decoration: none;
    color: inherit;
}

/* Estilos para tabelas mais organizadas */
.koda-table td, .koda-table th {
    padding: 15px;
    text-align: center;
    vertical-align: middle;
}

.acoes-cell {
    justify-content: center;
    flex-wrap: nowrap;
}
