/* css styles */

.navbar-brand img {
    max-height: 50px;
    margin-right: 40px;
}

.nav-footer {
    width: 100%;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000000;
    color: white;
    box-sizing: border-box;
}

.homepage main.content {
  padding-top: 0 !important;
}

.homepage .navbar {
  margin-bottom: 0 !important;
}

.container-texto {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-texto-indice {
  max-width: 2600px;
  margin: 0 auto;
  padding: 0 2rem;
}

.carousel {
  width: 100%;
  aspect-ratio: 16 / 8;
  max-height: 450px;
  overflow: hidden;
}

.carousel-item {
  position: relative;   
}

.carousel-item img {
  width: 100%;
  height: 100%;
  max-height: 650px;
  object-fit: cover;
  filter: brightness(0.85);
}

.carousel-caption {
  position: absolute;
  top: 350px;              
  left: 0;
  width: 100%;
  padding: 17px;
  text-align: center;

  border-top: 2px solid white;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(3px);

  color: white !important;
  font-size: 1.4rem;
  font-weight: 500;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.secao-imagem {
  margin-bottom: 30px;
}

.tabela-container{
  position:relative;
  display:inline-block;   /* faz o container ter o tamanho da tabela */
  width:100%;
}

.tabela-dados {
  width: 100%;
  max-width: 950px;
  border-collapse: collapse;
  margin-top: 25px;
  font-size: 0.95rem;
}

.tabela-dados th {
  text-align: left;
  padding: 12px 14px;
  width: 35%;
  font-weight: 600;
  color: #444;
  background-color: #f8f9fa;
}

.tabela-dados td {
  padding: 12px 14px;
  color: #222;
}

.tabela-dados tr:nth-child(even) {
  background-color: #fafafa;
}

.tabela-dados tr {
  border-bottom: 1px solid #e5e5e5;
}

.tabela-dados .center {
  text-align: center;
}

.tabela-dados .center-bottom {
  text-align: center;
  border-bottom: 1px solid #222;
}

.titulo-print {
  display: none;
}

.only-print{
  display:none !important;
}

.watermark{
  display:none;
}

.watermark-img{
  display:none;
}

@media print {
  
  .watermark{
    display:block;
    position:fixed;
    text-align: center;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%) rotate(-30deg);
    font-size:80px;
    color:rgba(0,0,0,0.1);
    pointer-events:none;
    z-index:9999;
  }

  .watermark-img{
    display:block !important;
    position:fixed;
    top:20px;
    left:50%;
    transform:translateX(-50%);
    z-index:9998;
    pointer-events:none;
  }

  .watermark-img img{
    width:250px;
    opacity:0.12;
  }

  .only-print{
    display:block !important;
  }

  @page {
      margin-top: 0;
    }

  .navbar,
  .nav-page,
  .quarto-navbar{
    display:none !important;
  }

  header,
  footer,
  nav,
  .sidebar{
    display:none !important;
  }
  
  h1 {
    margin-top: 0;
  }

  body {
    font-size: 11pt;
  }

  .cabecalho-grafico {
    display: none;
  }

  .titulo-print {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .titulo-graf{
    display:block;
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
    border-bottom: 2px solid #222;
    padding-bottom: 5px;
  }

  .btn {
    display: none;
  }

  .tabela-dados {
    font-size: 10pt;
  }

  .img-graf-pdf{
    display:block;
    max-width: 100%;
    margin-top:10px;
    margin:20px auto;
  }

  .btn-detalhes{
    display:none;
  }

  .btn-detalhes-2{
    display:none;
  }

  .btn-detalhes-3 {
    display:none;
  }

  /* Esconder os botões de abas */
  .tabs {
    display: none;
  }

  .tab-btn {   
    display: none;
  }

  .label-tabs {   
    display: none;
  }

  /* Mostrar TODOS os gráficos na impressão */
  .conteudo-grafico {
    display: block !important;
    margin-bottom: 25px;
  }

}

#lista-tintas {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

#lista-tintas .card-tinta:hover {
  background-color: #000000;
}

.card-tinta {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 15px;
  border-bottom: 1px solid #eee;
  transition: background 0.2s ease, transform 0.1s ease;
}

.card-tinta:nth-child(even) {
  background-color: #f8f9fa;
}

.card-tinta:hover {
  background-color: #e9ecef;
  transform: translateY(-2px);
  cursor: pointer;
}

.titulo-tinta {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 6px;
  position: relative;
}

.titulo-tinta::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 0.5px;
  background-color: #ffffff;
  transition: width 0.65s ease;
}

.card-tinta:hover .titulo-tinta::after {
  width: 100%;
}

.card-tinta:hover .titulo-tinta {
  color: #ffffff;
}

.card-tinta:hover .tabela-horizontal tr {
  color: #ffffff;
}

