body {
    padding-top: 100px;
    padding-bottom: 40px;
}

.zf-green {
    color: #68b604;
}

.btn-success {
    background-color: #57a900;
    background-image: -moz-linear-gradient(top, #70d900, #57a900);
    background-image: -ms-linear-gradient(top, #70d900, #57a900);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#70d900), to(#57a900));
    background-image: -webkit-linear-gradient(top, #70d900, #57a900);
    background-image: -o-linear-gradient(top, #70d900, #57a900);
    background-image: linear-gradient(top, #70d900, #57a900);
    filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#70d900', endColorstr='#57a900', GradientType=0);
}

.help-block {
    background-color: lightgrey;
    border-left: 6px solid red;
    list-style: none;
    margin-top: 0px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.btn-success:hover,
.btn-success:active,
.btn-success.active,
.btn-success.disabled,
.btn-success[disabled] {
    background-color: #57a900;
}

div.container a.navbar-brand>img {
    display: inline;
    margin-right: 4px;
    margin-top: -2px;
}

.navbar-hidden {
    display: none;
}

@media (min-width: 768px) {
    .navbar-hidden {
        display: unset;
    }
}

.searchbtn-hidden {
    display: none;
}

@media (min-width: 768px) {
    .searchbtn-hidden {
        display: table;
    }
}

.searchbtn-hidden-inv {
    display: table;
}

@media (min-width: 768px) {
    .searchbtn-hidden-inv {
        display: none;
    }
}

.navbar {
    height: 80px;
    padding-top: 15px;
}

.navbar .navbar-brand {
    color: rgba(184, 178, 178, 1);
    margin-top: -5px;
}

.navbar-brand, .navbar-nav>li>a{
    font-size: 1em;
}


.navbar {
    font-size: 14px;
    background-color: rgba(247, 247, 247, 1);
    border-width: 1px;
    border-radius: 0px;
}

.navbar-nav>li>a {
    color: rgba(0, 0, 0, 1);
    background-color: rgba(0, 0, 0, 0) !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
}

@media (max-width: 767px) {
    .navbar-nav>li>a {
        color: rgba(0, 0, 0, 1);
        background-color: aquamarine !important;
    }
}

.navbar-nav>li>a:hover,
.navbar-nav>li>a:focus {
    color: rgba(51, 51, 51, 1);
    background-color: rgba(224, 204, 204, 1);
}

.navbar-nav>.active>a,
.navbar-nav>.active>a:hover,
.navbar-nav>.active>a:focus {
    color: rgba(85, 85, 85, 1);
    background-color: rgba(255, 255, 255, 1);
}

.navbar .navbar-toggle {
    border-color: #000;
}

.navbar .navbar-toggle:hover,
.navbar .navbar-toggle:focus {
    background-color: #ddd;
}

.navbar .navbar-toggle .icon-bar {
    background-color: #888 !important;
}

.navbar .navbar-toggle:hover .icon-bar,
.navbar .navbar-toggle:focus .icon-bar {
    background-color: #888;
}

footer {
    font-size: 11px;
    font-weight: bold;
}

.highlight {
    background-color: #ffff66;
}

.tableMultiInfo {
    font-size: 12px;
    width: 100%
}

.tableMultiInfo td {
    padding: 8px;
}

.tableMultiInfo td:first-child {
    width: 8%;
}

.tableMultiInfo tr:nth-child(even) {
    background-color: #f3f1f1;
}

.login {
    width: 50%;
    margin-left: 25%;
}

.avisoLogin {
    color: red;
    text-align: center;
}

.avisoLoginA {
    color: brown;
}

.alir {
    text-align: right;
}

h1 {
    font-size: 20px;
}

h2 {
    font-size: 16px;
}

@media (min-width: 768px) {
    h1 {
        font-size: 30px;
    }
    h2 {
        font-size: 24px;
    }
}

 
.texto-primario { color: #333; font-size: 15px; }
.texto-secundario { color: #555; font-size: 14px; }

.search-container { 
    background-color: #f8f9fa; 
    border-radius: 8px; 
    padding: 25px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); 
    margin-bottom: 30px; 
    border: 1px solid #e9ecef; 
}

/* Animação suave nos cards */
.item-obra { 
    border-left: 4px solid transparent; 
    transition: all 0.3s ease; 
    padding: 20px; 
    border-bottom: 1px solid #eee; 
    background: #fff;
}
.item-obra:hover { 
    border-left-color: #0056b3; 
    background-color: #fcfcfc; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.06); 
    transform: translateY(-2px); /* Efeito flutuante */
    border-radius: 4px;
    z-index: 1; 
    position: relative; 
}

.item-obra h4 a { color: #0056b3; text-decoration: none; font-size: 18px; font-weight: bold; }
.item-obra h4 a:hover { color: #004494; text-decoration: underline; }

.mb-20 { margin-bottom: 20px; }
.form-label { font-weight: 600; color: #444; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }



/* ==========================================
       ESTILOS DO WIDGET FLUTUANTE
       ========================================== */
       #acessibilidade-widget {
        position: fixed;
        top: 40%;
        right: 0;
        background: #0056b3;
        padding: 8px 6px;
        border-radius: 8px 0 0 8px;
        z-index: 9999;
        display: flex;
        flex-direction: column;
        gap: 6px;
        box-shadow: -2px 0 10px rgba(0,0,0,0.15);
    }
    #acessibilidade-widget button {
        background: #ffffff;
        color: #0056b3;
        border: none;
        border-radius: 4px;
        width: 35px;
        height: 35px;
        font-weight: bold;
        font-size: 14px;
        cursor: pointer;
        transition: background-color 0.2s, transform 0.1s;
    }
    #acessibilidade-widget button:hover { 
        background: #e0e0e0; 
    }
    #acessibilidade-widget button:active {
        transform: scale(0.95);
    }

    /* ==========================================
       TEMA DE ALTO CONTRASTE (W3C Standard)
       ========================================== */
    body.alto-contraste { 
        background-color: #121212 !important; 
        color: #ffffff !important; 
    }
    
    body.alto-contraste .panel, 
    body.alto-contraste .dashboard-card,
    body.alto-contraste .login-card,
    body.alto-contraste .well,
    body.alto-contraste .hero-split,
    body.alto-contraste .search-card,
    body.alto-contraste .item-obra {
        background-color: #1e1e1e !important;
        border-color: #333 !important;
        color: #f1f1f1 !important;
        box-shadow: none !important;
    }
    
    body.alto-contraste h1, body.alto-contraste h2, body.alto-contraste h3, 
    body.alto-contraste h4, body.alto-contraste span, body.alto-contraste p, 
    body.alto-contraste label, body.alto-contraste td, body.alto-contraste th {
        color: #ffffff !important;
    }

    body.alto-contraste a { color: #66b2ff !important; }
    body.alto-contraste a:hover { color: #99ccff !important; }
    
    body.alto-contraste input, body.alto-contraste select, body.alto-contraste textarea {
        background-color: #2c2c2c !important;
        color: #fff !important;
        border: 1px solid #555 !important;
    }

     /* ==========================================
       UI/UX DESIGN SYSTEM - PAINEL DO USUÁRIO
       ========================================== */
       body { background-color: #f4f7f6; }
    
       .mb-30 { margin-bottom: 40px; }
       .panel-heading-flex { display: flex; justify-content: space-between; align-items: center; }
   
       /* Padronização dos Cards de Informação e Filtros */
       .dashboard-card {
           background: #ffffff;
           border-radius: 10px;
           box-shadow: 0 4px 15px rgba(0,0,0,0.03);
           border: 1px solid #eaeaea;
           padding: 20px;
           margin-bottom: 25px;
       }
   
       /* Atualização visual dos Widgets Coloridos */
       .widget-card {
           border-radius: 10px;
           border: none;
           box-shadow: 0 6px 15px rgba(0,0,0,0.05);
           transition: transform 0.2s ease;
           margin-bottom: 20px;
       }
       .widget-card:hover { transform: translateY(-3px); }
       .widget-icon {  opacity: 0.3; position: absolute; right: 25px; top: 15px; }
       .widget-number {  font-weight: bold; margin: 0; }
       .widget-text { text-transform: uppercase; font-weight: bold; letter-spacing: 1px; }
       
       /* Tabelas e Paineis */
       .panel { border-radius: 10px; border: none; box-shadow: 0 4px 15px rgba(0,0,0,0.04); }
       .panel-heading { border-radius: 10px 10px 0 0 !important; background-color: #fff !important; border-bottom: 2px solid #f4f4f4 !important; font-weight: bold; padding: 15px 20px;}
       
       /* Inputs Modernos */
       .input-group-addon { background-color: #f8f9fa; color: #777; border-color: #ddd; }
       .form-control:focus { border-color: #0056b3; box-shadow: none; }
       .form-label { font-weight: 600; color: #666; text-transform: uppercase; margin-bottom: 8px; display: block; }

       /* ==========================================
       UX/UI - Estilização do Login
       ========================================== */
       body { background-color: #f4f7f6; } /* Fundo levemente cinza/azulado para destacar o card branco */
    
       .login-wrapper {
           margin-top: 8vh;
           margin-bottom: 50px;
       }
       
       .login-card {
           background: #ffffff;
           border-radius: 10px;
           box-shadow: 0 8px 20px rgba(0,0,0,0.08);
           padding: 40px 30px;
           border: 1px solid #eaeaea;
       }
       
       .login-header { text-align: center; margin-bottom: 30px; }
       .login-header h3 { color: #333; font-weight: bold; margin-top: 0; }
       .login-header p { color: #777; font-size: 14px; }
       
       .input-group-addon { background-color: #f8f9fa; color: #888; border-color: #ccc; }
       .form-control:focus { border-color: #0056b3; box-shadow: none; }
       
       /* Estilização da área de Avisos para não poluir o visual */
       .aviso-container {
           margin-top: 30px;
           padding-top: 20px;
           border-top: 1px solid #eee;
           font-size: 13px;
           color: #666;
       }
       .aviso-item { margin-bottom: 12px; line-height: 1.5; }
       .aviso-item strong { color: #444; }
       .aviso-item a { color: #0056b3; text-decoration: underline; font-weight: 500; }
       .aviso-item a:hover { color: #004494; }

          /* ==========================================
       UX/UI - Estilos Base da Página Pública
       ========================================== */
    body { background-color: #f4f7f6; }
    .texto-primario { color: #333;  }
    .texto-secundario { color: #666; font-size: 14px; }
    
    /* Hero Banner com Etiqueta Flutuante */
    .hero-banner { 
        position: relative; 
        margin-bottom: 30px; 
        border-radius: 10px; 
        overflow: hidden; 
        box-shadow: 0 6px 15px rgba(0,0,0,0.08); 
    }
    .hero-banner img { width: 100%; display: block; }
    .hero-badge { 
        position: absolute; 
        bottom: 20px; 
        right: 20px; 
        background: rgba(0, 86, 179, 0.95); /* Azul translúcido elegante */
        color: white; 
        padding: 12px 25px; 
        border-radius: 50px; 
         
        box-shadow: 0 4px 10px rgba(0,0,0,0.2); 
        backdrop-filter: blur(4px); /* Efeito de vidro (glassmorphism) */
    }
    .hero-split {
        background-color: #ffffff; /* Fundo branco ou da cor da sua página */
        border-radius: 12px;
        padding: 40px 30px;
        margin-bottom: 30px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.03);
        border: 1px solid #eaeaea;
    }

    /* Usando flexbox na linha para alinhar texto e imagem no centro vertical */
    .hero-split .row-flex {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }

    .hero-text h1 {
        font-size: 38px;
        color: #222;
        margin-top: 0;
        margin-bottom: 20px;
        line-height: 1.2;
    }
    
    .hero-text p {
        font-size: 16px;
        color: #555;
        margin-bottom: 15px;
        line-height: 1.6;
    }

    .hero-text b { color: #111; }

    /* Controla o tamanho máximo da imagem para não explodir a tela */
    .hero-image img {
        max-height: 320px; /* Ajuste este valor se quiser a imagem maior ou menor */
        width: auto;
        margin: 0 auto;
        display: block;
    }

    .badge-acervo {
        display: inline-block;
        margin-top: 15px;
        background: #e8f4fd;
        color: #0056b3;
        padding: 10px 20px;
        border-radius: 30px;
        
        font-weight: 600;
        border: 1px solid #b8daff;
    }

    /* Correção para empilhar no celular */
    @media (max-width: 768px) {
        .hero-split .row-flex { display: block; }
        .hero-image { margin-top: 30px; }
        .hero-text h1 { font-size: 28px; }
    }
    /* Card de Pesquisa Centralizado */
    .search-card { 
        background: #ffffff; 
        border-radius: 10px; 
        box-shadow: 0 8px 25px rgba(0,0,0,0.05); 
        padding: 35px; 
        border: 1px solid #eaeaea; 
        margin-bottom: 30px; 
    }
    .search-title { color: #333; font-weight: bold; margin-top: 0; margin-bottom: 25px; font-size: 20px; border-bottom: 2px solid #f4f4f4; padding-bottom: 15px; }
    
    /* Inputs com Ícones */
    .input-group-addon { background-color: #f8f9fa; color: #777; border-color: #ccc; }
    .form-control:focus { border-color: #0056b3; box-shadow: none; }
    .form-label { font-weight: 600; color: #555; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; }
    
    /* Cards de Resultado Animados */
    .item-obra { 
        border-left: 4px solid transparent; 
        transition: all 0.3s ease; 
        padding: 25px 20px; 
        border-bottom: 1px solid #f0f0f0; 
        background: #fff;
    }
    .item-obra:hover { 
        border-left-color: #0056b3; 
        background-color: #fcfcfc; 
        box-shadow: 0 6px 18px rgba(0,0,0,0.06); 
        transform: translateY(-2px); 
        border-radius: 6px;
        z-index: 1; 
        position: relative; 
    }
    .item-obra h4 { margin-top: 0; margin-bottom: 10px; }
    .item-obra h4 a { color: #0056b3; text-decoration: none;  font-weight: bold; line-height: 1.3; }
    .item-obra h4 a:hover { color: #004494; text-decoration: underline; }
    
    .mb-20 { margin-bottom: 20px; }


    .panel-heading-flex { display: flex; justify-content: space-between; align-items: center; }
    
    /* Reutilizando as classes globais do nosso Design System */
    .dashboard-card {
        background: #ffffff;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.03);
        border: 1px solid #eaeaea;
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .widget-card {
        border-radius: 10px;
        border: none;
        box-shadow: 0 6px 15px rgba(0,0,0,0.05);
        transition: transform 0.2s ease;
    }
    .widget-card:hover { transform: translateY(-3px); }
    .widget-icon { font-size: 2.6em; opacity: 0.3; position: absolute; right: 25px; top: 15px; }
    .widget-number { font-size: 2.5em; font-weight: bold; margin: 0; }
    .widget-text { text-transform: uppercase; font-size: 0.85em; font-weight: bold; letter-spacing: 1px; }

    .input-group-addon { background-color: #f8f9fa; color: #777; border-color: #ddd; }
    .form-control:focus { border-color: #0056b3; box-shadow: none; }
    .form-label { font-size: 12px; font-weight: 600; color: #666; text-transform: uppercase; margin-bottom: 8px; display: block; }
    .panel-heading-flex { display: flex; justify-content: space-between; align-items: center; }
    
    .dashboard-card {
        background: #ffffff;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.03);
        border: 1px solid #eaeaea;
        padding: 20px;
        margin-bottom: 25px;
    }

    .input-group-addon { background-color: #f8f9fa; color: #777; border-color: #ddd; font-size: 13px;}
    .form-control:focus { border-color: #0056b3; box-shadow: none; }
    .form-label { font-size: 12px; font-weight: 600; color: #666; text-transform: uppercase; margin-bottom: 8px; display: block; }
    
    .filter-feedback {
        background-color: #e8f4fd;
        border-left: 4px solid #0056b3;
        color: #004085;
        padding: 12px 15px;
        border-radius: 4px;
        margin-bottom: 20px;
        font-size: 14px;
    }

    .dashboard-flex-container {
        display: flex;
        flex-wrap: wrap; /* Permite quebrar linha em telas muito pequenas */
        gap: 10px;
        margin-bottom: 20px;
        align-items: stretch;
    }
    
    .flex-item {
        flex: 1 1 auto; /* Permite que os widgets cresçam proporcionalmente */
        min-width: 180px; /* Evita que fiquem espremidos demais */
    }

    .identity-item {
        flex: 0 1 auto; /* O box de nome ocupa apenas o espaço necessário */
        display: flex;
        align-items: center;
    }

    .widget-card { margin-bottom: 0 !important; height: 100%; }
    
    @media (max-width: 768px) {
        .identity-item { order: -1; width: 100%; } /* No mobile, o nome fica no topo */
    }