body {
  font-family: "Poppins", system-ui, Arial, sans-serif;
  color: #373a40;
  font-size: 1.125rem;
  line-height: 1.6;
  min-height: 100vh;
  font-weight: 400;
}

/* celular */
.h1-title-content {
  font-size: 1.8rem;
  margin-top: 1rem;
  line-height: 2.25rem;
}

/* computador */
@media (min-width: 576px) {
.h1-title-content{
  font-size: 3rem;
  margin-top: 2rem;
  line-height: 3.5rem;
}
}

/* celular */
.h2-title-content {
  font-size: 1.6rem;
}

/* computador */
@media (min-width: 576px) {
.h2-title-content{
  font-size: 1.9rem;
}
}

/* celular */
.h1-subtitle-content {
  font-size: 1.2rem;
  margin-top: 1rem;
}

/* computador */
@media (min-width: 576px) {
.h1-subtitle-content {
  font-size: 1.25rem;
  line-height: 1.75rem;
  margin-top: 1rem;
}
}

a {
  color: #373a40;
  text-decoration: under;
}

a.link-interno {
  color: #444;
  text-decoration: none;
  transition: color 0.2s ease;
}

a.link-interno:hover {
  color: #000;
  text-decoration: none;
}

.link-externo {
  color: #0000ee;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-externo:hover {
  color: #0a58ca;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-cerise {
  color: #d20a2e;
}

.navbar-dark .navbar-brand,
.navbar-dark .nav-link,
.navbar-dark .dropdown-item {
  color: #ffffff;
}

@media (max-width: 768px) {
  .nav-link {
    padding: 8px 5px;
  }
}

.nav-item {
  position: relative;
}

.nav-item::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #fec400;
  transition: width 0.2s ease-in-out;
  position: absolute;
  bottom: 0;
  left: 0;
}

@media (hover: hover) {
  .nav-item:hover::after {
    width: 100%;
  }
}

.hunderline {
  padding-bottom: 10px;
  border-bottom: 0.15rem solid #fec400;
  display: inline-block;
}

.btn-secondary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #c30b4e;
  --bs-btn-border-color: #c30b4e;
  --bs-btn-hover-bg: #c02e4f;
  --bs-btn-hover-border-color: #ae2a46;
}

#btn-back-to-top {
  position: fixed;
  bottom: 60px;
  right: 30px;
  background: transparent;
  color: #ad0019;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  outline: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background 0.3s ease, color 0.3s ease;
  z-index: 9999;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#btn-back-to-top svg {
  fill: currentColor;
}

body.scrolled #btn-back-to-top {
  opacity: 1;
  pointer-events: auto;
}

#btn-back-to-top:hover, #btn-back-to-top.on-footer:hover {
  background: #c30b4e;
  color: #ffffff;
}

#btn-back-to-top.on-footer {
  background: #fff;
  color: #c30b4e;
}

.card-liftshadow {
  background-color: #fff;
  border: 1px solid #ccc;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
}

@media (min-width: 576px) {
.card-liftshadow {
  border: 1px solid #ddd;
}
}

.card-liftshadow:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-footer {
  background: transparent;
  border-top: 0px;
}

.my-footer {
  background-color: #202124;
}

.img-wrapper {
  position: relative;
  display: block;
  max-width: 640px; 
  margin: 0 auto;
  background-color: #f9f9f9;
  overflow: hidden;
  line-height: 0;
}

.img-fallback, .video-fallback {
  display: block;
  width: 100%;
  height: auto; 
  opacity: 0; 
  transition: opacity 0.4s ease;
}

.img-fallback.loaded, .video-fallback.loaded {
  opacity: 1;
}

.img-fallback-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  display: none; 
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
  background-color: rgba(249, 249, 249, 0.8);
  pointer-events: none;
}

.img-fallback-icon i {
  font-size: 6rem;
  color: #c30b4e;
}

.fallback-message {
  margin-top: 10px;
  font-size: 1rem;
  color: #666;
  text-align: center;
  line-height: 1.2;
}

.img-fallback.loaded ~ .img-fallback-icon,
.video-fallback.loaded ~ .img-fallback-icon {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

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

@media (max-width: 576px) {
  #btn-back-to-top svg { width: 24px; height: 24px; }
}

.container {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.card-gray60x60 {
  background-color: #f9f9f9;
  padding-top: 60px;
  padding-bottom: 60px;
}

.section-spacing {
  padding-block-start: 1.5rem;
  padding-block-end: 2.5rem;
}

@media (max-width: 576px) {
  .section-spacing {
    padding-block-start: 2.5rem;
    padding-block-end: 3.5rem;
  }
}

/* card principal homepage */
.news-card {
  overflow: hidden;
  background: #fff;
}

.news-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.news-card-image {
  position: relative;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.news-card .card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card .card-text {
  margin-top: auto;
}

@media (hover: hover) {
  .news-card:hover .news-card-image img {
    transform: scale(1.08);
  }
}

.news-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65),
    rgba(0, 0, 0, 0)
  );
}

.news-card-overlay .news-card-title {
  color: #ffffff;
}

.adsense-spacer {
  margin: 20px 0;
  text-align: center;
}

