@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    padding-top: 150px;
    overflow-x: hidden;
}

/*
|--------------------------------------------------------------------------
| HEADER
|--------------------------------------------------------------------------
*/

.header-site {
    z-index: 9999;
}

/*
|--------------------------------------------------------------------------
| TOPO
|--------------------------------------------------------------------------
*/

.top-header {
    background: #0f2a73;
}

/*
|--------------------------------------------------------------------------
| LOGO
|--------------------------------------------------------------------------
*/

.logo-prefeitura {
    max-height: 95px;
}

/*
|--------------------------------------------------------------------------
| GLASS EFFECT
|--------------------------------------------------------------------------
*/

.btn-glass {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .10);
    backdrop-filter: blur(10px);
    color: white;
    transition: .3s;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.input-glass {
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .10);
    backdrop-filter: blur(10px);
    color: white;
    width: 180px;
}

.input-glass::placeholder {
    color: rgba(255, 255, 255, .7);
}

.input-glass:focus {
    background: rgba(255, 255, 255, .15);
    color: white;
    border-color: rgba(255, 255, 255, .4);
    box-shadow: none;
}

/*
|--------------------------------------------------------------------------
| BOTÃO ESIC
|--------------------------------------------------------------------------
*/

.btn-esic {
    background: #fdbd08;
    color: white;
    text-decoration: none;
    font-weight: 700;
    padding: 14px 25px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: .3s;
}

.btn-esic:hover {
    background: #e9ae05;
    color: white;
}

/*
|--------------------------------------------------------------------------
| NAVBAR
|--------------------------------------------------------------------------
*/

.navbar-main {
    background: #0f2a73;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.navbar-main .nav-link {
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 15px;
    padding: -1px 11px !important;
    transition: .3s;
    position: relative;
}

.navbar-main .nav-link:hover {
    color: #fdbd08;
}

/*
|--------------------------------------------------------------------------
| DROPDOWN
|--------------------------------------------------------------------------
*/

.dropdown-menu-custom {
    border: 0;
    border-radius: 14px;
    padding: 10px;
    min-width: 260px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}

.dropdown-menu-custom .dropdown-item {
    border-radius: 10px;
    padding: 12px 15px;
    font-weight: 600;
    transition: .2s;
}

.dropdown-menu-custom .dropdown-item:hover {
    background: #0f2a73;
    color: white;
}

/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media(max-width: 1200px) {

    body {
        padding-top: 120px;
    }

    .top-header .row {
        gap: 25px;
        text-align: center;
    }

    .social-area {
        justify-content: center;
    }

    .btn-esic {
        justify-content: center;
    }

    .logo-prefeitura {
        max-height: 75px;
    }

    .navbar-main .nav-link {
        padding: 14px 10px !important;
    }

}

@media(max-width: 768px) {

    .input-glass {
        width: 120px;
    }

    .btn-esic {
        width: 100%;
    }

    .navbar-main .nav-link {
        padding: 12px 0 !important;
    }

}

/*css da home*/

.hero-transparencia {
    padding: 70px 0 0px;
    background:
        linear-gradient(135deg,
            #0f2a73 0%,
            #163d9a 100%);
    position: relative;
    overflow: hidden;
}

.hero-transparencia::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, .05);
    border-radius: 50%;
    top: -250px;
    right: -150px;
}

.hero-transparencia::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: rgba(255, 255, 255, .04);
    border-radius: 50%;
    bottom: -180px;
    left: -100px;
}

.hero-box {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: auto;
}


.hero-title {
    color: white;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-description {
    color: rgba(255, 255, 255, .85);
    font-size: 15px;
    line-height: 1.7;
    max-width: 1080px;
    margin: auto;
}

@media(max-width: 768px) {

    .hero-transparencia {
        padding: 90px 0 60px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-description {
        font-size: 16px;
    }

}


.fundo_card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s;
    cursor: pointer;
}

.fundo_card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

.banner {
    width: 100%;
}

.efeito-card {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.efeito-card:hover {
    transform: scale(1.03);
}

.fonte-P {
    font-size: 12px;
}

.p-padrao {
    padding-top: 50px;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #ddd;
    border-top: 6px solid #0176B0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

mark.custom-highlight {
    background-color: #ffeb3b;
    color: #000;
    padding: 0 2px;
    border-radius: 3px;
    font-weight: bold;
}

/* PAGINA DE CONTRATO */

.tp-main-wrapper {
    padding: 20px 0;
}

.tp-container {
    max-width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
}

.tp-header {
    background: linear-gradient(135deg, #005b96 0%, #003d66 100%);
    color: white !important;
    padding: 20px 25px;
}

.tp-header h1 {
    font-size: 24px !important;
    margin-bottom: 5px !important;
    color: white !important;
}

.tp-header p {
    font-size: 14px !important;
    opacity: 0.9;
    margin-bottom: 0;
}


.tp-toolbar {
    padding: 15px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.tp-btn-export {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white !important;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}


.tp-btn-json {
    background: #ffb74d;

    background: linear-gradient(135deg, #ffb74d 0%, #ffa000 100%);
}

.tp-btn-xml {
    background: #ff8a65;

    background: linear-gradient(135deg, #ff8a65 0%, #f4511e 100%);
}

.tp-btn-rtf {
    background: #4fc3f7;

    background: linear-gradient(135deg, #4fc3f7 0%, #0288d1 100%);
}

.tp-btn-txt {
    background: #81c784;

    background: linear-gradient(135deg, #81c784 0%, #388e3c 100%);
}


.tp-btn-export:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    filter: brightness(1.1);
}

.tp-btn-export:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tp-btn-export i {
    font-size: 1.1rem;
}

.tp-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 13px !important;
}

.tp-table th {
    background: #005b96 !important;
    color: white !important;
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
}

.tp-table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.tp-objeto-text {
    max-width: 250px;
    line-height: 1.4;
}

.tp-valor {
    font-weight: 600;
    color: #28a745;
    white-space: nowrap;
}

.tp-pagination-area {
    padding: 20px 25px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/*css dos cards da transparencia*/

/* Estilos necessários para os cards */
.secao-azul-custom {
    position: relative;
    background-color: #06405d;
    background-image: url(assets/image/bg_geral_1.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    color: white;
    padding: 40px 0;
    border-radius: 0;
    margin: 0 -15px;
}

.fundo_card {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    border-radius: 16px !important;
}

.fundo_card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.25);
}

.container_card {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 16px 0;
}

.card_info {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card_info:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card_info .content {
    padding: 24px;
    position: relative;
    z-index: 2;
}

.card_info .imgBx {
    text-align: center;
    margin-bottom: 16px;
}

.card_info .imgBx img {
    max-width: 70px;
    height: auto;
}

.card_info .contentBx h3 {
    color: white;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.4;
}

.card_info .contentBx h3 span {
    font-size: 0.85rem;
    font-weight: normal;
    opacity: 0.9;
    display: block;
    margin-top: 8px;
}

.custom-hr {
    margin: 10px 0;
    border: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    width: 50px;
}

.card_info .sci {
    position: absolute;
    bottom: 15px;
    right: 15px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.card_info:hover .sci {
    opacity: 1;
}

.card_info-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.card_info-link:hover {
    text-decoration: none;
}

.cor_sidebar {
    background: linear-gradient(180deg, #0a1a2f 0%, #0d2b45 100%);
    min-height: 100vh;
    padding: 20px 10px;
    border-radius: 0;
    height: 100%;
}

.texto_cfg {
    color: #1e3c72;
    font-weight: 700;
    margin: 30px 0 40px 0;
    padding-left: 15px;
    border-left: 5px solid #1e3c72;
}

.cor_sidebar .nav-link {
    padding: 10px 15px;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.cor_sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.posi_title {
    background: #0a1a2f;
    margin: 0;
}

@media (max-width: 768px) {
    .container_card {
        grid-template-columns: 1fr;
    }

    .cor_sidebar {
        min-height: auto;
        margin-bottom: 20px;
    }

    .secao-azul-custom {
        margin: 0;
    }
}


.margin-top-page {
    margin-top: 0.5%;
    width: 100% !important;
}

/*css do modal dos iframes*/

/* Correção para o modal fullscreen */
.modal-fullscreen .modal-content {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.modal-fullscreen .modal-body {
    flex: 1;
    overflow: auto;
    position: relative;
}

#modalIframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: none;
}

#modalLoader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

/* Esconde o loader quando o iframe está visível */
#modalIframe[style*="display: block"]+#modalLoader,
#modalIframe[style*="display:block"]+#modalLoader {
    display: none !important;
}

/* Garante que o modal fique acima de tudo */
.modal {
    z-index: 9999 !important;
}

.modal-backdrop {
    z-index: 9998 !important;
}

/* Garante que o conteúdo do modal também fique acima */
.modal-content {
    z-index: 10000 !important;
}

/* Se seu navbar tiver z-index, força o modal a ficar acima */
.modal.fade.show {
    z-index: 9999 !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
}

/* Força o backdrop (fundo escuro) a ficar acima do navbar */
.modal-backdrop.fade.show {
    z-index: 9998 !important;
}

.busca-portal {
    width: 100%;
    max-width: 700px;
    background: #fff;
    border-radius: 50px;
    padding: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .12);
    border: 2px solid #f1f1f1;
    transition: .3s;
}

.busca-portal:focus-within {
    border-color: #0d6efd;
    box-shadow: 0 8px 30px rgba(13, 110, 253, .25);
}

.icone-busca {
    font-size: 1.2rem;
    color: #777;
    margin-left: 15px;
    margin-right: 10px;
}

.busca-portal input {
    border: none !important;
    background: transparent;
    font-size: 1rem;
    padding: 10px;
}

.busca-portal input:focus {
    outline: none;
    box-shadow: none !important;
}

.btn-busca {
    border: none;
    background: #0d6efd;
    color: #fff;
    padding: 10px 22px;
    border-radius: 40px;
    font-weight: 600;
    transition: .3s;
}

.btn-busca:hover {
    background: #0b5ed7;
    transform: translateY(-1px);
}


/* BOTÃO */
.acessibilidade {
    position: fixed;
    right: 7px;
    bottom: 40%;
    z-index: 99999;
}

#btn-acessibilidade {
    width: 45px;
    height: 45px;
    border: none;
    background: #0056b3;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
    border-radius: 15%;
}

.menu-acessibilidade {
    position: absolute;
    right: 55px;
    bottom: 0;

    display: flex;
    flex-direction: column;
    gap: 10px;

    background: #fff;
    padding: 15px;
    border-radius: 10px;
    width: 220px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: opacity .3s ease,
        transform .3s ease,
        visibility .3s ease;
}

.menu-acessibilidade.ativo {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.menu-acessibilidade button {
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 6px;
    background: #f1f1f1;
    font-weight: bold;
}


/* ALTO CONTRASTE */
body.alto-contraste,
body.alto-contraste * {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

body.alto-contraste a {
    color: #ffff00 !important;
}

body.alto-contraste button {
    background: #222 !important;
    color: #fff !important;
}

/* ESCALA DE CINZA */
html.escala-cinza {
    filter: grayscale(100%);
}

body.alto-contraste #conteudo-site,
body.alto-contraste #conteudo-site * {
    background: #000 !important;
    color: #fff !important;
}

/* DESTACAR LINKS */
body.destacar-links a {
    background: yellow !important;
    color: #000 !important;
    padding: 2px;
    text-decoration: underline !important;
}

/* FONTE LEGÍVEL */
body.fonte-legivel {
    font-family: Arial, Verdana, sans-serif !important;
}