/* ==========================================================================
   Variáveis CSS (Cores, Fontes, Espaçamentos) - Final
   ========================================================================== */

:root {
    --cor-principal: rgba(0, 0, 0, 1);         /* Cor principal do texto */
    --cor-secundaria: rgba(51, 51, 51, 1);     /* Cor secundária do texto */
    --cor-fundo: rgba(240, 240, 240, 1);          /* Cor de fundo geral */
    --cor-destaque: rgba(0, 86, 179, 1);        /* Cor de destaque (links, botões) */
    --cor-botao: rgba(76, 175, 80, 1);          /* Cor de fundo dos botões */
    --cor-botao-hover: rgba(69, 160, 73, 1);     /* Cor de fundo dos botões no hover */
    --sombra-leve: 0 8px 16px rgba(0, 0, 0, 0.4);  /* Sombra leve ajustada */
    --sombra-forte: 0 12px 24px rgba(0, 0, 0, 0.6); /* Sombra forte ajustada */
    --fonte-principal: 'JMHTypewriterThin', sans-serif; /* Fonte principal */
    --fonte-titulo: 'JMHTypewriterBold', sans-serif; /* Fonte para títulos */
    --espacamento-pequeno: 0.8em;
    --espacamento-medio: 1.5em;
    --espacamento-grande: 3em;
}

/* ==========================================================================
   Estilos Globais (Reset, Body, Tipografia)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--fonte-principal);
    background-color: var(--cor-fundo);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    text-shadow: 1px 2px 4px rgba(94, 94, 94, 1);
    background-image: url('sky.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    align-items: center;
    font-size: 1.2em;
}

@media screen and (min-width: 1024px) {
    body {
        background-size: cover;
    }
}

/* ==========================================================================
   Cabeçalho (Logo, Título)
   ========================================================================== */
.logo-container {
    text-align: center;
    margin: var(--espacamento-grande) auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    border-radius: 12px;
    background: linear-gradient(to bottom, rgba(240, 240, 240, 0.9), rgba(220, 220, 220, 0.9));
}

.logo-container img {
    max-width: 100%;
    height: auto;
}

h2, #cabecalhoTexto {
    color: var(--cor-principal);
    text-shadow: 1px 2px 4px rgba(255, 255, 255, 1);
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: var(--espacamento-grande);
}

#cabecalhoTexto {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
}

/* ==========================================================================
   Container Principal
   ========================================================================== */
.container {
    text-align: center;
    background: linear-gradient(rgba(70, 130, 180, 0.4), rgba(34, 139, 34, 0.4), rgba(255, 255, 0, 0.4));
    border-radius: 10px;
    box-shadow: var(--sombra-leve);
    padding: 3vw;
    max-width: 500px;
    width: 90%;
    margin: auto;
    transition: box-shadow 0.3s ease-in-out;
}

.destaque-container {
    margin-bottom: 15px;
    background: linear-gradient(to bottom, rgba(240, 240, 240, 0.9), rgba(220, 220, 220, 0.9));
    padding: 15px;
    text-align: center;
    border-radius: 10px;
}

.container:hover {
    box-shadow: var(--sombra-forte);
}

/* ==========================================================================
   Lista de Presença
   ========================================================================== */
#lista-presenca li label.destacado {
    color: red;
    font-weight: bold;
}

#lista-presenca {
    list-style: none;
    padding: 0;
    text-align: center;
    font-size: 1.6em;
}

#lista-presenca li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border: 3px solid rgba(94, 94, 94, 0.5);
    margin: 3vw auto;
    padding: 3vw;
    width: 95%;
    background: linear-gradient(to bottom, rgba(135, 206, 250, 0.5), rgba(135, 206, 235, 0.5));
    border-radius: 90px;
    box-shadow: var(--sombra-forte); /* Sombra destacada na lista */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

#lista-presenca li:hover {
    transform: scale(1.05);
    color: rgba(0, 1, 1, 1);
    box-shadow: var(--sombra-forte);
}

#lista-presenca li input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

#lista-presenca li label {
    font-size: 1.5em;
    font-weight: bold; /* Nomes em negrito */
    display: inline-block;
    cursor: pointer;
    position: relative;
    padding-left: 2em;
}

#lista-presenca li label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.8em;
    height: 1.8em;
    border: 3px solid var(--cor-secundaria);
    border-radius: 0.3em;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

#lista-presenca li input[type="checkbox"]:checked + label::before {
    background-color: white;
    border-color: var(--cor-destaque);
    background-image: url('chek.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* ==========================================================================
   Botões e Formulário
   ========================================================================== */
#botoes-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5em;
    margin-top: 2em;
}

button {
    background: linear-gradient(to right, rgba(76, 175, 80, 0.8), rgba(69, 160, 73, 0.8));
    color: rgba(255, 255, 255, 1);
    padding: 2vw 4vw;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin: 8px auto;
    transition: background-color 0.3s ease-in-out, transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
    text-shadow: 1px 2px 4px rgba(30, 30, 30, 1);
    box-shadow: var(--sombra-leve);
    font-size: 1.5em;
    width: 100%;
    max-width: 300px;
}

button:hover {
    background: linear-gradient(to right, rgba(69, 160, 73, 0.8), rgba(62, 145, 66, 0.8));
    box-shadow: var(--sombra-forte);
}

button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.destaque-container {
    margin-bottom: 15px;
    background: linear-gradient(to bottom, rgba(240, 240, 240, 0.9), rgba(220, 220, 220, 0.9));
    padding: 15px;
    text-align: center;
    border-radius: 10px;
}

#resetar {
    background-color: #dc3545;
    color: white;
    padding: 2vw 4vw;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s ease-in-out, transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
    text-shadow: 1px 2px 4px rgba(30, 30, 30, 1);
    box-shadow: var(--sombra-leve);
    font-size: 1.5em;
    width: 100%;
    max-width: 300px;
}

#resetar:hover {
    background-color: #c82333;
    box-shadow: var(--sombra-forte);
    transform: scale(1.05);
}

form#ataForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
}

input[type="password"], select#grau, textarea {
    width: 100%;
    max-width: 300px;
    padding: 12px;
    border: 2px solid rgba(204, 204, 204, 1);
    border-radius: 8px;
    font-size: 1.2em;
    margin-top: 0.5em;
    transition: border-color 0.3s ease-in-out;
}

input[type="password"]:focus, select#grau:focus, textarea:focus {
    outline: none;
    border-color: var(--cor-destaque);
    box-shadow: 0 0 5px rgba(0, 86, 179, 0.5);
}

/* ==========================================================================
   Outros
   ========================================================================== */
#ordemDia {
    text-transform: uppercase;
    font-size: 1.6em;
    font-weight: bold;
    color: var(--cor-secundaria);
    text-align: center;
    margin: 25px auto;
    padding: 15px;
    border: 3px solid #ccc;
    border-radius: 12px;
    background-color: var(--cor-cartao);
    box-shadow: var(--sombra-leve);
}

#contadorValor {
    font-weight: bold;
    color: #ff0000;
    font-size: 1.6em;
}

#convocacaoInformacoes {
    text-align: center;
    font-size: 1.4em;
    color: #666666;
    margin-top: 15px;
}

#informacoes-adicionais {
    background-color: var(--cor-cartao);
    padding: 3vw;
    margin-top: 3vw;
    border-radius: 12px;
    box-shadow: var(--sombra-leve);
    text-align: center;
    max-width: 500px;
    width: 90%;
    margin: auto;
}

#informacoes-adicionais h4 {
    color: var(--cor-principal);
    text-align: center;
    font-size: 1.5em;
    text-shadow: none;
}

#informacoes-adicionais p {
    margin: 10px 0;
    color: var(--cor-secundaria);
    text-align: center;
    font-size: 1.2em;
    text-shadow: none;
}

#ataReuniaoContainer {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f8f8f8;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

#ataReuniao {
    font-size: 1.2em;
    font-weight: normal;
    color: var(--cor-secundaria);
    text-align: left;
    line-height: 1.6;
    text-transform: none;
}

/* ==========================================================================
   Rodapé
   ========================================================================== */

footer {
    color: rgba(255, 255, 255, 1);
    padding: 15px 0;
    text-align: center;
    font-size: 1.1em;
    text-shadow: 1px 2px 4px rgba(30, 30, 30, 1);
}

footer a {
    color: var(--cor-destaque);
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    text-shadow: 1px 2px 4px rgba(30, 30, 30, 1);
}

footer a:hover {
    text-decoration: underline;
}

footer p {
    font-size: 1.1em;
    text-shadow: 1px 2px 4px rgba(30, 30, 30, 1);
    text-align: center;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media screen and (max-width: 480px) {
    body {
        font-size: 18px;
    }
    .container {
        width: 95%;
        padding: 5vw;
    }
    #lista-presenca li {
        margin: 5vw auto;
        padding: 5vw;
    }
    button, #resetar {
        padding: 15px;
        font-size: 1.2em;
    }
    #lista-presenca li label {
        font-size: 1.2em;
    }
    #lista-presenca li input[type="checkbox"] + label::before {
        width: 1.5em;
        height: 1.5em;
    }
    h2, #cabecalhoTexto {
        font-size: 2em;
    }
}
/* ==========================================================================
   Notificação Toast
   ========================================================================== */

#toast-container {
    position: fixed; /* Fica fixo na tela */
    bottom: 20px; /* No canto inferior */
    left: 50%;
    transform: translateX(-50%); /* Centralizado horizontalmente */
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.toast-notification {
    background-color: #333; /* Fundo escuro */
    color: #fff; /* Texto claro */
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0; /* Começa invisível */
    transform: translateY(20px); /* Começa levemente abaixo */
    transition: opacity 0.3s ease, transform 0.3s ease; /* Animação suave */
}

/* Classe 'show' que o script.js irá adicionar */
.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Estilo para o botão "Desfazer" */
.toast-notification button {
    background: none;
    border: none;
    color: #4CAF50; /* Um verde que combina com seus botões */
    font-weight: bold;
    cursor: pointer;
    font-size: 1em;
    padding: 0;
    margin: 0;
    text-shadow: none; /* Remove a sombra de texto dos outros botões */
}

.toast-notification button:hover {
    text-decoration: underline;
    background: none; /* Garante que não mude o fundo no hover */
    box-shadow: none;
}