:root {
    --primary: #2E7D32;
    --primary-light: #E8F5E9;
    --bg-app: #F5F7FA;
    --white: #FFFFFF;
    --text-dark: #1F2937;
    --text-grey: #6B7280;
    --shadow: 0 4px 15px rgba(0,0,0,0.05);
    --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-app);
    color: var(--text-dark);
    padding-bottom: 80px; /* Espaço para o menu inferior */
    padding-top: 60px; /* Espaço para o header */
}

/* Header Fixo */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    z-index: 1000;
}
.header-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.app-header h1 { font-size: 1.2rem; color: var(--text-dark); }
.highlight { color: var(--primary); font-weight: 800; }
.icon-btn { background: none; border: none; cursor: pointer; color: var(--text-grey); }

/* Containers */
.app-container { padding: 20px; }
.tab-content { display: none; animation: fadeIn 0.3s ease; }
.tab-content.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Cards & Layouts */
.welcome-card {
    background: var(--primary);
    color: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    box-shadow: 0 10px 20px rgba(46, 125, 50, 0.2);
}
.welcome-card h2 { font-size: 1.5rem; margin-bottom: 5px; }
.welcome-card p { opacity: 0.9; margin-bottom: 15px; font-size: 0.9rem; }

.btn-primary {
    background: var(--white);
    color: var(--primary);
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.section-label { font-size: 0.9rem; text-transform: uppercase; color: var(--text-grey); margin: 20px 0 10px 0; letter-spacing: 1px; }

/* Scroll Horizontal (Carrossel) */
.scroll-h { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.scroll-h::-webkit-scrollbar { display: none; }

.card-horizontal {
    min-width: 160px;
    background: var(--white);
    padding: 15px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.icon-box { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 10px; }
.green { background: #E8F5E9; } .brown { background: #FFF3E0; }

.card-box, .tool-card, .card-item {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 15px;
}

/* Ferramentas */
.input-group { margin-bottom: 15px; }
.input-group label { display: block; font-size: 0.85rem; color: var(--text-grey); margin-bottom: 5px; }
.input-group input, .input-group select {
    width: 100%; padding: 12px; border: 1px solid #E5E7EB; border-radius: 10px; background: #F9FAFB; font-size: 1rem;
}
.btn-full { width: 100%; background: var(--primary); color: white; border: none; padding: 14px; border-radius: 12px; font-size: 1rem; font-weight: 600; }
.result-box { margin-top: 15px; text-align: center; background: var(--primary-light); padding: 15px; border-radius: 10px; color: var(--primary); }
.hidden { display: none; }

/* Links Grid */
.links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.link-btn {
    background: var(--white); border: 1px solid #E5E7EB; padding: 15px; border-radius: 12px; 
    text-decoration: none; color: var(--text-dark); display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600;
}

/* Bottom Navigation (O menu estilo app) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -1px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}
.nav-item {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #9CA3AF;
    font-size: 0.75rem;
    transition: 0.2s;
}
.nav-item .material-icons-round { font-size: 24px; margin-bottom: 4px; }
.nav-item.active { color: var(--primary); }

/* Perfil */
.profile-header { text-align: center; margin-bottom: 20px; }
.avatar-circle {
    width: 80px; height: 80px; background: var(--primary-light); color: var(--primary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: bold; margin: 0 auto 15px auto;
}
.tag { background: var(--primary); color: white; padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; text-transform: uppercase; }
.btn-text { color: var(--primary); text-decoration: none; font-weight: 600; display: block; margin-top: 10px; }
.btn-outline { width: 100%; border: 2px solid var(--primary); color: var(--primary); background: none; padding: 12px; border-radius: 50px; font-weight: 600; }

/* --- NOVOS ESTILOS PARA ATUALIZAÇÃO --- */

/* Destaque Pequeno Produtor */
.card-highlight {
    background: #FFF8E1; /* Fundo Amarelo Claro */
    border: 1px solid #FFECB3;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
}
.highlight-header { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    color: #F57F17; /* Laranja Escuro */
    margin-bottom: 10px; 
}
.benefit-list { 
    margin-left: 20px; 
    font-size: 0.9rem; 
    color: #444; 
    line-height: 1.5;
}

/* Opções PRA (Recuperar vs Compensar) */
.mini-options { 
    background: #F3F4F6; 
    padding: 12px; 
    border-radius: 12px; 
    margin-top: 12px; 
    font-size: 0.85rem; 
    border: 1px dashed #CBD5E1;
}
.opt { margin-bottom: 8px; }
.opt:last-child { margin-bottom: 0; }

/* Formulário de Dúvidas */
.form-box { 
    margin-top: 25px; 
    background: white; 
    padding: 20px; 
    border-radius: 16px; 
    box-shadow: var(--shadow); 
}
.simple-form input, .simple-form textarea {
    width: 100%; 
    margin-bottom: 12px; 
    padding: 12px; 
    border: 1px solid #E5E7EB; 
    border-radius: 8px; 
    font-family: inherit;
    background-color: #F9FAFB;
}
.simple-form input:focus, .simple-form textarea:focus {
    border-color: var(--primary);
    outline: none;
}

/* Ajustes de Texto e Layout */
.bio-text { font-style: italic; font-size: 0.9rem; opacity: 0.8; margin-top: 10px; }
.small-text { font-size: 0.75rem; color: #888; margin-top: 5px; }
.full-width { grid-column: span 2; } /* Botão SICAR ocupa largura total */
.footer-note { text-align: center; margin-top: 30px; font-size: 0.7rem; color: #ccc; }

/* --- Estilo do Logo no Cabeçalho --- */
.app-logo {
    height: 40px; /* Altura fixa para caber na barra */
    width: auto;  /* Largura se ajusta automaticamente */
    object-fit: contain;
}

/* Ajuste fino para o header ficar alinhado */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Botão de Local no Mapa */
.location-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    border: 1px solid #eee;
    transition: 0.2s;
}
.location-btn:hover {
    background: #e8f5e9;
    border-color: var(--primary);
    color: var(--primary);
}

/* --- Estilos do Modal de Locais --- */
.location-card {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.btn-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.2s;
}

.btn-map {
    background: #e3f2fd;
    color: #1565c0;
}
.btn-map:hover { background: #bbdefb; }

.btn-whats {
    background: #e8f5e9;
    color: #2e7d32;
}
.btn-whats:hover { background: #c8e6c9; }