:root {
    --top-dashboard-height: 72px;
    --primary-color: #3e625a;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Zodiak';
    src: url('/static/fonts/Zodiak-Variable.woff2') format('woff2'),
         url('/static/fonts/Zodiak-Variable.woff') format('woff'),
         url('/static/fonts/Zodiak-Variable.ttf') format('truetype');
    font-weight: 100 900; /* Suporta pesos de 100 a 900 */
    font-display: swap;
    font-style: normal;
}

body {
    /* font-family: 'Zodiak', sans-serif; */
    font-family: 'poppins', sans-serif;
    font-weight: 400;
    font-size: 16px;
    min-height: 100vh;
    background-color: #fcfcfc;
    color: #475467;
    overflow-x: hidden; /*Removendo barra de navegação horizontal desnecessária.*/
}

main{
    min-height: 400px;
}

h1{
    font-weight: 600;
}

h2{
    font-weight: 500;
    color: #315653;
    font-size: 32px;
    line-height: 140%;
}

@media (min-width: 1400px) {
    .container-extra {
      max-width: 1250px;
    }
}

/* Estiliza a barra de navegação */
.header {
    position: relative;
    background-color: #325653;
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("/static/imgs/fundo.jpg");
    background-size: cover;
    background-position: top;
    opacity: 0.2;
    z-index: 0;
}

nav {
    position: relative;    
}

/* Ajuste da logo para telas pequenas */
.header img {
    height: 40px; /* Reduz tamanho da logo */
    max-width: 120px;
}

/* Estiliza o menu de navegação */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-menu li {
    display: inline;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
}

.nav-menu a:hover {
    text-decoration: underline;
}

/* Botão do menu móvel */
.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 2;
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .header {
        padding: 0 10px; /* Evita margem extra no header */
    }
    .nav-menu {
        display: none !important;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0; /* Agora ocupa toda a tela */
        width: 100%;
        text-align: center;
        background-color: #325653; /* Fundo sólido sem transparência */
        opacity: 1; /* Removendo opacidade reduzida */
        padding: 15px 0;
        margin: 0; /* Remove qualquer margem */
    }

    .nav-menu.active {
        display: flex !important;
    }

    .nav-menu li {
        margin: 10px 0;
    }

    /* Centraliza os itens no menu */
    .nav-menu a {
        display: block;
        width: 100%;
        padding: 10px 0;
    }
}

.container {
    width: 100%;
}
.container-results {
    width: 100%;
    padding: 20px;
}

.filters-fluid {
    justify-content: center;
    margin-bottom: 10px;
}
.filters, .filters-fluid {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    font-family: 'poppins', sans-serif;
  }

  .filter-group {
    display: flex;
    flex-direction: column;
  }

  .filter-group label {
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 14px;
   }

  .filter-group input,
  .filter-group select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    }

   .filter-group input#search {
       min-width: 289px;
       padding: 9px;
   }

  .filter-row {
    display: flex;
    gap: 8px;
  }

  /* Botão de Filtrar */
  .button {    
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 21px;
  }

  .button-primary:hover {
    background-color: #4a9c88;
  }

  .button-primary {
    background-color: #2a4743;
    color: white;
  }

  .button-detail:hover {
    background-color: #6092c0  !important;
  }
  
  .button-detail {
    background-color: #265d91 !important;
    color: white !important;
  }

  .button-clear:hover {
    background-color: #cb4646  !important;
  }
  
  .button-clear {
    background-color: #8e2323 !important;
    color: white !important;    
  }
.dashboard {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 16px;
    width: 100%;
    padding: 20px;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'poppins', sans-serif;
}

.total {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    min-height: 93px;
}

.table-container {
    overflow-x: auto;
    font-size: 12px;
}

.chart-container {
    min-height: 400px;
}

.chart-container h3 {
    font-size: 14px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #f4f4f4;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

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

}

@media (max-width: 500px) {
    .filters {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }
    .filter-row {
        flex-direction: column;
        gap: 10px;
    }
    .filters-fluid {
        flex-direction: column;
        align-items: center;
    }
}

.pagination-container {
    margin-top: 16px;
    text-align: center;
}

.pagination {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.pagination li {
    display: inline;
}

.page-link {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    background-color: #e2e8f0;
    color: #374151;
    border-radius: 6px;
    transition: background-color 0.2s;
    font-size: 14px;
}

.page-link:hover {
    background-color: #4a9c88;
    color: white;
}

.page-link.active {
    background-color: #2a4743;
    color: white;
    font-weight: bold;
}

ul.alerts {
    display: block;
    list-style: none;
}
ul.alerts li {
    padding: 6px 0;
}
ul.alerts li:not(:last-child) {
    margin-bottom: 6px;
    border-bottom: 1px solid #ccc
}

/*========== Tela Login =============*/
.form-control{
    font-size: 0.9rem;
}

/*========== Tela Noticia =============*/
.noticia{
    margin-top: 30px;
}

.noticia p{
    margin-bottom: 5px;
}

.noticia-info{
    border-top: 1px solid #0000001A;
    border-bottom: 1px solid #0000001A;
    font-weight: 400;
    font-size: 14px;
    line-height: 27px;
    letter-spacing: 0;
    color: #475467;
}

.noticia h3{
    font-weight: 600;
    font-size: 28px;
    margin-top: 20px;
}

.noticia h4{
    font-weight: bolder;
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 5px;
}


/*========== Tela Homepage =============*/
.homepage h2{
    font-weight: 600;
    font-size: 36px;
    line-height: 44px;
    margin-bottom: 20px;
}

.home-ibict h2{
    color: #0B3473;
}

.homepage p{
    font-size: 18px;
    color: #273124;
}

.home-main-banner {
    position: relative;
    padding: 80px 20px;
    background-color: #325653; /* Cor de fundo primeiro */
    margin-top:  -80px;
}

.home-main-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("/static/imgs/fundo.jpg");
    background-size: cover;
    background-position: top;
    opacity: 0.2;
    backdrop-filter: blur(3px);
    z-index: 0;
}