/* share button */
.share-btn {
    width: 200px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: none;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: background-color 0.3s ease,
                transform 0.25s ease,
                box-shadow 0.25s ease;
    cursor: pointer;
}

@media (max-width: 576px) {
    .share-btn {
        width: 96px;
        height: 42px;
    }
}

.share-btn svg {
    transition: color 0.3s ease;
}

.share-btn-whatsapp {
    color: #25d366;
}

.share-btn-generic {
    color: #000000;
}

@media (hover: hover) and (pointer: fine) {
    .share-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(0,0,0,0.15);
    }
    .share-btn-whatsapp:hover {
        background-color: #25d366;
        color: #ffffff;
    }
    .share-btn-generic:hover {
        background-color: #555;
        color: #ffffff;
    }
}

/* FORM BUTTONS START */
.btn-secondary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #da3458;
    --bs-btn-border-color: #da3458;
    --bs-btn-hover-bg: #c02e4f;
    --bs-btn-hover-border-color: #ae2a46;
}
.btn-danger {
    --bs-btn-color: #000;
    --bs-btn-bg: #ffe4e1;
    --bs-btn-border-color: #ffc1bd;
    --bs-btn-hover-color: #000;
    --bs-btn-hover-bg: #ffcbdb;
    --bs-btn-hover-border-color: #ffb6c1;
}
.btn-info {
    --bs-btn-color: #000;
    --bs-btn-bg: #e0ffff;
    --bs-btn-border-color: #b2eeee;
    --bs-btn-hover-bg: #afeeee;
    --bs-btn-hover-border-color: #98d8d8;
}
.btn-warning {
    --bs-btn-color: #000;
    --bs-btn-bg: #ffefd5;
    --bs-btn-border-color: #ffe0b2;
    --bs-btn-hover-bg: #ffe4c4;
    --bs-btn-hover-border-color: #f5d1a0;
}
/* FORM BUTTONS END */

/* FORM START */
/* Garante que o código de barras (SVG ou Imagem) seja responsivo */
#barcode, 
#barcode-container img, 
#barcode-container svg {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto; /* Centraliza o código de barras se ele for menor que a tela */
}

/* CONTAINER PRINCIPAL: Alinha o input e o ícone de cópia */
.input-container {
    display: flex !important;
    align-items: center !important;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-container:focus-within {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* O CAMPO DE TEXTO (INPUT): Mantém a linha única para Desktop */
.input-container .form-control {
    flex: 1 1 auto !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 12px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 1rem;
    min-width: 0; /* Impede que o input empurre o ícone para fora */
}

/* O ÍCONE DE CÓPIA: Fixo à direita, com área de clique clara */
.input-container svg {
    flex: 0 0 44px !important; /* Tamanho fixo do botão de cópia */
    height: 44px;
    padding: 10px;
    cursor: pointer;
    fill: #373a40;
    background-color: #f8f9fa;
    border-left: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.input-container svg:hover {
    fill: #ffffff !important;
    background-color: #da3458 !important;
}

/* Ajuste para o código de barras (imagem) ficar centralizado e responsivo */
#barcode-container svg {
    max-width: 100%;
    height: auto;
}

/* O CAMPO DE TEXTO (INPUT): Mantém a linha única para Desktop */
.input-container .form-control {
    flex: 1 1 auto !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 12px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 1rem;
    min-width: 0; /* Impede que o input empurre o ícone para fora */
}

/* Ajuste específico para o Input do Conversor (permite scroll se não couber) */
input.form-control#linhadigitavel1, 
input.form-control#codigodebarras1 {
    white-space: nowrap !important;
    overflow-x: auto !important;
}

/* Específico para a DIV do Gerador: Força quebra de linha */
div.form-control#resLinha, div.form-control#resBarras {
    word-break: break-all !important;
    white-space: normal !important;
    height: auto !important;
    min-height: 58px;
    display: block !important; /* Divs funcionam melhor como block para quebrar linha */
}

/* Específico para o INPUT do Conversor: Permite scroll lateral se for muito grande */
input.form-control {
    white-space: nowrap;
    overflow-x: auto;
}

/* Área do Ícone: Espaço reservado e fixo */
.input-container svg, 
.input-container .copy-icon-linha, 
.input-container .copy-icon-barra {
    flex: 0 0 45px !important; /* Não encolhe, mantém 45px */
    height: auto !important;
    padding: 10px;
    cursor: pointer;
    fill: #373a40;
    transition: fill 0.2s, background 0.2s;
    background-color: #f8f9fa; /* Leve fundo para destacar o botão */
    border-left: 1px solid #dee2e6;
    position: static !important; /* Remove o absolute que causava sobreposição */
    transform: none !important;  /* Remove o translateY que tirava do centro */
}

/* Foco visual */
.input-container:focus-within {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Responsividade para Celular */
@media (max-width: 576px) {
    .input-container svg {
        flex: 0 0 38px !important; /* Diminuímos de 44px para 38px */
        padding: 8px;              /* Diminuímos o respiro interno */
    }
}
/* FORM END */

.alerta-valor { 
        color: #dc3545; 
        font-size: 0.85rem; 
        font-weight: bold; 
        margin-top: 5px; 
        display: none; 
    }

.bg-mylight {
  background-color: #f9f9f9 !important;
  color: #000; /* Ajuste a cor do texto se necessário */
}

