:root {
  --teal-1: #4dd9ac;
  --teal-2: #3ecfb8;
  --sky: #42c8f0;
  --sky-dark: #1ab6e3;
  --text-muted-custom: #aaaaaa;
}

body.tracking-page {
  background: #ffffff;
  font-family: 'Segoe UI', sans-serif;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.logo-wrap {
  padding-top: 56px;
  text-align: center;
}

.hero-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0d0d0d;
}

.hero-sub {
  color: var(--text-muted-custom);
  font-size: 0.95rem;
}

.tracker-card {
  background: #ffffff;
  border: 1px solid #e4e8ec;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  padding: 2rem 2.25rem;
  max-width: 720px;
}

.card-heading {
  font-weight: 700;
  font-size: 1rem;
  color: #0d0d0d;
  margin-bottom: 0.25rem;
}

.card-sub {
  color: var(--text-muted-custom);
  font-size: 0.875rem;
}

.field-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: #0d0d0d;
  text-align: center;
  display: block;
  margin-bottom: 0.45rem;
}

.order-input {
  background: #eef4fb;
  border: none;
  border-radius: 50px;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  color: #0d0d0d;
  width: 100%;
  outline: none;
  transition: box-shadow 0.2s;
  box-sizing: border-box;
}

.order-input:focus {
  box-shadow: 0 0 0 3px rgba(66, 200, 240, 0.25);
  background: #e4f0fa;
}

.order-input::placeholder {
  color: #bcc8d4;
}

.btn-track {
  background: linear-gradient(90deg, var(--sky), var(--sky-dark));
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: filter 0.2s, transform 0.15s;
  cursor: pointer;
}

.btn-track:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.btn-track:active {
  transform: translateY(0);
  filter: brightness(0.96);
}

.track-error {
  color: #dc3545;
  font-size: 0.875rem;
  text-align: center;
  margin-top: 0.75rem;
}

.result-area {
  margin-top: 1.5rem;
  border-top: 1px solid #e4e8ec;
  padding-top: 1.5rem;
}

.order-result-header {
  color: #5e5e5e;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.order-result-header p {
  margin: 0 0 0.25rem;
}

.order-result-divider {
  border: 0;
  border-top: 1px solid #bbbbbb;
  margin: 1rem 0;
}

/* AdminLTE-style order timeline */
.tracking-timeline {
  margin: 0 0 1rem;
  padding: 0;
  position: relative;
  font-family: 'Segoe UI', sans-serif;
}

.tracking-timeline::before {
  background: #dee2e6;
  bottom: 0;
  content: '';
  left: 31px;
  margin: 0;
  position: absolute;
  top: 0;
  width: 4px;
}

.tracking-timeline > div {
  margin-bottom: 15px;
  margin-right: 10px;
  position: relative;
}

.tracking-timeline > div::before,
.tracking-timeline > div::after {
  content: '';
  display: table;
}

.tracking-timeline > div > .timeline-item {
  background: #ffffff;
  border-radius: 0.25rem;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.125), 0 1px 3px rgba(0, 0, 0, 0.2);
  color: #495057;
  margin-left: 60px;
  margin-right: 15px;
  margin-top: 0;
  padding: 0;
  position: relative;
}

.tracking-timeline > div > .timeline-item > .timeline-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
  color: #495057;
  font-size: 16px;
  line-height: 1.1;
  margin: 0;
  padding: 10px;
  text-align: left;
}

.tracking-timeline > div > .timeline-item > .timeline-body {
  font-size: 14px;
  padding: 10px;
}

.tracking-timeline > div > .fa,
.tracking-timeline > div > .fas,
.tracking-timeline > div > .far,
.tracking-timeline > div > .fab {
  font-size: 15px;
  height: 30px;
  left: 18px;
  line-height: 30px;
  position: absolute;
  text-align: center;
  top: 0;
  width: 30px;
}

/* Fallback when order_status has no color class */
.tracking-timeline > div > .fa:not([class*='bg-']),
.tracking-timeline > div > .fas:not([class*='bg-']),
.tracking-timeline > div > .far:not([class*='bg-']),
.tracking-timeline > div > .fab:not([class*='bg-']) {
  background: #adb5bd;
  color: #ffffff;
}

.tracking-timeline .timeline-header .badge {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.tracking-timeline > div > .timeline-item > .timeline-body {
  color: #6c757d;
}

.tracking-timeline > div > .timeline-item > .timeline-body .fa-clock {
  margin-right: 0.25rem;
}

.tracking-footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: var(--text-muted-custom);
  font-size: 0.875rem;
  max-width: 720px;
  margin: 0 auto;
}

.tracking-footer a {
  color: #0d0d0d;
  text-decoration: none;
}

.tracking-footer a:hover {
  text-decoration: underline;
}

.tracking-footer .social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.tracking-footer .social-links a img {
  width: 28px;
  height: 28px;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.tracking-footer .social-links a:hover img {
  opacity: 1;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-8px);
  }
  40% {
    transform: translateX(8px);
  }
  60% {
    transform: translateX(-5px);
  }
  80% {
    transform: translateX(5px);
  }
}

.shake {
  animation: shake 0.4s ease;
}
