/*****************************************************************
*
*   PROJETO:         RBB (Registro de Bens Brasil)
*   ARQUIVO:         style.css
*   AUTOR:           Jeferson Gnoatto
*   DATA:            28/10/2025
*   VERSÃO:          SYSTEM-V1.4 (Correção de Conflito de Modal)
*
*   DESCRIÇÃO:       - Remove o bloco de CSS conflitante do 'gerenciar-taxas'.
*                    - Garante que a regra .modal-overlay seja consistente.
*
*   Louvado seja Cristo, Louvado seja Deus!
*
*****************************************************************/

/* ===================================================================
   1. FUNDAÇÃO: Variáveis Globais, Fontes e Reset
   =================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap' );

:root {
    --cor-primaria: #00549F; --cor-secundaria: #FFCC00; --cor-sucesso: #28a745; --cor-perigo: #dc3545; --cor-aviso: #ffc107; --cor-info: #17a2b8; --cor-whatsapp: #04491d;
    --cor-texto-principal: #333333; --cor-texto-secundario: #555555; --cor-texto-claro: #FFFFFF; --cor-fundo-claro: #FFFFFF; --cor-fundo-app: #f0f2f5; --cor-borda: #E0E0E0; --cor-cinza-neutro: #6c757d;
    --fonte-principal: 'Roboto', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--fonte-principal); color: var(--cor-texto-principal); background-color: var(--cor-fundo-app); -webkit-font-smoothing: antialiased; }
a { color: var(--cor-primaria); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ===================================================================
   2. COMPONENTES DE BOTÃO UNIFICADOS
   =================================================================== */
