* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f6f3ed;
    color: #2f2f2f;
    padding: 30px;
}

h1, h2, h3 {
    color: #2d3a22;
    margin-bottom: 20px;
}

p {
    margin-bottom: 10px;
}

a {
    color: #6b8e23;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Mensagens */
.alerta {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alerta-sucesso {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alerta-erro {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Formulários */
form {
    max-width: 650px;
    background: #ffffff;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

input,
textarea,
select {
    width: 100%;
    padding: 11px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

button {
    background: #6b8e23;
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

button:hover {
    background: #55751a;
}


/* para checkbox alinhados */
.campo-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.campo-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.campo-checkbox label {
    margin: 0;
    font-weight: 600;
}

/* Cabeçalho admin: saudação + sair */
.area-usuario-topo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.saudacao-usuario {
    color: rgba(255,255,255,.92);
    font-weight: 700;
}

.btn-logout-topo {
    background: rgba(255,255,255,.13);
    color: white;
    border: 1px solid rgba(255,255,255,.22);
    padding: 12px 18px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    transition: .2s;
}

.btn-logout-topo:hover {
    background: #F04A23;
}

/* Campo de senha com "mostrar/ocultar" */
.campo-senha {
    position: relative;
}

.campo-senha input {
    padding-right: 46px;
}

.btn-mostrar-senha {
    position: absolute;
    right: 6px;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.15rem;
    line-height: 1;
    padding: 0 10px;
    color: #666;
}

.btn-mostrar-senha:hover {
    background: none;
    color: #333;
}

/* MENU SANDUÍCHE (ADMIN) — compartilhado por todas as páginas do painel,
   incluídas via views/partials/admin_header.php. Ficava duplicado em
   listar.css/editar.css/cadastrar.css/relatorio.css (já causou um bug de
   z-index escondido em 3 das 4 cópias) — centralizado aqui. */
.btn-menu-hamburguer {
    position: absolute;
    top: 34px;
    left: 42px;
    background: rgba(255,255,255,.15);
    border: none;
    color: white;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 12px;
    padding: 8px 14px;
    transition: background 0.2s;
}

.btn-menu-hamburguer:hover {
    background: rgba(255,255,255,.28);
}

.menu-admin-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 900;
}

.menu-admin-overlay.aberto {
    display: block;
}

.menu-admin-drawer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 300px;
    max-width: 85vw;
    background: linear-gradient(160deg, #2d0b5f, #4b1a8d);
    color: white;
    z-index: 901;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 8px 0 30px rgba(0,0,0,.3);
    display: flex;
    flex-direction: column;
}

.menu-admin-drawer.aberto {
    transform: translateX(0);
}

.menu-admin-topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
    border-bottom: 1px solid rgba(255,255,255,.15);
}

.menu-admin-topo span {
    color: #F6C453;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.btn-fechar-menu {
    background: none;
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
}

.menu-admin-links {
    display: flex;
    flex-direction: column;
    padding: 12px;
    gap: 4px;
    overflow-y: auto;
}

.menu-admin-links a {
    color: white;
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 1.05rem;
    transition: background 0.2s;
}

.menu-admin-links a:hover {
    background: rgba(255,255,255,.12);
    color: #F6C453;
}

.versao-site {
    margin-top: 16px;
    padding: 0 16px;
    color: rgba(255,255,255,.5);
    font-size: .8rem;
    text-align: center;
}

.btn-submenu-admin {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    color: white;
    text-align: left;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submenu-admin:hover {
    background: rgba(255,255,255,.12);
    color: #F6C453;
}

.seta-submenu {
    transition: transform 0.2s;
}

.btn-submenu-admin[aria-expanded="true"] .seta-submenu {
    transform: rotate(180deg);
}

.submenu-admin {
    display: none;
    flex-direction: column;
    padding-left: 14px;
}

.submenu-admin.aberto {
    display: flex;
}

.submenu-admin a {
    font-size: .95rem;
}

/* Responsividade */
@media (max-width: 600px) {
    body {
        padding: 16px;
    }

    form {
        padding: 20px;
    }

    .btn-menu-hamburguer {
        top: 14px;
        left: 14px;
        font-size: 1.3rem;
        padding: 7px 11px;
    }
}