.home-main-banner .container {
    position: relative;
    z-index: 1;    
    padding-top: 50px;
    padding-bottom: 10px;

}

.home-main-banner h1{
    font-family: 'poppins', sans-serif;
    font-weight: 500;
    font-size: 60px;
    line-height: 72px;
    color: #E2C0A2;
}

.home-main-banner p{
    font-family: 'poppins', sans-serif;
    color: #EADFD2;
    font-weight: 300;
    font-size: 20px;
    line-height: 30px;
    margin-top: 20px;
}

.home-about {
    margin-top: 70px;
    margin-bottom: 70px;
}

.homepage .logo{
    max-width: 160px;
}

/*========== Tela home =============*/

.menu-box {
    background-color: #f7eee6;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0px 2px 15px 0px #31565366;
}

.gb-branco {
    background-color: transparent;
}

.menu-box h2{
    font-size: 18px;
    line-height: 100%;
    color:#757474;
    margin-bottom: 15px;
}

.menu-card-option {
    background-color: #eff8f2;
    border: none;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0px 2px 15px 0px #31565366;
    width: 190px;
    min-height: 120px;
}

.menu-icon{
    font-size: 30px;
    color: #315653;
}

.card-option:hover {
    transform: scale(1.05);
}

.menu-card-url a{
    text-decoration: none;
}

.menu-card-title {
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    text-align: center;
    color: #315653;
    text-decoration: none;
    min-height: 35px;
}

.form-filters select, .form-filters button {
    font-size: 11px;
}


/* Start: customizações */

.card-custom {
    padding: 0;
    box-shadow: rgba(67, 71, 85, 0.27) 0px 0px 0.25em, rgba(90, 125, 188, 0.05) 0px 0.25em 1em;
    border: 0;
}

.card-custom > .card-header {
    background: transparent;
    border: 0;
    font-size: .86em;
    color: var(--primary-color);
    font-weight: 600;
    padding: 20px;
}

.bg-area {
    min-height: var(--top-dashboard-height);
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
}

.icon-area {
    width: 75px;
    height: 75px;
    display: flex;
    justify-content: center;
    align-items: center;   
    position: relative; 
}

.icon-area::after {
    content: "";
    height: 95px;
    background: var(--bs-gray-400);
    width: 1px;
    position: absolute;
    right: 0;
}

.icon-area svg {
    fill: var(--primary-color);
    height: 45px;
}

.text-area {
    line-height: 1.1;
}

.text-area .title {
    font-size: 1.5em;
    font-weight: 700;
}

.text-area .sub-title {
    font-size: .76em;
    color: var(--bs-gray-600);
}

.card-custom .table td,
.card-custom .table th,
.card-custom .table tr {
    border: none !important;
    font-size: .96em;
    font-weight: 300;
}

.card-custom .table th {
    border: none !important;
    font-size: .96em;
    font-weight: 500;
}

.nav-tabs .nav-link {
    font-size: .86em !important;
}

.nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link {
    border-color: var(--primary-color) var(--primary-color) #fff;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    color: var(--bs-nav-link-hover-color);
    font-weight: 600;
}

.nav-tabs {
    border-bottom: var(--bs-nav-tabs-border-width) solid var(--primary-color);
}

.tab-content .card-custom {
    border-radius: 0;
}

.ia-text-area {
    width: 100%;
    min-height: 120px;
    max-height: 200px;
    border: 1px solid var(--bs-gray-400);
    border-radius: 5px;
    padding: 10px;
    overflow: auto;
    text-align: justify;
    display: flex;
    align-items: center;
    position: relative;    
}

#response-area-ia {
    font-size: .8em;
    position: absolute;
    top: 0;
    padding: 10px;    
}

.ia-loading-area {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
}

.ia-chart-modal {
    width: 100%;
    border: 1px solid var(--bs-gray-400);
    border-radius: 5px;
    margin-bottom: 10px;
    height: 450px;
    display: flex;
    justify-content: center;    
}

.ia-tools input {
    font-size: .7em;
    font-weight: 400;
    opacity: .7;    
}

.btn-feedback {
    cursor: pointer;
    outline: 0;
    color: #AAA;
    background: #e2e3e5;
    border-color: #fff;
}

.btn-feedback:disabled {
    cursor: pointer;
    outline: 0;
    color: #AAA;
    background: #e2e3e5;
    border-color: #fff;
}

.btn-feedback:hover {
    background: #e2e3e5;
    border-color: #fff;
    opacity: .5;
}

.btn-feedback svg {
    width: 18px;
    height: 18px;
    fill: var(--bs-gray-600);
}

.like-active > svg {
    fill: #55c590 !important;
}

.dislike-active > svg {
    fill: #d14141 !important;
}