@charset "UTF-8";

/* 1. CONFIGURAÇÕES GLOBAIS */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

:root {
    --corPrimaria: #1a73e8;
    --corSaldo: #1d5020;
    --corFundo: #D8EAF4;
    --corTexto: #333;
    --corSucesso: #28a745;
    --corErro: #d9534f;
}

body {
    background-color: var(--corFundo);
    font-family: 'Arial', sans-serif;
    color: var(--corTexto);
    padding-bottom: 90px;
    overflow-x: hidden;
    width: 100%;
}

/* 2. ESTRUTURA PRINCIPAL */
#contain {
    display: flex;
    flex-flow: column;
    align-items: center;
    width: 100%;
}

header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f0f0f0;
    padding: 15px;
    margin-bottom: 50px;
    box-shadow: 0px 2px 5px rgba(0,0,0,0.1);
}

h1 {
    font: normal bold 1.2em 'Lucida Sans', sans-serif;
    color: var(--corPrimaria);
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 15px;
    box-shadow: 0px -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-evenly;
}

/* 3. ÍCONES E INTERATIVIDADE */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    cursor: pointer !important;
    color: var(--corPrimaria);
    font-size: 28px;
    transition: transform 0.1s;
    user-select: none;
}

.material-symbols-outlined:active {
    transform: scale(0.8);
}

/* 4. SEÇÕES (92vw) */
.content-section {
    background-color: white;
    display: none;
    flex-flow: column;
    width: 92vw;
    margin-top: -20px; 
    position: relative;
    z-index: 2;
    padding: 25px 20px;
    align-items: center;
    gap: 15px;
    border-radius: 20px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
    margin-bottom: 30px;
}

.content-section h2 {
    color: var(--corPrimaria);
    font-size: 1.2em;
    border-bottom: 1px solid #eee;
    width: 100%;
    text-align: center;
    padding-bottom: 10px;
    margin-bottom: 5px;
}

/* 5. RESUMO */
#resumo {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    font: normal bolder 1.1em 'Roboto Mono', monospace;
    color: var(--corSaldo);
    margin-bottom: 25px;
}

.valor-capital { font-size: 2.2em; }

/* 6. CARDS */
.card-pagamento {
    cursor: pointer;
    width: 70vw;
    background-color: #fff;
    border-left: 5px solid var(--corSucesso);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 10px;
}

.pagamento-dados { display: flex; flex-direction: column; }
.pg-cliente { font-weight: bold; font-size: 1em; }
.pg-valor { color: var(--corSaldo); font-size: 0.9em; margin-top: 3px; }

.pagamento-detalhes { text-align: right; display: flex; flex-direction: column; gap: 5px; }
.pg-data { font-size: 0.85em; font-weight: bold; color: var(--corSucesso); }
.pg-parcela { font-size: 0.75em; background: #eee; padding: 2px 8px; border-radius: 4px; color: #555; }

/* 7. ESTADOS ESPECIAIS (HISTÓRICO) */
.card-historico {
    border-left: 5px solid var(--corPrimaria) !important;
    opacity: 0.7;
    filter: grayscale(0.5);
    cursor: default !important;
}

.pago-status {
    background-color: #d4edda;
    color: #155724;
    font-size: 0.7em;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

/* 8. FORMULÁRIO */
.form-group { width: 100%; display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 0.85em; font-weight: bold; color: var(--corPrimaria); }
.form-group input, .form-group select { 
    padding: 14px; 
    border: 1px solid #ccc; 
    border-radius: 8px; 
    font-size: 1em; 
    width: 100%;
}

.botao-sucesso {
    width: 100%;
    padding: 16px;
    background-color: var(--corSucesso);
    color: white;
    border: none;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1em;
}

@keyframes subir {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.animar-entrada { animation: subir 0.3s ease-out forwards; }

header {
    position: relative;
    z-index: 60; /* Maior que o menu e o blur */
}

/* Garante que o conteúdo principal não suba demais */
main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ESTADO DE ATRASO (Borda Vermelha) */
.em-atraso {
    border-left: 5px solid var(--corErro) !important;
}

.em-atraso .pg-data {
    color: var(--corErro) !important;
}

/* Efeito de suavidade no valor */
.valor-capital {
    transition: filter 0.3s ease, opacity 0.3s ease;
}

/* Classe que o JavaScript vai adicionar/remover */
.ocultar-capital {
    pointer-events: none; /* Impede selecionar o texto quando oculto */
}

/* AJUSTE DO MODAL DE VALIDAÇÃO (Para garantir que apareça sobre tudo) */
#modal-validacao {
    z-index: 3000 !important;
}

/* 9. AJUSTES DINÂMICOS (BLACKLIST) */
#container-exclusao {
    animation: subir 0.3s ease-out;
}

#check-blacklist {
    accent-color: var(--corErro); /* Deixa a cor do "check" vermelha */
    transform: scale(1.2); /* Facilita o toque no mobile */
}

#container-exclusao label:active {
    background-color: #fff0f0; /* Feedback visual ao tocar no label */
    border-radius: 8px;
}

#btn-excluir-emprestimo {
    transition: color 0.2s;
}

#btn-excluir-emprestimo:active {
    color: var(--corErro) !important;
}

/* Trava de Segurança: Esconde tudo que não é Login por padrão */
#app-content, header, footer {
    display: none;
}

/* Centralização do Painel de Login */
#section-auth {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100vw;
    position: fixed; /* Fixa o login na frente de tudo */
    top: 0;
    left: 0;
    z-index: 9999;
    background-color: var(--corFundo); /* Ou a cor que você desejar para a tela de login */
}

#Privacidade {
    text-decoration: none;
    margin-top: 20px;
    transition: 250ms;
}

#Privacidade:hover {
    color: purple;
}

