/* Importação da Fonte Nunito */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

:root {
    --roxo: #7C3AED;
    --roxo-claro: #A78BFA;
    --verde: #22C55E;
    --vermelho: #EF4444;
    --amarelo: #FACC15;
    --fundo: #F5F3FF;
    --texto: #1F2937;
    --branco: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Remove brilho de toque no mobile */
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--fundo);
    color: var(--texto);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Containers e Cards (Soft UI) */
.container {
    width: 100%;
    max-width: 480px; /* Largura ideal para Mobile */
    margin: 0 auto;
    padding: 20px;
}

.card {
    background: var(--branco);
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    animation: aparecer 0.4s ease;
}

/* Botões Estilizados */
.botao {
    background: var(--roxo);
    color: white;
    padding: 16px 22px;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.botao:hover {
    transform: scale(1.02);
}

.botao:active {
    transform: scale(0.95);
}

.botao-outline {
    background: transparent;
    border: 2px solid var(--roxo);
    color: var(--roxo);
}

/* Inputs e Formulários */
input, select {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    margin-bottom: 20px;
    border-radius: 12px;
    border: 2px solid #E5E7EB;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
}

input:focus, select:focus {
    border-color: var(--roxo-claro);
}

/* Estilo da Logo em Canto */
.logo-container {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

.main-logo {
    width: 50px;
    height: auto;
    transition: 0.3s;
}

/* Logo Centralizada (Login/Hero) */
.logo-central .main-logo {
    width: 200px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 15px rgba(124, 58, 237, 0.6));
    animation: pulsarGlow 3s infinite ease-in-out;
}

/* Classe disparada via JS para o salto */
.logo-bounce {
    animation: bounceJump 0.5s ease-out !important;
}

.main-logo:hover {
    transform: rotate(-5deg) scale(1.1);
}

/* Modal / Pop-up */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none; /* Escondido por padrão */
    align-items: flex-end; /* Abre de baixo para cima no mobile */
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--branco);
    width: 100%;
    max-width: 480px;
    padding: 30px;
    border-radius: 24px 24px 0 0;
    animation: deslizarSubir 0.3s ease-out;
}

/* Badge de Cores Dinâmicas */
.cor-entrada { color: var(--verde) !important; }
.cor-gasto { color: var(--vermelho) !important; }

/* Animações */
@keyframes aparecer {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulsarGlow {
    0%, 100% { filter: drop-shadow(0 0 15px rgba(124, 58, 237, 0.6)); }
    50% { filter: drop-shadow(0 0 25px rgba(124, 58, 237, 0.9)); }
}

@keyframes deslizarSubir {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes bounceJump {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px) scale(1.05); }
    70% { transform: translateY(-10px); }
}

/* Utilitários */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }