:root {
    --primary-color: #20b2aa; /* Verde Água */
    --secondary-color: #6a5acd; /* Roxo */
    --bg-color: #f8f9fa;
    --text-color: #333;
    --white: #ffffff;
    --gray: #999;
    --radius: 16px;
    --shadow: 0 10px 25px rgba(0,0,0,0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color); 
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.app-container {
    width: 100%;
    max-width: 390px;
    height: 100vh;
    max-height: 844px;
    background-color: var(--bg-color); /* Seu teste */
    position: relative;
    display: flex;
    flex-direction: column; /* Alinha os filhos verticalmente */
    overflow: hidden; 
    box-shadow: var(--shadow);
}

#app-content {
    flex: 1; /* Faz esta div ocupar TODO o espaço disponível acima do nav */
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
}

/* No desktop, arredondamos as bordas para parecer um device */
@media (min-height: 500px) and (min-width: 500px) {
    .app-container {
        border-radius: 30px;
        border: 8px solid #333;
    }
}

/* Splash Screen */
.splash-screen {
    position: absolute;
    inset: 0;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    transition: opacity 0.6s ease-in-out;
}

.logo-splash {
    width: 180px;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* Utilitários de Animação de Tela */
.animate-in {
    animation: fadeIn 0.4s ease-out forwards;
}

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

.hidden { display: none !important; }