/* --- CONTAINER E CENTRALIZAÇÃO --- */
#app-rastreio-nuvem {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}

.container-rastreio {
  width: 95%;
  max-width: 1050px;
  margin: 0 auto;
  padding: 40px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  font-family: sans-serif;
  box-sizing: border-box;
  text-align: left;
}

/* Textos e Formulário */
.text-center {
  text-align: center;
}
.titulo-rastreio {
  margin-top: 0;
  color: #333;
  margin-bottom: 5px;
}
.destaque-nome {
  color: #2ecc71;
}
.subtitulo-rastreio {
  color: #777;
  font-size: 14px;
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
  box-sizing: border-box;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #444;
}
.form-group input {
  width: 100%;
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
}

.btn-buscar {
  width: 100%;
  padding: 16px;
  background: #2ecc71;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s;
  box-sizing: border-box;
}
.btn-buscar:disabled {
  background: #999;
  cursor: not-allowed;
}
.btn-voltar {
  background: none;
  border: none;
  color: #2ecc71;
  cursor: pointer;
  text-decoration: underline;
  margin-top: 40px;
  font-size: 14px;
  width: 100%;
  font-weight: bold;
  display: block;
  text-align: center;
}

/* Header Resultado & Cards de NF/Transportadora */
#pedido-numero {
  color: #666;
  font-size: 15px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}
#pedido-previsao {
  font-size: 16px;
  color: #333;
  margin-top: 5px;
  font-weight: bold;
}

.info-adicional {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  margin-bottom: 40px;
}
.info-box {
  background: #f8f9fa;
  border: 1px solid #eaeaea;
  padding: 12px 20px;
  border-radius: 8px;
  min-width: 150px;
  text-align: center;
}
.info-label {
  display: block;
  font-size: 11px;
  color: #777;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: bold;
}
.info-box strong {
  color: #333;
  font-size: 14px;
  display: block;
}

/* --- ESTILO DA NOVA LISTA DE PEDIDOS --- */
#pedidos-list {
  margin-bottom: 30px;
}
.pedido-item {
  padding: 16px 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: pointer;
  background: #fafafa;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pedido-item:hover {
  border-color: #2ecc71;
  background: #f4fbf7;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(46, 204, 113, 0.1);
}
.pedido-item-info {
  text-align: left;
}
.pedido-item-info strong {
  display: block;
  color: #333;
  font-size: 16px;
  margin-bottom: 4px;
}
.pedido-item-info span {
  color: #777;
  font-size: 13px;
}
.pedido-item-seta {
  color: #2ecc71;
  font-weight: bold;
  font-size: 20px;
  transition: transform 0.3s;
}
.pedido-item:hover .pedido-item-seta {
  transform: translateX(4px);
}

/* --- LINHA DO TEMPO (DESKTOP) --- */
.timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

/* Flex 1 garante que as bolinhas ocupem EXATAMENTE o mesmo espaço */
.step {
  flex: 1 1 0;
  text-align: center;
  position: relative;
  opacity: 0.3;
  transition: all 0.3s;
  padding: 0 5px;
  box-sizing: border-box;
}

.step.active {
  opacity: 1;
}

/* Ícones (Bolinhas) */
.step .icon-box {
  width: 44px;
  height: 44px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #ccc;
  color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: all 0.3s;
}

.step.active .icon-box {
  border-color: #2ecc71;
  color: #2ecc71;
}

/* Textos das Etapas */
.step .r-txt-passo {
  font-size: 11px;
  color: #888;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  background: transparent !important;
  text-shadow: none !important;
  box-shadow: none !important;
  margin: 0 auto;
  width: 100%;
  word-wrap: break-word;
  white-space: normal;
}

.step.active .r-txt-passo {
  color: #2ecc71;
}

/* Linhas Conectoras (Desktop) */
.step::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #eee;
  z-index: 1;
}
.step:last-child::after {
  display: none;
}
.step.active::after {
  background: #2ecc71;
}

/* --- AJUSTES MOBILE --- */
@media (max-width: 768px) {
  #app-rastreio-nuvem {
    width: 100%;
    left: auto;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
  }

  .container-rastreio {
    padding: 25px 15px;
    margin: 20px auto !important;
    width: 95%;
  }

  .info-adicional {
    flex-direction: column;
    gap: 10px;
  }
  .info-box {
    min-width: 100%;
  }

  .timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px 0;
    margin: 30px 0;
  }

  .step {
    display: block;
    text-align: center;
    padding: 0 5px;
  }

  .step .icon-box {
    margin: 0 auto 10px;
    width: 34px;
    height: 34px;
  }

  .step .r-txt-passo {
    font-size: 10px;
  }

  .step::after {
    display: block;
    top: 17px;
  }

  .step:nth-child(3n)::after {
    display: none;
  }
}