.btn {
    display: flex; justify-content: center; align-items: center;
    padding: 12px 28px;
    border: 1px solid transparent;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, transform 0.1s, box-shadow 0.2s;
    line-height: 1.5;
    width: 100%;
    min-height: 51px;
}
.btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }
.btn:disabled { background-color: #ccc; border-color: #ccc; color: #666; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-square { border-radius: 8px; }
.btn-primary { background-color: var(--cor-primaria); color: var(--cor-texto-claro); }
.btn-primary:hover:not(:disabled) { background-color: #003b70; }
.btn-secondary { background-color:  #f0f0f0de; color: var(--cor-texto-principal); }
.btn-secondary:hover:not(:disabled) { background-color: #5a6268; }
.btn-danger { background-color: var(--cor-perigo); color: var(--cor-texto-claro); }
.btn-danger:hover:not(:disabled) { background-color: #c82333; }
.btn-highlight { background-color: var(--cor-secundaria); color: var(--cor-texto-principal); }
.btn-highlight:hover:not(:disabled) { background-color: #ffc400; }
.btn-outline { background-color: transparent; color: var(--cor-texto-principal); border-color: var(--cor-borda); }
.btn-outline:hover:not(:disabled) { background-color: #f8f9fa; border-color: #ccc; }

/* ===================================================================
   3. COMPONENTES DE FORMULÁRIO UNIFICADOS
   =================================================================== */
.form-container { max-width: 700px; margin: 0 auto; background-color: var(--cor-fundo-claro); padding: 30px 40px; border-radius: 16px; box-shadow: 0 5px 15px rgba(0,0,0,0.07); }
.form-header { text-align: center; margin-bottom: 30px; }
.form-header h1 { font-size: 1.75rem; font-weight: 700; color: var(--cor-primaria); }
.form-header p { font-size: 1rem; color: var(--cor-texto-secundario); margin-top: 5px; }
.form-fieldset { border: 1px solid var(--cor-borda); border-radius: 8px; padding: 20px; margin-bottom: 25px; display: flex; flex-direction: column; gap: 18px; }
.form-fieldset legend { font-weight: 700; color: var(--cor-primaria); padding: 0 10px; margin-left: 10px; font-size: 1.1rem; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 14px 16px; font-size: 1rem; font-family: var(--fonte-principal); border: 1px solid #ced4da; border-radius: 8px; background-color: var(--cor-fundo-claro); color: var(--cor-texto-principal); transition: border-color 0.2s, box-shadow 0.2s; min-height: 51px; }
.form-input::placeholder, .form-textarea::placeholder { color: #999; }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--cor-primaria); box-shadow: 0 0 0 3px rgba(0, 84, 159, 0.2); }
.form-input:disabled, .form-select:disabled, .form-textarea:disabled { background-color: #e9ecef; cursor: not-allowed; }
.form-textarea { min-height: 120px; resize: vertical; }
.form-select { -webkit-appearance: none; -moz-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e"   ); background-repeat: no-repeat; background-position: right 1rem center; background-size: 16px 12px; }
.form-select:invalid { color: var(--cor-texto-secundario); }
.form-label { font-weight: 500; color: var(--cor-texto-principal); margin-bottom: -10px; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--cor-borda); }
.form-terms { display: flex; align-items: center; gap: 10px; margin: 15px 0; }
.form-terms label { font-size: 14px; color: var(--cor-texto-secundario); }

/* ===================================================================
   4. LAYOUT ESTRUTURAL DO APLICATIVO
   =================================================================== */
.internal-page { display: flex; flex-direction: column; min-height: 100vh; }
.internal-page .decorative-images { display: none; }
.app-header { background-color: #003366; color: var(--cor-texto-claro); padding: 15px 30px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); width: 100%; z-index: 100; }
.header-content { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; }
.header-content .logo { height: 40px; filter: brightness(0) invert(1); }
.user-menu { display: flex; align-items: center; gap: 20px; }
.user-menu #user-greeting { font-weight: 500; }
.main-content { flex-grow: 1; width: 100%; max-width: 1200px; margin: 30px auto; padding: 0 20px; }
.app-footer { background-color: #343a40; color: #f8f9fa; padding: 25px; width: 100%; }
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; font-size: 0.9rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--cor-texto-claro); }

/* ===================================================================
   5. ESTILOS ESPECÍFICOS DA PÁGINA DE LOGIN
   =================================================================== */
.login-page-new { min-height: 100vh; position: relative; overflow-x: hidden; }
.login-page-new .background-layer { display: block; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; }
.login-page-new .background-yellow { background-color: var(--cor-secundaria); height: 50%; }
.login-page-new .background-white { background-color: var(--cor-fundo-claro); height: 50%; }
.login-page-new .decorative-images { display: block; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.login-container-new { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 20px; }
.login-content { background-color: var(--cor-fundo-claro); border-radius: 24px; padding: 30px 25px; width: 100%; max-width: 400px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15); z-index: 1; display: flex; flex-direction: column; gap: 20px; }
.login-portion-top { display: flex; flex-direction: column; align-items: center; width: 100%; gap: 15px; }
.logo-rbb { width: 70px; }
.login-portion-top h1 { font-size: 20px; font-weight: 900; color: var(--cor-primaria); text-align: center; }
.login-portion-bottom > .btn-primary { margin-bottom: 20px; }
.cpf-form { display: flex; width: 100%; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.cpf-form .form-input { flex-grow: 1; flex-basis: 150px; }
.cpf-form .btn-highlight { flex-grow: 1; flex-basis: 80px; }
.login-alternative-text { font-size: 14px; color: var(--cor-texto-secundario); margin-bottom: 20px; text-align: center; }
.quick-consult-section { width: 100%; border-top: 1px solid var(--cor-borda); padding-top: 20px; }
.consult-form { display: flex; flex-direction: column; width: 100%; gap: 10px; }
.bg-image { position: absolute; height: 150px; width: auto; transform: scale(0.8); opacity: 0.3; transition: transform 0.4s ease-out, opacity 0.4s ease-out; }
#img-trator { top: 5%; left: -15%; } #img-bicicleta { top: 10%; right: -15%; } #img-notebook { bottom: 12%; left: 5%; } #img-camera { bottom: 25%; left: -15%; } #img-furadeira { bottom: 10%; right: -5%; } #img-drone { top: 30%; right: -10%; } #img-quadro { bottom: 5%; left: -20%; } #img-celular { display: none; }

@media (min-width: 1024px) {
    .bg-image { opacity: 1; height: 220px; transform: scale(1); }
    #img-trator { top: 20%; left: 5%; }
    #img-bicicleta { top: 18%; right: 8%; }
    #img-notebook { bottom: 10%; left: 20%; height: 180px; }
    #img-camera { top: 55%; left: 5%; }
    #img-furadeira { bottom: 15%; right: 5%; }
    #img-drone { top: 50%; right: 12%; height: 150px; }
    #img-quadro { bottom: 8%; left: 5%; }
    #img-celular { display: block; bottom: 8%; right: 22%; height: 180px; }
}

/* ===================================================================
   6. COMPONENTES DE INTERFACE (Cards, Modais, Tags)
   =================================================================== */
.card { background-color: var(--cor-fundo-claro); border-radius: 16px; padding: 25px; box-shadow: 0 5px 15px rgba(0,0,0,0.07); width: 100%; }
.card-header { padding-bottom: 15px; margin-bottom: 20px; border-bottom: 1px solid var(--cor-borda); }
.card-header h1, .card-header h2, .card-header h3 { margin: 0; }
.card-body { display: flex; flex-direction: column; gap: 15px; }
.card-footer { padding-top: 15px; margin-top: 20px; border-top: 1px solid var(--cor-borda); }

/* ===================================================================
   REGRA DO MODAL CORRIGIDA E FINAL
   =================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none; /* <<<<<<< ESTA É A REGRA CORRETA E ÚNICA */
    align-items: center;
    justify-content: center;
    z-index: 1010;
    padding: 20px;
}
/* O JavaScript da aplicação é responsável por mudar o display para 'flex' quando o modal deve ser exibido. */

.modal-content { background-color: var(--cor-fundo-claro); padding: 30px; border-radius: 16px; width: 90%; max-width: 500px; text-align: center; box-shadow: 0 5px 20px rgba(0,0,0,0.25); }
.modal-content h3 { color: var(--cor-primaria); margin-top: 0; margin-bottom: 15px; }
.modal-content p { margin-bottom: 25px; line-height: 1.6; font-size: 1rem; }
.modal-actions { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }

.status-tag { padding: 5px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; color: var(--cor-texto-claro); display: inline-block; line-height: 1.2; }
.status-tag.status-active { background-color: var(--cor-sucesso); } .status-tag.status-pending { background-color: var(--cor-aviso); color: var(--cor-texto-principal); } .status-tag.status-stolen-lost { background-color: var(--cor-perigo); } .status-tag.status-transferred { background-color: var(--cor-info); } .status-tag.status-default { background-color: var(--cor-cinza-neutro); } .status-tag.status-inactive { background-color: #ffe0e0; color: #a02c2c; } .status-tag.status-alienated { background-color: #e6f0ff; color: #004085; border: 1px solid #b8daff;}
.level-badge { padding: 6px 14px; font-weight: 700; border-radius: 8px; }
.level-badge.level-gold { background-color: #FFD700; color: #333; } .level-badge.level-silver { background-color: #C0C0C0; color: #333; } .level-badge.level-bronze { background-color: #CD7F32; color: var(--cor-texto-claro); }
.toast-notification { position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%); background-color: #333; color: white; padding: 15px 25px; border-radius: 8px; z-index: 2000; font-weight: 500; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: bottom 0.5s ease-in-out; }
.toast-notification.show { bottom: 30px; }

/* ===================================================================
   7. COMPONENTES ESPECÍFICOS DE PÁGINAS
   =================================================================== */
.asset-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 15px; }
.asset-list-item { display: flex; align-items: center; background-color: var(--cor-fundo-claro); border: 1px solid var(--cor-borda); border-radius: 12px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.asset-list-item:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.asset-list-item .icon { flex-shrink: 0; margin-right: 20px; color: var(--cor-primaria); }
.asset-list-item .info { flex-grow: 1; }
.asset-list-item .title { display: block; font-size: 1.1rem; font-weight: 700; color: var(--cor-texto-principal); margin-bottom: 4px; }
.asset-list-item .date { font-size: 0.85rem; color: var(--cor-texto-secundario); }
.asset-list-item .arrow { flex-shrink: 0; margin-left: 15px; color: #adb5bd; }
.asset-details-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 992px) { .asset-details-grid { grid-template-columns: 1fr 2fr; } }
.asset-photos-container { background-color: #f8f9fa; border-radius: 8px; padding: 10px; min-height: 200px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; position: relative; }
.asset-photo-item { width: 100px; height: 100px; border-radius: 8px; object-fit: cover; border: 2px solid var(--cor-fundo-claro); box-shadow: 0 1px 3px rgba(0,0,0,0.1); cursor: pointer; transition: transform 0.2s; }
.asset-photo-item:hover { transform: scale(1.05); }
.info-section .summary-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--cor-borda); font-size: 0.95rem; }
.info-section .summary-item label { font-weight: 700; color: var(--cor-texto-secundario); margin-right: 15px; }
.info-section .summary-item span, .info-section .summary-item p { text-align: right; }
.history-section { margin-top: 25px; }
.history-section h3 { margin-bottom: 15px; color: var(--cor-primaria); font-size: 1.2rem; }
.history-container { display: flex; flex-direction: column; gap: 15px; }
.history-item { background-color: #f8f9fa; border-left: 4px solid var(--cor-primaria); padding: 12px 18px; border-radius: 0 8px 8px 0; }
.history-item .description { font-weight: 500; font-size: 0.9rem; }
.history-item .date { font-size: 0.8rem; color: var(--cor-texto-secundario); margin-top: 5px; }

/* ===================================================================
   8. COMPONENTES UTILITÁRIOS E DE AJUDA
   =================================================================== */
.whatsapp-float { position: fixed; width: 60px; height: 60px; bottom: 40px; right: 40px; background-color: var(--cor-whatsapp); border-radius: 50px; box-shadow: 2px 2px 10px rgba(0,0,0,0.2); z-index: 100; display: flex; justify-content: center; align-items: center; transition: transform 0.2s ease; }
.whatsapp-float img { width: 35px; height: 35px; }
.whatsapp-float:hover { transform: scale(1.1); }
@media (max-width: 768px) {
    .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; }
    .whatsapp-float img { width: 28px; height: 28px; }
}
.status-message { text-align: center; padding: 40px 20px; color: var(--cor-texto-secundario); background-color: #f8f9fa; border-radius: 12px; border: 1px dashed var(--cor-borda); }
.status-message.error { background-color: rgba(220, 53, 69, 0.1); color: var(--cor-perigo); border-color: var(--cor-perigo); }
.alert-banner { background-color: var(--cor-perigo); color: var(--cor-texto-claro); font-weight: 700; text-align: center; padding: 15px; border-radius: 8px; margin-bottom: 20px; }
.divider { border: 0; height: 1px; background-color: var(--cor-borda); margin: 25px 0; }

/* ===================================================================
   9. AJUSTES FINOS E ESTILOS DE PÁGINA ESPECÍFICOS
   =================================================================== */
.btn-header-logout { width: auto; padding: 6px 18px; font-weight: 500; min-height: auto; }
.dashboard-quick-consult { width: 100%; text-align: center; margin-top: 10px; }
.dashboard-quick-consult .divider { margin: 20px 0; }
.dashboard-quick-consult h4 { margin-bottom: 15px; font-weight: 500; color: var(--cor-texto-secundario); }
.dashboard-quick-consult .consult-form { display: flex; flex-direction: column; gap: 10px; }
.divider-subtle { border: none; border-top: 1px solid #e0e0e0; margin: 15px 0; }
.form-grid-2-cols { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 768px) { .form-grid-2-cols { grid-template-columns: 1fr 1fr; } }
.form-label-file { font-weight: 500; color: var(--cor-texto-principal); margin-bottom: 5px; display: block; }

/* ===================================================================
   10. MODIFICADOR DE PÁGINA PARA FORMULÁRIOS COMPACTOS
   =================================================================== */
.compact-form-page .form-input,
.compact-form-page .form-select,
.compact-form-page .form-textarea { padding: 10px 14px; font-size: 0.9rem; min-height: 44px; }
.compact-form-page .form-fieldset legend { font-size: 1.0rem; }
.compact-form-page .form-header h1 { font-size: 1.6rem; }
.compact-form-page .form-header p { font-size: 0.95rem; }
.compact-form-page .btn { padding: 10px 24px; font-size: 0.9rem; min-height: 44px; }

/* ===================================================================
   11. CUSTOMIZAÇÃO DE BIBLIOTECAS EXTERNAS (FilePond)
   =================================================================== */
.filepond--root { font-size: 0.9rem; }
.filepond--panel-root { background-color: #f0f2f5; border-radius: 8px; min-height: 0; }
.filepond--drop-label { height: 48px; line-height: 48px; color: #6c757d; }
.filepond--drip-blob { display: none; }
.filepond--list-scroller { position: static; margin-top: 8px; }
.filepond--list { display: flex; flex-wrap: wrap; gap: 8px; }
.filepond--item { width: calc(25% - 6px); margin: 0 !important; background-color: #e9ecef; border-radius: 4px; }
.filepond--image-preview-wrapper { height: 80px !important; }
@media (max-width: 768px) {
    .filepond--item { width: calc(33.33% - 6px); }
}

/* ===================================================================
   12. COMPONENTE DE CAIXA DE INFORMAÇÃO
   =================================================================== */
.info-box {
    background-color: #f0f2f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    font-size: 1rem;
    color: var(--cor-texto-secundario);
    margin-bottom: 20px;
    width: 100%;
}
.info-box strong { color: var(--cor-texto-principal); font-weight: 700; }

/* ===================================================================
   13. BOTÃO DE LOGIN GOV.BR
   =================================================================== */
.btn-govbr {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    border-radius: 25px;
    background-color: #f0f2f5;
    border: 1px solid #ced4da;
    text-decoration: none;
    transition: background-color 0.2s, box-shadow 0.2s;
}
.btn-govbr:hover { background-color: #e9ecef; box-shadow: 0 2px 8px rgba(0,0,0,0.1); text-decoration: none; }
.btn-govbr span { font-size: 1rem; font-weight: 700; color: var(--cor-texto-secundario); }
.btn-govbr img { height: 22px; width: auto; }

/* ===================================================================
   14. COMPONENTE DE NOTIFICAÇÃO (TOAST)
   =================================================================== */
.toast {
    background-color: #333;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.toast-success { background-color: #28a745; }
.toast.toast-error { background-color: #dc3545; }
.toast.toast-info { background-color: #17a2b8; }

/* ===================================================================
   18. ARQUITETURA DE GALERIA E EXCLUSÃO
   =================================================================== */
.gallery-container {
    display: flex;
}/* ===================================================================
   19. MODIFICADOR PARA FIELDSETS COMPACTOS (Adicionado em 29/10/2025)
   =================================================================== */
.fieldset-compacto {
    padding: 15px; /* Reduz o preenchimento interno */
    gap: 12px;     /* Reduz o espaço entre os elementos internos */
    margin-bottom: 15px; /* Reduz a margem inferior */
}

.fieldset-compacto legend {
    font-size: 1.0rem; /* Opcional: Reduz um pouco o tamanho da legenda */
}

.fieldset-compacto .form-input,
.fieldset-compacto .btn {
    min-height: 46px; /* Reduz a altura mínima dos inputs e botões */
    padding-top: 10px;
    padding-bottom: 10px;
}
/*****************************************************************
*
*   COMPONENTE: Info Banner
*   DESCRIÇÃO:  Componente de destaque para informações importantes,
*               inspirado no padrão GOV.BR.
*
*****************************************************************/
.info-banner {
    display: flex;
    align-items: center;
    gap: 12px; /* Espaço entre o ícone e o texto */
    background-color: #F0F2F5; /* Cinza claro, cor neutra do GOV.BR */
    color: #111111; /* Preto texto, para legibilidade */
    padding: 12px 16px;
    border-radius: 8px; /* Cantos arredondados */
    margin-bottom: 24px;
    font-size: 0.95rem;
    border: 1px solid #E0E0E0; /* Borda sutil para definição */
}

.info-banner svg {
    flex-shrink: 0; /* Impede que o ícone seja esmagado */
    width: 20px;
    height: 20px;
    color: #1351B4; /* Azul GOV.BR */
}

.info-banner strong {
    font-weight: 600; /* Destaque para o nome do bem */
}
/*****************************************************************
*
*   COMPONENTE: Modal de Saldo Negativo (Force Payment)
*   DESCRIÇÃO:  Modal que bloqueia a UI para forçar o usuário
*               a regularizar um saldo pendente.
*
*****************************************************************/
.negative-balance-overlay {
    position: fixed; /* Cobre toda a tela */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fundo escuro semi-transparente */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Garante que fique acima de tudo */
    backdrop-filter: blur(4px); /* Efeito de desfoque moderno */
}

.negative-balance-modal {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 450px;
    width: 90%;
    border-top: 5px solid var(--cor-perigo); /* Destaque visual de "alerta" */
}

.negative-balance-modal h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #333;
}

.negative-balance-modal p {
    margin-bottom: 25px;
    line-height: 1.6;
    color: #555;
}

.negative-balance-modal .saldo-valor {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--cor-perigo);
    display: block;
    margin-bottom: 25px;
}
/*****************************************************************
*
*   COMPONENTE: Info Banner
*   DESCRIÇÃO:  Componente de destaque para informações importantes,
*               inspirado no padrão GOV.BR.
*
*****************************************************************/
.info-banner {
    display: flex;
    align-items: center;
    gap: 12px; /* Espaço entre o ícone e o texto */
    background-color: #F0F2F5; /* Cinza claro, cor neutra do GOV.BR */
    color: #111111; /* Preto texto, para legibilidade */
    padding: 12px 16px;
    border-radius: 8px; /* Cantos arredondados */
    margin-bottom: 24px;
    font-size: 0.95rem;
    border: 1px solid #E0E0E0; /* Borda sutil para definição */
}

.info-banner svg {
    flex-shrink: 0; /* Impede que o ícone seja esmagado */
    width: 20px;
    height: 20px;
    color: #1351B4; /* Azul GOV.BR */
}

.info-banner strong {
    font-weight: 600; /* Destaque para o nome do bem */
}

/*****************************************************************
*
*   COMPONENTE: Modal de Saldo Negativo (Force Payment)
*   DESCRIÇÃO:  Modal que bloqueia a UI para forçar o usuário
*               a regularizar um saldo pendente.
*
*****************************************************************/
.negative-balance-overlay {
    position: fixed; /* Cobre toda a tela */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fundo escuro semi-transparente */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Garante que fique acima de tudo */
    backdrop-filter: blur(4px); /* Efeito de desfoque moderno */
}

.negative-balance-modal {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 450px;
    width: 90%;
    border-top: 5px solid var(--cor-perigo); /* Destaque visual de "alerta" */
}

.negative-balance-modal h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #333;
}

.negative-balance-modal p {
    margin-bottom: 25px;
    line-height: 1.6;
    color: #555;
}

.negative-balance-modal .saldo-valor {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--cor-perigo);
    display: block;
    margin-bottom: 25px;
}
/* ===================================================================
   15. TEMA AGRO (VERSÃO FINAL COM ESTILOS ISOLADOS)
   =================================================================== */

/* Regras de fundo que se aplicam a qualquer página com o tema */
.theme-agro {
    background-image: linear-gradient(rgba(0, 40, 0, 0.8), rgba(0, 10, 0, 0.9)), url('images-agro/fundo-lavoura.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.theme-agro .background-layer,
.theme-agro .decorative-images {
    display: none;
}

/*
   ===================================================================
   ESTILOS ESPECÍFICOS PARA A PÁGINA login-agro.html
   ===================================================================
*/

/* --- Estrutura da Página de Login do Agro --- */
.theme-agro .login-container-new {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 30px 20px;
}

/* Cabeçalho da página (acima do card) */
.agro-page-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    color: #ffffff;
    text-align: center;
}

.agro-header-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.agro-header-main .logo-agro {
    width: 90px;
    height: auto;
}

.agro-header-main .title-group h1 {
    font-size: 2.6rem; 
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.1;
    text-align: left;
}

.agro-page-header .subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Card de login */
.theme-agro .login-content {
    background-color: #ffffff;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-radius: 24px;
    padding: 30px 25px;
    z-index: 1;
}

.theme-agro .btn-govbr {
    border: 1px solid #ced4da;
    background-color: #f8f9fa;
    border-radius: 25px;
    padding: 12px 20px;
}

.theme-agro .login-portion-bottom .divider-text {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: #adb5bd;
    font-weight: 500;
    font-size: 0.9rem;
}
.theme-agro .login-portion-bottom .divider-text::before,
.theme-agro .login-portion-bottom .divider-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}
.theme-agro .login-portion-bottom .divider-text:not(:empty)::before {
    margin-right: .5em;
}
.theme-agro .login-portion-bottom .divider-text:not(:empty)::after {
    margin-left: .5em;
}

.theme-agro .btn-highlight {
    background-color: #FFCC00;
    color: #333;
    font-weight: 700;
}

/* --- Rodapé com Ícones (Específico para login-agro.html) --- */
.agro-footer {
    position: static; /* Garante que o rodapé não cubra o conteúdo */
    width: 100%;
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 5;
    margin-top: auto; /* Empurra o rodapé para o final do flex container */
}

.agro-footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.agro-footer-content img {
    height: 45px;
    width: auto;
}

/* Remove qualquer estilo de botão do link do WhatsApp DENTRO do rodapé do agro */
.agro-footer-content a {
    background: none !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
}

/* --- Modal Gov.br (Específico para login-agro.html) --- */
#gov-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1010;
    padding: 20px;
}

#gov-modal-overlay .modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    text-align: center;
}

/* Ajustes para telas de celular (Específico para login-agro.html) */
@media (max-width: 768px) {
    .agro-footer {
        margin-top: 30px;
    }
    .agro-footer-content {
        gap: 15px;
    }
    .agro-footer-content img {
        height: 30px;
    }
}

/*
   ===================================================================
   ESTILOS GLOBAIS DO WHATSAPP E CORREÇÃO DE COR
   ===================================================================
*/

/* Estilo padrão do botão flutuante, agora com verde mais escuro */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #04491d; /* Verde mais escuro */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease;
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float img {
        width: 28px;
        height: 28px;
    }
}
/*
   ===================================================================
   BOTÃO WHATSAPP ESPECÍFICO PARA O TEMA AGRO (IMAGEM RETANGULAR)
   ===================================================================
*/

.whatsapp-float-agro {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 100;
    transition: transform 0.2s ease;
    /* Remove todas as propriedades que criavam o círculo */
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    width: auto; /* Largura automática para se ajustar à imagem */
    height: auto; /* Altura automática */
}

.whatsapp-float-agro img {
    /* Define o tamanho da sua imagem retangular */
    width: 180px; 
    height: auto;
}

.whatsapp-float-agro:hover {
    transform: scale(1.05); /* Efeito de zoom sutil */
}

@media (max-width: 768px) {
    .whatsapp-float-agro {
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float-agro img {
        width: 140px; /* Tamanho um pouco menor para celular */
    }
}


/* ===================================================================
   16. TEMA EXCELLENCE (Exemplo)
   =================================================================== */
.theme-excellence {
    background-color: #1a1a1a; /* Fundo preto */
    /* Adicione aqui a imagem de fundo para o tema excellence */
}

/* ===================================================================
   17. TEMA CONSTRUÇÃO (Exemplo)
   =================================================================== */
.theme-construcao {
    background-color: #333; /* Fundo cinza escuro */
    /* Adicione aqui a imagem de fundo para o tema construção */
}
/* ===================================================================
   18. FUNDOS DE TEMA PARA PÁGINAS INTERNAS (Adicionado em 04/11/2025)
   =================================================================== */

/* Aplica o fundo do tema Agro em qualquer página que tenha a classe no body */
.theme-agro {
    background-image: linear-gradient(rgba(0, 40, 0, 0.8), rgba(0, 10, 0, 0.9)), url('images-agro/fundo-lavoura.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Remove o fundo padrão de duas cores quando um tema está ativo */
.theme-agro .background-layer {
    display: none;
}

/* Remove as imagens decorativas flutuantes quando um tema está ativo */
.theme-agro .decorative-images {
    display: none;
}

/* Você pode adicionar outros temas aqui no futuro */
/*
.theme-excellence {
    background-image: url('images-excellence/fundo.jpg');
}
*/
/* ===================================================================
   19. FUNDOS DE TEMA PARA PÁGINAS DE LOGIN (VERSÃO CORRIGIDA)
   =================================================================== */

/* Aplica o fundo do tema Agro em qualquer página que tenha a classe no body */
.theme-agro {
    background-image: linear-gradient(rgba(0, 40, 0, 0.8), rgba(0, 10, 0, 0.9)), url('images-agro/fundo-lavoura.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Remove o fundo padrão de duas cores (amarelo/branco) quando um tema está ativo */
.theme-agro .background-layer {
    display: none;
}

/* Remove as imagens decorativas flutuantes da página padrão quando um tema está ativo */
.theme-agro .decorative-images {
    display: none;
}

/*
   Futuramente, você pode adicionar outros temas aqui, seguindo o mesmo padrão.
   Exemplo:
   .theme-excellence {
       background-image: url('images-excellence/fundo-excellence.jpg');
   }
   .theme-excellence .background-layer, .theme-excellence .decorative-images {
       display: none;
   }
*/
