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

html,
body {
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
    background:
    linear-gradient(rgba(255, 255, 255, 0.85),
        rgba(255, 255, 255, 0.85)),
 
    
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}


/* MENU (SIDEBAR) */
.sidebar {
    position: fixed;
    /* fixo no lado esquerdo */
    top: 80px;
    /* abaixo do cabeçalho (80px) */
    left: 0;
    width: 250px;
    bottom: 40px;
    /* vai até o rodapé */
    background-color: #030303;
    color: #b3b8d4;

    /* se quiser rolagem interna: */
    overflow-y: auto;
    transition: transform 0.3s;
    transform: translateX(-250px);
    /* escondido inicialmente em telas pequenas */
    z-index: 1000;

    background: #030303 url("../img/CORA_VIDA_VERMELHO.png") no-repeat center bottom;
    background-position: center calc(100% - 50px);
    background-size: 50%;
}

.sidebar.open {
    transform: translateX(0);
    /* aparece */
}

.sidebar ul {
    list-style: none;
    padding: 10px;
    margin: 0;
}

.sidebar li {
    margin-bottom: 5px;
}

.sidebar a {
    display: block;
    color: #b3b8d4;
    text-decoration: none;
    padding: 10px 15px;
    transition: background 0.3s;
}

.sidebar a:hover {
    background-color: #1a2f4e;
}

/* Submenu */
.submenu .submenu-items {
    display: none;
    margin-left: 20px;
}

.submenu .submenu-toggle {
    cursor: pointer;
    position: relative;
}

.submenu .submenu-toggle .arrow {
    float: right;
    /* Mantém o elemento flutuando à direita */
    border: solid #b3b8d4;
    border-width: 0 2px 2px 0;
    padding: 3px;
    margin-top: 5px;
    transform: rotate(45deg);
    transition: transform 0.3s;
}

.submenu.open .submenu-toggle .arrow {
    transform: rotate(225deg);
}

.submenu.open .submenu-items {
    display: block;
}


.headerCabecalho {
    width: 100%;
    /* O cabeçalho ocupa toda a largura */
    height: 80px;
    /* Define uma altura fixa */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #030303;
    /* Cor de fundo vermelho */
    padding: 0;
}

.headerCabecalho img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    /* Mantém proporção */
}

.menu-btn {
    position: absolute;
    top: 20px;
    /* ajuste conforme necessário */
    left: 20px;
    /* ou left: 20px para canto esquerdo */
    font-size: 24px;
    background-color: #030303;
    /* ou transparente */
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 2000;
    /* para ficar acima da imagem do cabeçalho */
}


/* OVERLAY */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    /* menor que a sidebar */
    z-index: 900;
    /* escondido por padrão */
    display: none;

}

.overlay.show {
    display: block;
}



/* MAIN CONTENT */
.main-content {
    margin-left: 250px;
    /* em desktops, deixa espaço pro sidebar */
    margin-top: 80px;
    /* abaixo do cabeçalho */
    padding: 20px;
    transition: margin-left 0.3s;
}

.portal-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
}





/* INICIO DE STYLE PARA OS ICONES */

.admin-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.admin-option {
    text-align: center;
}

.icon-container {
    position: relative;
    width: 100px;
    height: 100px;
}

.icon-container img {
    width: 100%;
    height: 100%;
    display: block;
}

.icon-container p {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 5px 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 14px;
    text-align: center;
    width: 100%;
}

.admin-option a {
    text-decoration: none;
    /* Remove o sublinhado dos links */
    color: inherit;
    /* Garante que o texto herde a cor do container */
    display: inline-block;
    /* Permite padding e margens ao redor do link */
}

/* FIM DE STYLE PARA OS ICONES */

/* INICIO DA DEFINIÇÃO DO MINISTERIO NOME, QUE FICA AO LADO DO ICONE DO HEADER */

.ministerioNome {
    font-size: 20px;
    /* Aumenta o tamanho do texto */
    font-weight: bold;
    /* Deixa o texto em negrito */
    color: white;
    /* Cor branca para o texto */
    text-transform: uppercase;
    /* Coloca o texto em letras maiúsculas */
    font-family: 'Arial', sans-serif;
    /* Define a fonte */
    letter-spacing: 2px;
    /* Espaçamento entre as letras */
    text-shadow: 1px 1px 2px black;
    /* Adiciona um sombreamento ao texto */
}

/* FIM*/

/* FOOTER */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background-color: #333;
    color: #fff;
    text-align: center;
    line-height: 40px;
}

@media (max-width: 768px) {
    body {
        font-size: 18px;
    }

    .sidebar {
        top: 80px;
        /* ← Mesma altura do header */
        height: calc(100% - 80px);
        /* se quiser caber até o rodapé */
        transform: translateX(-250px);
        bottom: 40px;
        /* idem no mobile */
        height: auto;
        /* se quiser permitir a rolagem inteira */
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        margin-top: 20px;
        /* Se quiser espaço para o header */
    }

    .ministerioNome {
        font-size: 20px;
        /* Reduz o tamanho do texto */
        letter-spacing: 1.5px;
        /* Ajusta o espaçamento entre letras */
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .sidebar {
        top: 80px;
        /* ← Mesma altura do header */
        height: calc(100% - 80px);
        /* se quiser caber até o rodapé */
        transform: translateX(-250px);
        bottom: 40px;
        /* idem no mobile */
        height: auto;
        /* se quiser permitir a rolagem inteira */
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        margin-top: 20px;
        /* Se quiser espaço para o header */
    }

    .ministerioNome {
        font-size: 16px;
        /* Texto menor para telas muito pequenas */
        letter-spacing: 1px;
        /* Reduz ainda mais o espaçamento */
        text-shadow: 0.5px 0.5px 1px black;
        /* Reduz a sombra */
    }

}