
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playwrite+IN:wght@100..400&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Smooch+Sans:wght@100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 4.5rem;
    --body-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --h2-font-size: 1.25rem;
  --normal-font-size: .938rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: rgba(25, 25, 79, 1);
  --title-color: hsl(0, 0%, 0%);
  --text-color: hsl(230, 12%, 40%);
  --body-color: hsl(230, 100%, 98%);
  --container-color: hsl(230, 100%, 97%);
  --border-color: hsl(230, 25%, 80%);
  --nav-color: hsl(0, 0%, 100%); 

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --h2-font-size: 1.25rem;
  --normal-font-size: .938rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-fixed: 100;
  --z-modal: 1000;
}

*{
    margin: 0;
    padding: 0;
}

body {
  font-family: var(--body-font);
  scrollbar-width: none;
}

a{
    color: var(--title-color);
    text-decoration: none;
}

.stat-box .texto{
 font-size: 15px;
 font-weight: bold;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  padding: 0 2rem;
  background-color: var(--nav-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  height: 55px;
}


main{
    background-size: cover;
    height: 92vh;
}

.nav__list {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav__link {
  font-size: var( --font-semi-bold); 
  color: var(--title-color);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background 0.3s, color 0.3s;
  font-weight: bold;
}

.nav__link:hover {
  background-color: var(--first-color);
  color: #fff;
}

.nav__link--sair {
   gap: 8px;
  background-color: #e63946; /* vermelho */
  color: #fff; /* texto branco */
  text-decoration: none;
  border-radius: 16px;
  font-weight: bold;
  transition: background 0.3s ease;
}


.nav__link--sair:hover {
  background-color: #d62828; /* vermelho mais escuro no hover */
}

/* Link ativo (página atual) */


.nav__logo img {
  height: 40px;
  width: auto;
  margin-left: -20px;
}

.nav__logo {
  display: flex;
  margin-left: 10px;
}

.nav_logo p {
  margin-left: 100px;
}

.nav__logo-text{
   margin-left: 15px;
   font-size: 14px;
   font-weight: 400;
}

/* CONTEnt - INFO*/

.container-component {
    display: flex;
    align-items: center;
    justify-content: space-between;
   
    max-width: 100%;
    background-color: #FE3C00;
   
  height: 20vh;
  padding: 10px 30px;
}

.content-info {
    margin-left: 20px;
}

.content-text {
    color: #fff;
}

.content-text h1{
    font-size: 24px;
    font-weight: bold;
}


.stats {
    display: flex;
    /* gap: 15px; */
    flex-wrap: wrap;
    /* margin-top: 18px; */
    gap: 12px;
    margin-top: 10px;
}

.stat-box {
    background-color: #19194F;
   /* padding: 12px 18px; */
    border-radius: 6px;
    text-align: center;
   /* font-size: 14px; */
    font-weight: bold;
    color: white;
    padding: 8px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    height: 58px;
}

/*.municipios{
    display: flex;
    background-color: #F0F0F0;
    margin: 30px;
    height: 400px;
    border-radius: 30px;
    
}*/

.municipios-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px;
    margin-left: 30px;
}

h1{
    font: 1em sans-serif;
}
.content-municipios h1 {
   /* font-size: 35px; */
    font-weight: bold;
    margin: 0;
      font-size: 1.3rem;
}

.line {
    background-color: #19194F;
    /* azul escuro */
    width: 40px;
    /* linha curta, como na imagem */
    height: 4px;
    border-radius: 2px;
    margin-top: 5px;
}

.municipios-botoes {
    display: flex;
    gap: 10px;
    /* espaço entre os botões */
}

.btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    cursor: pointer;
}

.btn.relatorio {
    background-color: #e0e0e0;
    /* cinza claro */
    color: #000;
}

.btn.pesquisar {
    background-color: #19194F;
    /* azul escuro */
    color: #fff;
}

.cards-container {
  display: flex;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 10px 30px;
  font-family: Arial, sans-serif;
}

.card {
    background: #f8f8f8;
   /* padding: 20px; */
   /* border-radius: 10px; */
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
      padding: 10px;
  border-radius: 8px;
  font-size: 0.8rem;
}

.card-dark {
    background: #0b0d3a;
    color: white;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 1.1rem;
    margin: 0;
}

.card-header select {
    padding: 8px 8px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-weight: bold;
}

.card-dark .card-header select {
    background: #fff;
    color: #000;
}

.card-value {
    font-size: 2rem;
    font-weight: bold;
    margin: 15px 0 5px 0;
}

.card-sub {
    color: #777;
    margin: 0 0 15px 0;
    font-size: 0.9rem;
}

.card-dark .card-sub {
    color: #bbb;
}

.card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.card-list li {
    display: grid;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 0.9rem;
    text-align: left;
    grid-template-columns: 1fr 1fr 1fr; /* 3 colunas iguais */

}

