:root {
  --color-bg: #1e293b;
  --color-bg-light: #273449;
  --color-card: #1f2a38;
  --color-text: #f1f5f9;
  --color-text-muted: #cbd5e1;
  --color-border: #334155;
  --color-primary: #3b82f6;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

html,
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-bg);
  height: auto !important;
  overflow-y: auto !important;
}

.prog {
  padding-top: 90px !important;
  /* padding-bottom: 20px !important; */
}

/* === LAYOUT PRINCIPAL === */
.layout {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.chat {
  width: 360px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

/* imagem da Ju */
.chat__character {
  width: 140px;
  height: auto;
  display: block;
  margin-bottom: 6px;
  border-radius: 50px;
}

/* título e parágrafo */
.chat h1 {
  font-size: 1.6rem;
  line-height: 1.15;
  margin: 0;
  color: var(--color-text);
  font-weight: 700;
}

.chat p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

/* campo de busca */
.search {
  width: 100%;
  margin-top: 8px;
}

.search__form {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  flex-direction: column;
}

.search__input {
  flex: 1;
  padding: 5px 15px;
  border-radius: 10px;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.98rem;
  outline: none;
  width: 100%;
}

.input-wrapper {
    position: relative;
}

.oculto {
    font-family: password;
    -webkit-text-security: disc;
}

.input-wrapper i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.search__input::placeholder {
  color: var(--color-text-muted);
}

.search__button {
  padding: 5px;
  border-radius: 10px;
  background: var(--color-primary);
  color: white;
  border: none;
  font-weight: 450;
  cursor: pointer;
  margin-top: 10px;
  width: 100%;
}

.search__button:hover{
  background-color: #ff6700;
}

/*LGPD info box*/
.info-box {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--color-bg-light);
    border-left: 2px solid white;
    padding: 10px 12px;
    border-radius: 4px;
    max-width: 400px;
}

.info-box i {
    font-size: 16px;
    color: white;
}

.info-box p {
    margin: 0;
    font-size: 10px;
    color: white;
    font-style: italic;
}

/* botões para abrir o chat */
.chat-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.chat-button{
  text-decoration: none;
  background: var(--color-bg-light);
  border-radius: 5px;
  padding: 5px 7px;
  color: #fff;
  border: 1px solid var(--color-border);
}

.chat-button__text{
  font-size: 12px;
}

.chat-button:hover{
  background-color: #ff6700;
  transition: 1s;
}

/* === CHAT-RESPONSE (aparece quando consulta) === */
.chat-response {
  display: none;
  align-items: center;
  gap: 16px;
  max-width: 840px;
  margin: 50px auto 16px;
  padding: 0 32px;
  justify-content: center;
}

.chat-response__img {
  width: 92px;
  height: auto;
  flex-shrink: 0;
}

.chat-response__text {
  background: var(--color-bg-light);
  padding: 14px 18px;
  border-radius: 12px;
  color: var(--color-text);
  line-height: 1.4;
  font-size: 1rem;
  max-width: 350px;
}

.layout.hidden,
.chat-image.hidden,
#chatContainer.hidden {
  display: none !important;
}

.chat-response.visible {
  display: flex !important;
}

.link-chamado {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s ease;
}

.link-chamado:hover {
  color: #60a5fa;
}

/* === TIMELINE === */
#timeline,
.timeline {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 50px auto;
  padding: 16px 20px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 20px 20px;
  justify-content: center;
}

#timeline,
.timeline {
  --timeline-line-left: 30%;
}

#timeline.timeline-has-events::before {
  content: "";
  position: absolute;
  left: var(--timeline-line-left);
  transform: translateX(-50%);
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--color-border, #334155);
  border-radius: 2px;
  z-index: 1;
}

.timeline-item {
  display: contents;
  margin-bottom: 28px;
  color: var(--color-text, #d0d6e0);
  font-size: 14px;
}

/* DATA */
.tl-date {
  font-size: 14px;
  color: white;
  font-weight: bold;
  text-align: right;
  grid-column: 1;
}

/* ÍCONE */
.tl-icon {
  font-size: 22px;
  color: var(--color-primary, #3b82f6);
  grid-column: 2;
  z-index: 3;
  justify-self: center;
}

/* LABEL */
.tl-label {
  grid-column: 3;
}

.tl-label strong {
  display: block;
  color: var(--color-text, #fff);
  font-size: 15px;
  font-weight: 700;
}

.tl-label .desc {
  color: var(--color-text-muted, #94a3b8);
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.35;
}

.timeline-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-top: 5rem;
}

/* ------ RESPONSIVIDADE TIMELINE ----- */
/* ------- TABLETS e DESKTOP ------- */
@media (max-width: 1024px) {

  #timeline,
  .timeline {
    grid-template-columns: 1fr 40px 1fr;
    padding: 16px 20px;
    --timeline-line-left: 28%;
  }
}

/* ------- TABLETS ------- */
@media (max-width: 768px) {

  #timeline,
  .timeline {
    --timeline-line-left: 24%;
  }
}

/* ------- CELULARES MÉDIOS ------- */
@media (max-width: 640px) {

  #timeline,
  .timeline {
    grid-template-columns: 1fr 30px 1fr;
    --timeline-line-left: 10%;
  }

  .tl-date {
    font-size: 12px;
  }

  .tl-label strong {
    font-size: 13px;
  }

  .tl-label .desc {
    font-size: 11px;
  }
}

/* ------- CELULARES PEQUENOS ------- */
@media (max-width: 480px) {

  #timeline,
  .timeline {
    grid-template-columns: 1fr 28px 1fr;
    --timeline-line-left: 5%;
  }

  .tl-icon {
    font-size: 20px;
  }

  .tl-date {
    font-size: 11px;
  }

  .tl-label strong {
    font-size: 12px;
  }

  .tl-label .desc {
    font-size: 10px;
  }
}


/* ------ RESPONSIVIDADE GERAL ------ */
@media (max-width: 1024px) {
  .layout {
    flex-direction: column;
    padding: 24px;
    gap: 24px;
  }

  .chat {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .chat__character {
    width: 120px;
    margin: 0 auto 6px auto;
  }

  .chat h1 {
    font-size: 1.4rem;
  }

  .chat p {
    font-size: 0.95rem;
  }

  .search__button {
    margin-top: 8px;
  }

  .chat-response {
    flex-direction: column;
    padding: 0 16px;
    gap: 12px;
    max-width: 100%;
  }

  .chat-response__text {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .chat__character {
    width: 100px;
  }

  .chat h1 {
    font-size: 1.2rem;
  }

  .chat p {
    font-size: 0.9rem;
  }

  .layout {
    padding: 16px;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .chat__character {
    width: 80px;
  }
}

/* Limitar largura dos elementos principais */
.chat p,
.search,
.search__form,
.search__input,
.search__button {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}