:root {
    --primary-color: #4A90E2;    /* Azul Céu */
    --accent-color: #8D6E63;     /* Tom Terroso (Madeira/Cruz) */
    --bg-color: #F0F2F5;         /* Cinza muito claro para o fundo */
    --card-bg: #FFFFFF;          /* Branco puro para os cards */
    --text-main: #333333;
    --text-light: #777777;
}

/* RESET E BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    padding-bottom: 80px; /* Espaço para não esconder conteúdo atrás do menu */
}

/* CABEÇALHO */
header {
    background-color: var(--card-bg);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

header h3 {
    color: var(--primary-color);
    font-weight: 800;
}

#language-selector {
    padding: 5px 10px;
    border-radius: 15px;
    border: 1px solid #ddd;
    background: #fff;
}

/* ÁREA PRINCIPAL */
main {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto; /* Centraliza no PC */
}

/* CARDS (CAIXAS BRANCAS) */
.card {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
    margin-bottom: 20px;
}

.highlight-card {
    border-top: 5px solid var(--primary-color);
}

/* TEXTO DO VERSÍCULO */
.verse-content p {
    font-size: 1.3rem;
    line-height: 1.5;
    font-style: italic;
    color: #444;
    margin: 15px 0;
}

.verse-content strong {
    display: block;
    text-align: right;
    color: var(--accent-color); /* Tom terroso na referência */
    margin-top: 10px;
}

/* BOTÕES GERAIS */
.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.action-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background-color: #f0f4f8;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.share-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

/* BOTÕES DE EMOÇÃO */
.emotion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.emotion-btn {
    background-color: var(--card-bg);
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 15px;
    font-size: 1rem;
    color: var(--text-main);
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.emotion-btn:active {
    background-color: #e3f2fd;
    border-color: var(--primary-color);
}

/* SISTEMA DE ABAS (IMPORTANTE!) */
.tab-content {
    display: none; /* Esconde tudo por padrão */
    animation: fadeIn 0.4s;
}

.tab-content.active {
    display: block; /* Só mostra quem tem a classe active */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* INPUTS E BÍBLIA */
.full-width-input, #bible-search, #prayer-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 16px;
}

.search-box {
    display: flex;
    gap: 8px;
}

.search-btn, .primary-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

.primary-btn { width: 100%; }

/* MENU INFERIOR */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.nav-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    color: #999;
}

.nav-icon { font-size: 1.4rem; margin-bottom: 2px; }
.nav-text { font-size: 0.75rem; }

.nav-item.active {
    color: var(--primary-color);
}

/* LISTA DE ORAÇÕES E FAVORITOS */
#prayers-list, #favorites-list {
    list-style: none;
    margin-top: 15px;
}

.prayer-item {
    background: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
/* ... (Mantenha o CSS anterior igual) ... */

/* --- NOVAS TELAS DE LOGIN E SETUP --- */
.overlay-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 2000; /* Fica acima de tudo */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.onboarding-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.onboarding-card h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.setup-label {
    display: block;
    text-align: left;
    margin-top: 20px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.gender-selector {
    display: flex;
    gap: 10px;
}

.gender-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: 0.2s;
}

.gender-btn.selected {
    border-color: var(--primary-color);
    background-color: #e3f2fd;
    color: var(--primary-color);
    font-weight: bold;
}

.info-text {
    font-size: 0.85rem;
    color: #888;
    margin-top: 8px;
    font-style: italic;
    min-height: 40px; /* Evita pulo de tela */
}

#app-container {
    /* O app começa invisível até logar */
    display: none; 
}