@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --primary-blue: #0047ab;
  --secondary-blue: #003380;
  --accent-orange: #ff6600;
  --dark-gray: #2d2d2d;
  --light-gray: #f8f9fa;
}



* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(135deg, var(--light-gray) 0%, #ffffff 100%);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.search-container {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.track_form {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  position: relative;
  width: 100%;
  height: 76px;
  background-color: white;
  box-shadow: 0 4px 24px hsla(222, 68%, 12%, 0.2);
  padding: 10px;
  transition: width 0.5s cubic-bezier(0.9, 0, 0.3, 0.9);
  border-bottom: 5px solid #6132b4;
}

.input-container {
  position: relative;
  flex: 1;
}

#tracking-number {
  padding: 12px 5px 12px 12px;
  border-radius: 4px;
  font-size: 1.4rem;
  font-weight: 500;
  border: none;
  outline: none;
  width: calc(100% - 64px);
  height: 100%;
  border-radius: 4rem;
  padding-left: 14px;
  opacity: 1;
  pointer-events: initial;
  transition: opacity 1.5s;
}

#tracking-number:-webkit-autofill {
  box-shadow: 0 0 0 100px white inset;
}

h2{
  font-size: 1.7rem;
  font-weight: 600;
  border-bottom: 2px solid #6a38c2;
  padding-bottom: 10px;
  margin-bottom: 20px;  
}

.submit-button {
  padding: 0.7rem 1.5rem;
  outline: none;
  border: none;
  font-size: 1rem;
  color: white;
  background-color: #6a38c2;
  border-radius: 5px;
  transition: 0.3s;
  cursor: pointer;
  margin-top: 10px;
}

.submit-button:hover {
  background-color: #6132b4;
  box-shadow: 2px 2px 10px rgba(106, 56, 194, 0.5);
}

.tracking-result {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: none;
}

.status-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.search-container input {
  padding-right: 30px;
}
.clear-button {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: #000;
  border: none;
  padding: 0;
  cursor: pointer;
  display: none;
  color: #fff;
  font-size: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}


.status-box {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.status-box h3 {
  color: #666;
  margin-bottom: 8px;
}

.timeline {
  margin-top: 30px;
}

.timeline-item {
  display: flex;
  margin-bottom: 20px;
  position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 17px;
    bottom: -32px;
    width: 2px;
    background: #0047ab;
}

.timeline-item:last-child::before{
    display: none;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  background: #0047ab;
  border-radius: 50%;
  margin-right: 15px;
  margin-top: 5px;
}



@keyframes pulse {
  0% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgb(2, 54, 128);
  }
  70% {
      transform: scale(1.2);
      box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
  }
  100% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(246, 0, 0, 0.539);
  }
}

.timeline-item:last-child .timeline-dot {
  background: #0047ab;
  animation: pulse 1s infinite normal ease;
}


.timeline-content {
  flex: 1;
}

.map-container {
  height: 400px;
  border-radius: 1rem;
  overflow: hidden;
  margin: 2rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.error-message {
  color: red;
  margin-top: 10px;
  display: none;
}

.nav__links a {
  position: relative;
  transition: color 0.3s ease;
}

.nav__links a.active {
  color: #6a38c2; /* Or your primary color */
  font-weight: 600;
}

.nav__links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #6a38c2; /* Or your primary color */
  border-radius: 2px;
}

/* Hover effect for non-active links */
.nav__links a:not(.active):hover {
  color: #6a38c2;
}

.nav__links a:not(.active):hover::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #6a38c2;
  border-radius: 2px;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .nav__links a.active::after {
      bottom: 0;
  }
  
  .nav__links a:not(.active):hover::after {
      bottom: 0;
  }
}

@media (max-width: 600px) {
  .status-container {
    grid-template-columns: 1fr;
  }

  form {
    flex-direction: column;
  }

  button[type="submit"] {
    width: 100%;
  }
}