.card-list li span {
    display: block;
}
.btn {
    align-self: flex-start;
    padding: 8px 14px;
    border: none;
    background: rgba(25, 25, 79, 1);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn:hover {
    background: #F0F0F0;
    color: #0b0d3a;
    border: #000;
}

footer {
    width: auto;
    background-color: rgba(25, 25, 79, 1);
    color: white;
    text-align: center;
    padding: 10px 20px;
    margin-top: 2.3%;

}


.footer-text {
    text-align: center;
    flex: 1;
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    right: 20px;
}
@media (max-width: 1024px) {
  .cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-container .card:last-child {
    grid-column: 1 / -1;
  }

  footer{
       margin-top: 152px;
  }
}


@media screen and (max-width: 820px) and (min-height: 1100px) {

  body {
    overflow: hidden;
  }

  /* ===== NAV ===== */
  .nav {
    height: 50px;
    padding: 0 1rem;
  }

  .nav__logo img {
    height: 26px;
  }

  .nav__logo-text {
    font-size: 11px;
    line-height: 1.2;
  }

  .nav__link {
    font-size: 0.85rem;
    padding: 6px 10px;
  }

}


  /* ============ MEDIA QUERIES ============ */

/* Para telas pequenas (smartphones) */
@media screen and (max-width: 768px) {
  .nav {
    padding: 0 1rem;
  }
  
    .icon img {
    display: none;
  }
  .nav__list {
    gap: 0.5rem;
  }
  
  .nav__link {
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
  }
  
  .nav__logo-text {
    display: none;
  }
  

  
  .containes-cards {
    gap: 15px;
  }
  
  .card {
    width: 100%;
    /*max-width: 300px;*/
    min-height: 70px;
  }
  
  .container-coluna {
    flex-direction: column;
    margin-left: 0;
    padding: 0 15px;
  }
  
  .sinalizacao {
    width: 100%;
  }
  
  .alerta-card {
    width: 100%;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

      .cards-container {
        flex-direction: column;
    }
}

/* Para a resolução específica 800×1130 (monitor em pé) */
@media screen and (min-width: 800px) and (max-width: 1130px) and (min-height: 1130px) {
  body {
    font-size: 14px;
  }
  
  main {
    height: auto;
    min-height: calc(1130px - 55px - 60px);
  }
  
  
  .text-content {
    max-width: 100%;
    margin-left: 0;
    margin-bottom: 25px;
  }
  
  .text-content h1 {
    font-size: 28px;
  }
  
  .image-content img {
    margin-right: -20px;
    width: 90%;
    max-width: 500px;
    margin-left: 10px;
  }
  
  
  .nav {
    padding: 0 1.5rem;
  }
  
  .nav__link {
    padding: 0.6rem 0.8rem;
  }
}

/* Para tablets em modo paisagem */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .container-component {
    flex-direction: row;
    padding: 15px 20px;
  }
  
  .text-content {
    max-width: 50%;
  }

  
  .image-content img {
    width: 300px;
    height: 150px;
  }
  
}

/* Para desktops pequenos */
@media screen and (min-width: 1024px) and (max-width: 1280px) {
  .container-coluna {
    max-width: 1200px;
    margin: 25px auto;
  }

}

/* Para telas muito grandes */
@media screen and (min-width: 1440px) {
  .container-coluna {
    max-width: 1400px;
    margin: 30px auto;
  }
  
  .containes-cards {
    max-width: 1400px;
    margin: 30px auto;
  }
  
  .container-component {
   /* max-width: 1400px;*/
    margin: 0 auto;
  }
}

/* Para telas muito pequenas (smartphones pequenos) */
@media screen and (max-width: 480px) {
  .nav {
    padding: 0 0.5rem;
  }
    .icon img {
    display: none;
  }
  .nav__logo img {
    height: 25px;
  }
  
  .nav__link {
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
  }
  
  .text-content h1 {
    font-size: 20px;
  }
  
  .stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
    width: 100%;
  }

   .content-info {
        flex-direction: column;
        text-align: center;
    }
  .stat-box {
    padding: 0.4rem 0.2rem;
    font-size: 0.7rem;
  }

    .stat-box img {
    width: 15px;
    height: auto;
  }

    .stat-box .texto {
    font-size: 0.6rem;
    line-height: 1;
  } 

    .cards-container {
        grid-template-columns: 1fr;
    }

    .cards-container .card:last-child {
        grid-column: auto;
    }

}

/* Ajustes para evitar overflow horizontal */
@media screen and (max-width: 400px) {
  .nav__list {
    gap: 0.3rem;
  }

    .icon img {
    display: none;
  }
  
  .nav__link {
    font-size: 0.75rem;
    padding: 0.25rem 0.4rem;
  }
  
}  