/* Fonte padrão do AdminLTE */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap');

body {
    margin: 0;
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    background-color: #f4f6f9;
    color: #212529;
    /* texto padrão */
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
}

header,
main,
.bottom-nav {
    background-color: #edf0f3;
}

header {
    /* background-color: #007bff; azul padrão AdminLTE (Bootstrap primary) */
    background-color: #d6dde3;
    /* verde compatível com a identidade visual da Coopama */
    color: #1a2025;
    text-align: center;
    padding: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    user-select: none;
}

main {
    padding: 1rem;
    margin-bottom: 4rem;
    /* espaço para o menu inferior fixo */
}

.texto-2025 {
    color: #1a2025;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #d6dde3;
    border-top: 1px solid #dee2e6;
    /* borda cinza clara */
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
    user-select: none;

    color: #0076ff;
}

.bottom-nav a {
    text-decoration: none;
    /* color: #007bff; azul padrão */
    color: #0076ff;
    /* verde compatível com a identidade visual da Coopama */
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: color 0.3s ease;
}

.bottom-nav a:hover {
    color: #005FCC;
    /* azul mais escuro */
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    /* background: rgba(0, 0, 0, 0.5); */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    /* background: #ffffff; */
    padding: 1.5rem;
    border-radius: 0.25rem;
    width: 90%;
    /* max-width: 400px; */
    /* box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); */
    /* color: #212529; */
}

.modal-content h2 {
    margin-top: 0;
    font-weight: 600;
    font-size: 1.5rem;
}

.modal-content button {
    margin-top: 1rem;
    /* background: #007bff;
    color: white; */
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* .modal-content button:hover {
    background: #0056b3;
} */

select {
    width: 100%;
    padding: 0.5rem;
    margin: 0.5rem 0;
    font-size: 1rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    font-family: inherit;
}

table {
    background: #ffffff;
    border-radius: 0.25rem;
    overflow: hidden;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

table th,
table td {
    border-bottom: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
    text-align: left;
    font-weight: 400;
    font-size: 1rem;
    color: #495057;
}

.btn-cultura,
.btn-tipo {
    margin: 0.3rem;
    padding: 0.5rem 1rem;
    background-color: #e2e6ea;
    /* cinza claro */
    border: 1px solid #adb5bd;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    color: #212529;
}

.btn-cultura.selecionado,
.btn-tipo.selecionado {
    background-color: #007bff;
    color: white;
    border-color: #0056b3;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.6);
}

.btn-tipo.selecionado {
    font-weight: 700;
}

.botao-voltar {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    user-select: none;
}

.botao-voltar:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.logo-coopama {
    width: 12rem;
    max-width: 100%;
    height: auto;
    cursor: pointer;
}

/* Dark mode */

@media (prefers-color-scheme: dark) {
    body {
        background: #343a40;
        /* fundo escuro */
        color: #ced4da;
        /* texto cinza claro */
    }

    header,
    main,
    .bottom-nav {
        background-color: #495057;
        color: #f8f9fa;
    }

    .bottom-nav a {
        color: #74c0fc;
        /* azul claro */
    }

    .bottom-nav a:hover {
        color: #a5d8ff;
    }

    .modal-content {
        background: #212529;
        color: #f8f9fa;
    }

    .btn-cultura,
    .btn-tipo {
        background-color: #6c757d;
        border-color: #adb5bd;
        color: #e9ecef;
    }

    .btn-cultura.selecionado,
    .btn-tipo.selecionado {
        background-color: #339af0;
        border-color: #74c0fc;
        color: white;
        box-shadow: 0 0 8px rgba(51, 154, 240, 0.7);
    }

    .botao-voltar {
        border-color: #f8f9fa;
        color: #f8f9fa;
    }

    .botao-voltar:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }
}