:root {
  --laranja: #FF9F4A;
  --laranja-claro: #fff1e3;
  --verde: #00aa00;
  --cinza: #e0e0e0;
  --cinza-claro: #f9f9f9;
  --branco: #fff;
  --fonte: 'Arial', sans-serif;
}



body {
  font-family: var(--fonte);
  margin: 0;
  background-color: #f5f5f5;
  font-family: Arial, sans-serif;
  justify-content: center;
  padding: 40px;
  background-color: #f9f9f9;
  /*(desconfigura o layout do site site)display: flex;*/
}

.area-cliente {
  padding: 20px;
  text-align: center;
  max-width: auto;
  margin: auto;
}

.area-cliente h1 {
  font-size: 70px;
  color: #333;
  font-weight: bold;
}

.nome-prestamista {
  font-size: 24px;
  font-weight: bold;
  color: #444;
  margin-left: 20px;
  margin-bottom: 5px;
}

.bem-vindo {
  font-size: 20px;
  font-weight: bold;
  color: #444;
  margin-left: 20px;
  margin-bottom: 5px;
}

.layout {
  display: grid;
  grid-template-columns: 450px 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 20px;
  max-width: auto;
  width: 100%;
}

.box {
  background-color: var(--laranja-claro);
  border-radius: 12px;
  padding: 20px;
  color: black;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.box:hover {
  transform: translateY(-5px);
}

/* Grid area classes */
.vertical-left {
  grid-row: span 1;

}

.horizontal-top {
  grid-column: span 2;
  width: 100%;
  position: relative;
}

.horizontal-botton {
  grid-column: span 2;
  width: 100%;
}

.horizontal-botton img {
  width: 1000px;
  height: 400px;
}

.middle-left {
  min-height: auto;
}

.middle-right {
  min-height: 200px;
}

.bottom {
  background-color: #f9e4d4;
}

.linha-botoes {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.linha-botoes img {
  width: 25px;
  height: 25px;
}

.linha-botoes button {
  margin-right: 10px;
}

.middle-horizontal {
  grid-column: span 3;
  grid-row: span 1;
}


/* Barra de Progresso (Situação Financeira) */
.barra-progresso {
  display: flex;
  height: 100px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 15px;
  background-color: var(--cinza);
}

.progresso {
  background-color: var(--laranja);
  color: white;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.restante {
  background-color: var(--cinza);
  color: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.info-situacao {
  margin-top: 20px;
  display: flex;
  justify-content: space-around;
  font-size: 26px;
}

.info-situacao div {
  text-align: center;
}

.info-situacao strong {
  display: block;
  color: #222;
  margin-top: 5px;
  font-size: 32px;
}

/* Botões */
.botao-laranja {
  background-color: var(--laranja);
  color: #fff;
  border: none;
  padding: 12px;
  width: 100%;
  font-weight: bold;
  border-radius: 8px;
  margin-top: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

.botao-laranja:hover {
  background-color: #e06b00;
}

.botao-laranja:active {
  background-color: var(--verde);
  /* ou o mesmo do hover, se preferir */
}

.botao-cinza {
  background-color: var(--cinza);
  color: #333;
  border: none;
  padding: 12px;
  width: 100%;
  border-radius: 8px;
  font-weight: bold;
  margin-top: 10px;
  cursor: pointer;
}

.botao-verde {
  background-color: var(--verde);
  color: white;
  border: none;
  padding: 12px;
  width: 100%;
  font-weight: bold;
  border-radius: 8px;
  margin-top: 10px;
  cursor: pointer;
}

.botao-verde:hover {
  background-color: #008800;
}

/* Antecipação */
.quantidade-parcelas {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
}

.quantidade-parcelas button {
  background-color: #ccc;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
}

.quantidade-parcelas input {
  width: 50px;
  text-align: center;
  margin: 0 5px;
}

.nome {
  font-weight: bold;
  font-size: 22px;
  margin-bottom: 10px;
  margin-top: 10px;
}

.img-novidade {
  position: absolute;
  top: -15px;
  right: -15px;
}

.avisoquitado {
  text-align: center;
}

.avisoquitado img {
  width: 730px;
  height: 300px;
}

.img-manutencao {
  width: 50px;
  height: 50px;
}

.layout-manutencao {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 10px;
}

.box-manutencao-vistoria {
  background-color: var(--branco);
  border-radius: 12px;
  padding: 20px;
  color: black;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.box-manutencao-vistoria:hover {
  transform: translateY(-5px);
}

.opcao-manutencao {
  text-align: center;
}

.opcao-manutencao img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.linha-identificacao {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

#lista {
  display: none;
  /* Oculta inicialmente */
  margin-top: 10px;
  padding: 10px;
  list-style: none;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.boletos-container {
  display: grid;
  grid-template-rows: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.boleto-box-ante {
  background-color: var(--laranja-claro);
  border-radius: 12px;
  border: none;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
  min-height: 180px;
}

.boleto-box-ante p {
  font-size: 18px;
}

.boleto-box {
  background-color: var(--laranja-claro);
  border-radius: 12px;
  border: none;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
  min-height: 180px;
}

.boleto-box p {
  font-size: 28px;
  padding-bottom: 25px;
}

.boleto-box:hover {
  transform: translateY(-5px);
}

.linha-botoes {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
}

.botao-boleto {
  background-color: var(--laranja);
  height: 100px;
  text-align: left;
  color: #333;
  border: none;
  padding: 12px;
  width: 100%;
  border-radius: 8px;
  font-weight: bold;
  margin-top: 10px;
  cursor: pointer;
}

.botao-boleto:hover {
  background-color: #e06b00;
}

.cabecalho-boleto {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-boleto-ante {
  flex-grow: 1;
  padding-top: 10px;
}

.info-boleto {
  flex-grow: 1;
  padding-top: 50px;
}

.btn-toggle-detalhes {
  background-color: transparent;
  border: none;
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
  height: 32px;
  display: flex;
  align-items: center;
}

.btn-toggle-detalhes img {
  width: 16px;
  height: 16px;
}

.layout-com-sidebar {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.sidebar {
  width: 60px;
  background: #FF9F4A;
  transition: width 0.3s ease;
  overflow: hidden;
  color: white;
  border-radius: 12px;
}

.sidebar.open {
  width: 220px;
}

.toggle-btn {
  padding: 10px;
  cursor: pointer;
  color: white;
  text-align: center;
  font-size: 20px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  display: flex;
  align-items: center;
  padding-bottom: 8px;
}

.sidebar ul li button {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 15px;
  color: white;
  transition: background 0.2s;
  width: 100%;
  box-sizing: border-box;
  border: none;
  background-color: var(--laranja);
}

.sidebar ul li button:hover {
  background: #CC7830;
  border-radius: 8px;
}

.sidebar ul li .icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar ul li .icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.sidebar ul li span {
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
}

.sidebar.open ul li span {
  opacity: 1;
}

.conteudo-pagina {
  flex: 1;
  width: 100%;
}

.btn-pag-boleto {
  border: none;
}

* {
  box-sizing: border-box;
}

body {
  font-family: Verdana, sans-serif;
}

.mySlides {
  display: none;
}

img {
  vertical-align: middle;
}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

.containerVencimento {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.avisoVencimento {
  display: flex;
  border-radius: 20px;
  width: 50%;
  height: 40px;
  background-color: var(--laranja);
  justify-content: center;
  align-items: center;
}

.textoVencimento {
  font-size: 22px;
  font-weight: bold;
  margin: 0;
  color: var(--branco);
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

.box-novidade {
  color: #fff;
  border-radius: 10px;
  border: none;
  padding-left: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 20px;
  padding-top: 10px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  animation: piscarCor 0.5s infinite alternate;
}

@keyframes piscarCor {
  0% {
    background-color: red;
    color: white;
  }

  100% {
    background-color: white;
    color: red;
  }
}

.box-novidade p {
  font-size: 18px;
  font-weight: bold;
}

/* The dots/bullets/indicators */
.dot {
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

.avisoQuantBoletos {
  display: flex;
  align-items: center;
  justify-content: center;
}

.box-aviso {
  border: none;
  border-radius: 15px;
  background: var(--laranja);
  color: var(--branco);
  padding: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.box-aviso strong {
  line-height: 1.2;
}

.btnAviso {
  border: none;
  color: #000;
  background-color: var(--cinza-claro);
  transition: background 0.3s;
  padding: 6px 12px;
  height: auto;
  line-height: 1.2;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 18px;
}

.btnAviso:hover {
  background-color: #e06b00;
}

.btn-atraso {
  border: none;
  background-color: var(--laranja);
  border-radius: 12px;
  color: #000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mensagem-antecipacao {
  background-color: var(--branco);
  color: #ff0000;
  border-radius: 12px;
  border: #ff0000 solid 1px;
  text-align: center;
}

.testando {
  font-size: 20px;
}

@keyframes fade {
  from {
    opacity: .4
  }

  to {
    opacity: 1
  }
}

.avisoNovidade {
  color: #fff;
  border-radius: 10px;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  animation: piscarCor 0.5s infinite alternate;
  position: absolute;
  margin-bottom: 50px;
  margin-left: 50px;
}

@keyframes piscarCor {
  0% {
    background-color: red;
    color: white;
  }

  100% {
    background-color: white;
    color: red;
  }
}

.avisoNovidade p {
  font-size: 12px;
  font-weight: bold;
  margin: 0;
  padding: 4px;
}

.sidebar.open .avisoNovidade {
  margin-bottom: 50px;
  margin-left: 190px;
}

.containerAtraso {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0px;
  padding-bottom: 20px;
}

.boxatraso {
  background-color: var(--laranja);
  color: var(--branco);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  max-height: 100px;
  padding: 10px;
}
.aviso{
  color: #f00;
  font-weight: bold;
}

/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
  .text {
    font-size: 11px
  }
}

@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "top top"
      "left left"
      "middle-left middle-right"
      "bottom bottom";
  }
}


/* Telas menores que 768px (tablets e celulares grandes) */
@media (max-width: 768px) {
  .layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .vertical-left,
  .horizontal-top,
  .middle-left,
  .middle-right,
  .bottom {
    width: 100%;
  }

  .barra-progresso {
    height: 24px;
    font-size: 12px;
  }

  .info-situacao {
    flex-direction: column;
    gap: 10px;
  }

  .info-situacao strong {
    font-size: 26px;
  }

  .botao-laranja,
  .botao-cinza,
  .botao-verde {
    font-size: 16px;
  }
}

/* Telas menores que 800px (dashboard) */
@media (max-width: 800px) {

  .layout,
  .layout-com-sidebar,
  .conteudo-pagina,
  .area-cliente {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 0 !important;
  }

  .box,
  .vertical-left,
  .horizontal-top,
  .horizontal-botton,
  .box-aviso,
  .avisoQuantBoletos {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 15px 0 !important;
    box-sizing: border-box;
  }

  .sidebar {
    position: static !important;
    width: 100% !important;
    min-width: unset !important;
    margin-bottom: 15px !important;
  }

  .linha-botoes,
  .linha-identificacao {
    flex-direction: column !important;
    gap: 10px;
  }

  .slideshow-container img {
    width: 100% !important;
    height: auto !important;
  }

  .area-cliente h1,
  .nome-prestamista,
  .bem-vindo,
  .titulo {
    font-size: 1.2rem !important;
    text-align: center !important;
  }

  button,
  .btn-copiar,
  .btnbaixar {
    width: 100% !important;
    font-size: 1rem !important;
    margin-bottom: 10px !important;
  }

  .box,
  .box-fundo {
    border-radius: 0 !important;
    box-shadow: none !important;
  }
}

/* Garante que imagens não estourem o container */
img {
  max-width: 100%;
  height: auto;
}

body {
  overflow-x: hidden;
}