:root {
  --cor-principal: #004080;
  --cor-secundaria: #007bff;
  --cor-clara: #f8f9fa;
  --cor-texto: #333;
  --cor-cinza: #6c757d;
  --cores-pastas: #f7931e, #007bff, #28a745, #dc3545;
}

/* ======== GERAL ======== */
body {
  background-color: var(--cor-clara);
  font-family: 'Segoe UI', sans-serif;
  color: var(--cor-texto);
  margin: 0;
}

h1, h4 {
  color: var(--cor-principal);
}

a {
  text-decoration: none;
}

.card {
  border: none;
  transition: transform 0.2s;
}

.card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.btn-primary {
  background-color: var(--cor-principal);
  border-color: var(--cor-principal);
}

.btn-outline-primary {
  color: var(--cor-principal);
  border-color: var(--cor-principal);
}

.btn-outline-primary:hover {
  background-color: var(--cor-principal);
  color: white;
}

/* ======== HEADER ======== */
.navbar-brand img {
  max-height: 60px;
}

/* ======== FORMULÁRIO DE BUSCA ======== */
.input-group-text {
  background-color: white;
  border-right: none;
}

.input-group .form-control,
.input-group .form-select {
  border-left: none;
}

.input-group .form-control:focus,
.input-group .form-select:focus {
  box-shadow: none;
}

/* ======== TIMELINE HORIZONTAL BONITA ======== */
.timeline-container {
  position: relative;
  width: 100%;
  padding: 0 1rem;
}

.timeline-line {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--cor-principal);
  z-index: 1;
}

.timeline-points {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-around;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 2rem;
}

.timeline-item {
  text-decoration: none;
  text-align: center;
  flex: 0 0 auto;
  min-width: 70px;
}

.timeline-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: white;
  font-size: 1.4rem;
  margin: 0 auto 0.3rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px white;
  border: 2px solid var(--cor-principal);
}

.timeline-icon:nth-child(4n+1) { background-color: #f7931e; }
.timeline-icon:nth-child(4n+2) { background-color: #007bff; }
.timeline-icon:nth-child(4n+3) { background-color: #28a745; }
.timeline-icon:nth-child(4n+4) { background-color: #dc3545; }

.timeline-label {
  font-size: 0.85rem;
  color: var(--cor-principal);
  font-weight: 500;
}

/* ======== RODAPÉ ======== */
footer {
  background-color: #f8f9fa;
  border-top: 1px solid #e0e0e0;
}

footer img {
  max-height: 50px;
  margin-bottom: 10px;
}

footer p {
  font-size: 0.85rem;
  margin-bottom: 5px;
  color: var(--cor-cinza);
}

/* ======== RESPONSIVO ======== */
@media (max-width: 576px) {
  .input-group-lg {
    flex-direction: column;
  }

  .input-group .form-control,
  .input-group .form-select,
  .input-group .btn {
    width: 100%;
    border-radius: 0 !important;
    margin-bottom: 10px;
  }

  .timeline-points {
    justify-content: flex-start;
    gap: 1rem;
  }
}