.card-tinta:hover .tabela-horizontal th {
  background-color: #4E545C;
}

.card-tinta:hover .tabela-horizontal td {
  background-color: #8D9797;
}

.card-conteudo {
  display: flex;
  gap: 25px;
  align-items: center;
  margin-bottom: 25px;
}

.thumb {
  width: 200px;
  height: 118px;
  object-fit: cover;
  border-radius: 8px;
}

.info-tinta strong {
  font-size: 1.1rem;
}

.meta {
  font-size: 0.9rem;
  color: #555;
  margin-top: 4px;
}

.linha-indice-banco {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.btn-pesquisa {
  margin-left: auto;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid #444;
  border-radius: 6px;
  color: #444;
}

.btn-pesquisa:hover {
  background: #000000;
  color: white;
}

.btn-indice-banco:hover {
  color: #0d6efd;
}

.barra-busca {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap; /* só quebra em tela pequena */
  margin-bottom: 25px;
}

.barra-busca input {
  flex: 1;               /* todos crescem proporcionalmente */
  min-width: 440px;      /* evita ficar muito pequeno */
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.barra-busca input:focus {
  outline: none;
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(13,110,253,0.15);
}

.barra-busca select {
  padding: 9px 35px 9px 12px;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  cursor: pointer;

  /* remove estilo padrão do sistema */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* seta personalizada */
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23666' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5.5 7l4.5 5 4.5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  transition: all 0.25s ease;
}

.barra-busca select:focus {
  outline: none;
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(13,110,253,0.15);
}

#resultados .card-tinta {
  padding: 15px;
  border-bottom: 1px solid #eee;
  transition: background 0.2s ease;
}

#resultados .card-tinta:nth-child(even) {
  background-color: #f8f9fa;
}

#resultados .card-tinta:hover {
  background-color: #000000;
}

.titulo-secao {
  margin-top: 40px;
  margin-bottom: 15px;
  font-size: 1.3rem;
  font-weight: 600;
  border-bottom: 2px solid #222;
  padding-bottom: 5px;
}

.area-graficos {
  margin-top: 20px;
}

.card-grafico {
  background: #f8f8f8;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.cabecalho-grafico {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-align: center;
}

.grafico-wrapper {
  display: flex;
  justify-content: center;
}

.imagem-tinta {
  max-width: 100%;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: zoom-in;
  transition: 0.2s;
}

.zoom-container{
  overflow:hidden;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.label-tabs {
  font-weight: 500;
  margin-right: 10px;
}

.tab-btn {
  padding: 8px 12px;
  border: 1px solid #000000;
  border-radius: 6px;
  background: white;
  cursor: pointer;
}

.tab-btn.active {
  background: #000000;
  color: white;
}

.conteudo-grafico {
  display: none;
  text-align: center;
}

.conteudo-grafico.active {
  display: block;
}

.tabela-horizontal {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.9rem;
}

.tabela-horizontal th {
  text-align: center;
  padding: 6px;
  background-color: #f4f4f4;
  border-bottom: 2px solid #ccc;
  font-weight: 600;
}

.tabela-horizontal td {
  text-align: center;
  padding: 6px;
}

.cor-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.amostra-cor {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

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

.elementos-txt {
  margin-right: 10px;
}

.btn-detalhes {
  padding:6px 14px;
  background: #ffffff;
  border: 1px solid #444;
  color: #444;
  border-radius:6px;
  text-decoration:none;
  font-size:14px;
  margin-left: auto;
  transform:translateY(20px); /* ajusta para ficar entre as linhas */
}

.btn-detalhes:hover {
  background: #000000;
  color: white;
}

.btn-detalhes-2 {
  padding:6px 14px;
  background: #ffffff;
  border: 1px solid #444;
  color: #444;
  border-radius:6px;
  text-decoration:none;
  font-size:14px;
  margin-left: auto;
  transform:translateY(20px); /* ajusta para ficar entre as linhas */
}

.btn-detalhes-2:hover {
  background: #000000;
  color: white;
}

.btn-detalhes-3 {
  padding:6px 14px;
  background: #ffffff;
  border: 1px solid #444;
  color: #444;
  border-radius:6px;
  text-decoration:none;
  font-size:14px;
  margin-left: auto;
  transform:translateY(20px); /* ajusta para ficar entre as linhas */
}

.btn-detalhes-3:hover {
  background: #000000;
  color: white;
}

.modal{
  display:none;
  position:fixed;
  z-index:1000;
  left:0;
  top:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.8);
  justify-content:center;
  align-items:center;
}

.img-modal{
  max-width:100%;
  max-height:100%;
  background:white;
  padding:10px;
}

.fechar{
  position:absolute;
  top:20%;
  right:570px;
  color:white;
  font-size:40px;
  cursor:pointer;
}
