/* General Styles */
body {
  background: linear-gradient(180deg, #f4f7fb 0%, #ffffff 100%);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  color: #222;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

}
.container{
  max-width: 1400px;
  margin: 10px auto;
  padding: 0 16px;
}

.col-lg-6 {
  flex: 0 0 100%;
  max-width: 100%;
}
.contact-right {
    display: flex;
    gap: 12px;
    font-size: 20px;
}

/* Result Card Styling */
.result-card {
  background-color: #ffffff;
  border-radius: 12px;
  
      margin-top: -40px;
 
  padding: 18px;
  overflow: hidden;
}

h3 {
  font-size: 22px;
  font-weight: 700;
  color: #0d6efd;
  margin-bottom: 12px;
}

/* Tracking Info Layout */
.tracking-info {
  display: block;
  margin: 0 auto;
}

/* Each Row Styling */
.info-row {
  font-size: 15px;
  margin: 10px 0;
  padding: 10px 8px;
  border-radius: 8px;
  background: #fbfdff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.info-left { display: flex; align-items: center; gap: 8px; }
.info-left i { margin: 0; color: #0d6efd; min-width: 18px; }
.info-value { color: #444; font-weight: 500; text-align: right; }

/* Key Styling */
strong {
  font-weight: 700;
  color: white;
}

/* Value Styling */
span {
  color: black;
  font-weight: 500;
}
span.phone,span.email,span.addr {
    color: white;
}

/* Loader Styling */
.loader {
  margin: 20px 0;
  border: 6px solid rgba(15, 23, 42, 0.06);
  border-top: 6px solid #0d6efd;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  animation: spin 1s linear infinite;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Spinner Animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Alert Styles */
.alert-danger {
  background-color: #fff5f6;
  color: #842029;
  border-radius: 8px;
  padding: 14px 16px;
}

.search-box {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-select {
  min-width: 140px;
  padding: 10px 12px;
  border: 1px solid #e6eefc;
  border-radius: 0px;
  background: #fff;
}

.search-input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #e6eefc;
  border-radius: 0px;
  box-shadow: inset 0 1px 2px rgba(16,24,40,0.02);
}

.search-btn {
  background: linear-gradient(90deg,#e63b3b 0%, #d80000 100%);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(216, 13, 13, 0.12);
  transition: transform .09s ease, box-shadow .12s ease;
}

.search-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(216, 13, 13, 0.16); }


.timeline-container {
  margin-top: 30px;
  margin-bottom: 20px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #d4e2f4;
}

.timeline-wrapper {
  position: relative;
}

/* Top Row - Icons */
.timeline-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
}

.timeline-dot {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.timeline-dot .dot-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #e7f1ff;
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #0d6efd;
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.15);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.timeline-dot.completed .dot-circle {
  background: #0d6efd;
  color: #fff;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}

.timeline-dot.upcoming .dot-circle {
  background: #f5f8fb;
  border: 3px solid #d4e2f4;
  color: #9aa4b2;
  box-shadow: none;
}

.timeline-dot .dot-label {
  margin-top: 12px;
  font-weight: 600;
  color: #0d6efd;
  font-size: 16px;
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
}

/* Responsive */
@media (max-width: 1200px) {
  .timeline-container {
    padding: 15px;
  }

  .timeline-top {
    margin-bottom: 12px;
  }

  .timeline-dot .dot-circle {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .timeline-dot .dot-label {
    font-size: 11px;
    margin-top: 10px;
    min-height: 30px;
  }
}

@media (max-width: 992px) {
  .timeline-container {
    padding: 12px;
  }

  .timeline-dot .dot-circle {
    width: 55px;
    height: 55px;
    font-size: 22px;
  }

  .timeline-dot .dot-label {
    font-size: 10px;
    margin-top: 8px;
  }

  .timeline-status .status-label {
    font-size: 11px;
    min-height: 25px;
  }

  .timeline-status .status-date {
    font-size: 10px;
  }

  .timeline-status .status-time {
    font-size: 9px;
  }
}




/* Mobile */
@media (max-width: 576px) {
  .search-box { flex-direction: column; gap: 8px; }
  .search-btn { width: 100%; }
}

@media (max-width: 600px) {
  .info-row { display: flex; flex-direction: column; align-items: flex-start; }
  .info-row span { margin-top: 6px; width: 100%; }
}

/* Small helper spacing for icons in info rows */
.info-row i { color: #0d6efd; margin-right: 8px; min-width: 18px; }

/* Make result text more readable */
.tracking-info .info-row strong { font-weight: 700; color: #0d6efd; }
.tracking-info .info-row span { color: #444; }

.search-box .search-select, .search-box .search-input { transition: box-shadow .12s ease, transform .08s ease; }
.search-box .search-input:focus, .search-box .search-select:focus { box-shadow: 0 8px 20px rgba(13,110,253,0.08); outline: none; }

/* Summary header (booking / route / status) */
.summary-header { display:flex; gap:18px; align-items:flex-start; padding: 18px 14px; border-bottom: 1px dashed #e6eefc; background: #fff; }
.summary-left { flex: 1; display:flex; flex-direction:column; justify-content:center; }
.booking { font-size: 18px; font-weight:700; color:#111; }
.booking-no { font-size: 20px; margin-left:8px; color:#075bb9; font-weight:500; }
.bl { margin-top:8px; color:#6b7280; }
.badge { background:#eef6ff; color:#0d6efd; padding:6px 10px; border-radius:8px; font-size:13px; margin-left:8px; }

.summary-center { flex: 1; display:flex; flex-direction:column; align-items:center; }
.route { display:flex; align-items:center; gap:50px; }
.route-point { display:flex; flex-direction:column; align-items:center; color:#072a61; }
.route-point .dot { width:10px; height:10px; border-radius:50%; border:2px solid #cfe0ff; background:transparent; margin-bottom:6px; }
.route-point .dot.filled { background:#072a61; border-color:#072a61; }
.route-line { flex:1; height:2px; background:#e6eefc; }
.port { font-weight:700; font-size:14px; }
.port-code { font-size:11px; color:#9aa4b2; }
.spec { margin-top:8px; color:#4b5563; font-size:13px; }

.spec .traffic { color:#253858; font-weight:600; margin-bottom:6px; }
.spec .contspec { color:#4b5563; }

.print-btn { color:#072a61; font-size:18px; margin-top: -6px; }
.print-btn i { border:1px solid #e6eefc; padding:6px; border-radius:6px; }

/* divider between center and right */
.summary-right { flex: 1; display:flex; flex-direction:column; align-items:flex-end; gap:10px;  position:relative; }
.print-btn { position:absolute; top:-18px; right:6px; color:#072a61; font-size:18px; }
.print-btn i { border:1px solid #e6eefc; padding:8px; border-radius:6px; }

.summary-right { flex: 1; display:flex; flex-direction:column; align-items:flex-end; gap:10px; }
.latest-status { text-align:right; }
.status-badge { font-size:13px; color:#0d6efd; font-weight:700; }
.status-text { background:#eef6ff; padding:6px 10px; border-radius:18px; color:#072a61; display:inline-block; margin-top:6px; }
.status-time { font-size:12px; color:#6b7280; margin-top:6px; }
.selected-services { display:flex; gap:10px; margin-top:8px; }
.service { background: #fff; border:1px solid #e6eefc; padding:6px 10px; border-radius:20px; font-size:13px; color:#072a61; display:flex; gap:6px; align-items:center; }
.service i { color:#0d6efd; }

@media (max-width: 768px) {
  .summary-header { flex-direction:column; align-items:flex-start; }
  .summary-right { align-items:flex-start; border-left: none; padding-left:0; }
}

/* Header / Hero styles */
.site-header .topbar { background: linear-gradient(90deg,#072a61 0%, #0b3a80 100%); color: #fff; padding: 10px 0; }
.logo { font-size: 20px; font-weight: 800; color: #fff; text-decoration: none; }
.logo-accent { color: #ffd24d; margin-left: 6px; }
.nav-links a { color: rgba(255,255,255,0.9); margin-left: 18px; text-decoration: none; font-weight:600; }

.hero { padding: 26px 0 40px;background: #e9ebf3; }
.hero-card { background: white; border-radius: 12px; }
.hero-title { font-size: 26px; color: #072a61; font-weight: 800; }
.hero-sub { color: #4b5563; font-size: 14px; margin-left:12px; margin-top: 12px; }
.search-area {     gap: 12px;
    
    width: 70%;
    margin: auto 1.5%; 
    height: 44px;
  margin-top: 30px;}
.search-area .search-select { min-width: 170px; }
.search-area .search-input { padding: 14px 16px; font-size: 16px; }
.search-area .search-btn {     padding: 10px 40px;
    font-size: 16px;
    border-radius: 0px; }

@media (max-width: 576px) {
  .hero-title { font-size: 20px; }
  .hero-sub { display: none; }
  .search-area { width: 100%; height: 100%; }
  .route{
    gap: 20px;
    margin-top: 50px;
  }
}

/* New header styles */
.top-contact { background: #103d57; color: #cfeaf4; font-size: 14px; padding: 6px 0; }
.top-contact .contact-left { display:flex; gap:12px; align-items:center; flex-wrap:wrap; font-family: sans-serif;}
.top-contact .contact-left .sep { color: rgba(255,255,255,0.12); margin: 0 6px; }
.top-contact .contact-right a { color:white; margin-left:10px; }

.main-nav { background: #fff; padding: 10px 0; box-shadow: 0 2px 6px rgba(16,24,40,0.04); }
.logo-area { display:flex; align-items:center; gap:14px; text-decoration:none; }
.logo-img { width: 80%;
    height: 62px;  }
.brand { font-weight:700; color:#103d57; margin-left:6px; }
.brand .and { color:#4fc3d6; margin:0 6px; font-weight:800; }
.main-links a { margin: 0 14px; color:#103d57; text-decoration:none; font-weight:600; }
.nav-cta .quote { background:#4fc3d6; color:#fff; padding:18px 25px; text-decoration:none; font-weight:700; }

@media (max-width: 992px) {
  .main-links { display:none !important; }
}

@media (max-width: 576px) {
  .top-contact { font-size:13px; display: none; }
  .logo-img { width:80%; height:55px; }
  .brand { font-size:14px; }
  .nav-cta .quote { padding:10px 12px; display: none; }
}

/* Center navbar links on large screens while keeping logo left and CTA right */
.main-nav .container { position: relative; display: flex; align-items: center; }
.main-nav .logo-area { z-index: 2; display: flex; align-items: center; }
.main-nav .main-links { position: absolute; left: 42%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 1; }
.main-nav .main-links a { color: #103d57; text-decoration: none; font-weight:700; padding: 6px 8px;    font-family: sans-serif; }
.main-nav .nav-cta { z-index: 2; }

/* Header link hover color */
.main-nav .main-links a:hover,
.main-links a:hover {
  color: #4ab9cf !important;
}

/* Mobile links hover to match header */
.mobile-links a:hover {
  color: #1f425d;
  background: rgba(31,66,93,0.03);
}

/* Hamburger button (mobile) */
.hamburger { background: transparent; border: 0; padding: 8px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.hamburger .hamburger-box { width: 26px; height: 18px; display: inline-block; position: relative; }
.hamburger .hamburger-inner { position: absolute; top: 50%; left: 0; right: 0; height: 2px; background: #103d57; transform: translateY(-50%); transition: all 0.25s ease; }
.hamburger .hamburger-inner::before, .hamburger .hamburger-inner::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: #103d57; transition: all 0.25s ease; }
.hamburger .hamburger-inner::before { top: -7px; }
.hamburger .hamburger-inner::after { top: 7px; }
.hamburger.open .hamburger-inner { background: transparent; }
.hamburger.open .hamburger-inner::before { transform: translateY(7px) rotate(45deg); }
.hamburger.open .hamburger-inner::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile navigation overlay */
.mobile-nav { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: none; align-items: flex-start; justify-content: flex-end; z-index: 1050; }
.mobile-nav.open { display: flex; }
.mobile-nav-inner { width: 280px; max-width: 90%; height: 100%; background: #fff; padding: 22px; box-shadow: -8px 0 30px rgba(16,24,40,0.16); overflow-y: auto; }
.mobile-nav-close { background: transparent; border: 0; font-size: 30px; line-height: 1; color: #103d57; position: absolute; top: 1px; left: 70px; cursor: pointer; }
.mobile-links { display:flex; flex-direction:column; gap: 12px; margin-top: 28px; }
.mobile-links a { color: #103d57; text-decoration: none; font-weight:700; padding: 10px 6px; border-bottom: 1px solid rgba(16,24,40,0.04); }
.mobile-links .mobile-quote {     background: #4fc3d6;
    color: #fff;
    padding: 14px 15px;
    border-radius: 4px;
    margin-top: 12px;
    display: inline-block;
    text-align: center; }

/* Prevent body scroll when mobile nav open */
.no-scroll { overflow: hidden; }

@media (min-width: 993px) {
  .hamburger, .mobile-nav { display: none !important; }
}

@media (max-width: 992px) {
  /* On medium / small screens, restore normal flow so links stack or are hidden by existing utilities */
  .main-nav .main-links { position: static; transform: none; gap: 14px; }
  .main-nav .container { justify-content: space-between; }
}

@media (max-width: 576px) {
  .main-nav .main-links { display: none !important; }
  .nav-cta .quote { padding: 8px 10px; font-size: 14px;  display: none;}
  
}

/* Footer styles matching provided design */
.site-footer { background: #1F425D; color: #cfeaf4; }
.site-footer .footer-top { padding: 60px 0 40px; }
.site-footer .footer-row { gap: 0px; }
.site-footer .footer-col { flex: 1; min-width: 180px; }
.site-footer .footer-col-about { flex: 2; max-width: 420px; }
.site-footer .logo-area { align-items: center; gap: 12px; }
.site-footer .brand { color: #d6f2f6; font-weight: 800; letter-spacing: 1px; margin-left: 6px; font-size: 18px; }
.site-footer .logo-img { width: 70%;
    height: 60px;
      margin-top: -13px;}
.footer-desc {     margin-top: 5px;
    color: #9DACB8;
    line-height: 1.8;
    max-width: 240px;
    margin-left: 49px; }
.site-footer h4 {    color: #ffffff;
    font-size: 20px;
    margin-bottom: 18px;
    font-weight: 700;
 }
.footer-links { list-style:none; padding:0; margin:0; }
.footer-links li { margin: 12px 0; }
.footer-links a { color: rgba(214,242,246,0.9); text-decoration:none; }
.footer-col-contact .contact-line { color: rgba(214,242,246,0.9); margin: 12px 0; }
.footer-col-contact .contact-line i { color: #4fc3d6; margin-right: 8px; }

.footer-bottom { background: #4fc3d6; padding: 22px 0; width: 90%; margin: auto; }
.footer-bottom .copyright { color: white;
    font-weight: 500;
    font-size: 18px;}
.footer-bottom .social-icons a { color:white; margin-left: 18px; text-decoration:none; font-size:18px; }

@media (max-width: 992px) {
  .site-footer .footer-row { flex-direction: column; }
  .site-footer .footer-col { margin-bottom: 22px; }
  .footer-desc { max-width: 100%; }
  .footer-bottom .container { flex-direction: column; gap: 12px; }
}

/* Additional mobile refinements */
@media (max-width: 576px) {
  /* Header/logo */
  .main-nav .container { padding-left: 12px; padding-right: 12px; }
  .logo-img { height: 46px; width: auto; }
  .hamburger { padding: 6px; }

  /* Hero */
  .hero-card { padding: 14px; }
  .hero-title { font-size: 18px; }
  .search-area { width: 100%; gap: 8px; }
  .search-area .search-select { min-width: 120px; }
  .search-area .search-input { padding: 12px; font-size: 14px; }
  .search-area .search-btn { padding: 10px 16px; font-size: 14px; }

  /* Result card and summary */
  .result-card { padding: 12px; }
  .summary-header { flex-direction: column; gap: 12px; padding: 12px; }
  .summary-left, .summary-center, .summary-right { width: 100%; align-items: flex-start; }
  .summary-right { align-items:flex-start; position: static;        flex-direction: row;
        gap: 80px;
        margin-top: 20px; }
  .print-btn { position: relative;
        margin-top: 0px;
        margin-left: 67%; }

  /* Timeline adjustments */
  .timeline { margin-top: 18px; }
  .timeline-item .timeline-icon { width: 44px; height: 44px; font-size: 16px; }
  .timeline-item .timeline-title { font-size: 14px; text-align: center; }

  /* Tracking info rows stack nicely */
  .tracking-info .info-row { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; }
  .tracking-info .info-row .info-left { width: 100%; }
  .tracking-info .info-row .info-value { width: 100%; text-align: left; }

  /* Footer spacing */
  .site-footer .footer-top { padding: 30px 12px; }
  .footer-desc { margin-left: 0; max-width: 100%; }
}

@media (max-width: 420px) {
  .hero-sub { display: none; }
  .timeline-item .timeline-icon { width: 40px; height: 40px; }
  .mobile-nav-inner { width: 86%; }
}

/* Extra mobile polish to match screenshot */
@media (max-width: 480px) {
  html, body { -webkit-text-size-adjust: 100%; }
  .container { padding-left: 10px; padding-right: 10px; }

  /* Make result card use full available width and reduce side gaps */
  .result-card { margin: 8px 0; border-radius: 10px; padding: 10px; box-shadow: none; }
  .summary-header { padding: 10px 8px; }

  /* Timeline: larger circular icons with blue fill for completed */
  .timeline { margin-top: 12px; align-items: center;}
  .timeline-item { padding: 8px 0; }
  .timeline-item .timeline-icon { width: 56px; height: 56px; border-radius: 50%; display:flex; align-items:center; justify-content:center; font-size:18px; box-shadow:none; }
  .timeline-item.completed .timeline-icon { background: #e7f1ff; color: #0d6efd; }
  .timeline-item.upcoming .timeline-icon { background: #fff; border:2px solid #dfe8fb; color:#9aa4b2; }

  /* Icon circles in info rows */
  .info-row i { background: #e7f6ff; color: #0d6efd; width: 36px; height: 36px; display:flex; align-items:center; justify-content:center; border-radius: 50%; margin-right: 10px; }

  /* Stack values and reduce spacing */
  .tracking-info .info-row { padding: 10px 6px; margin: 6px 0; border-radius: 10px; }
  .tracking-info .info-row .info-left { width: 100%; }
  .tracking-info .info-row .info-value { width: 100%; text-align: right; font-size: 14px; }

  /* Mobile nav inner tweaks */
  .mobile-nav-inner { padding: 16px; }
  .mobile-links a { padding: 12px 6px; font-size: 15px; }

  /* Reduce hero/search vertical footprint */
  .hero-card { padding: 12px; }
  .search-area .search-select { min-width: 110px; }
  .search-area .search-input { font-size: 14px; padding: 10px; }
  .search-area .search-btn { padding: 10px; font-size: 14px; }

  /* Footer spacing */
  .site-footer .footer-top { padding: 22px 10px; }
}



/* Table Styling - Matching Screenshot Design */
.tracking-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background: #ffffff;
  border: 1px solid #d4e2f4;
}

.tracking-table thead {
  background: #f0f5fb;
  border-bottom: 2px solid #0d6efd;
}

.tracking-table thead th {
  padding: 14px 12px;
  text-align: center;
  font-weight: 600;
  color: #0d6efd;
  font-size: 16px;
  border-right: 1px solid #d4e2f4;
  line-height: 1.3;
}

.tracking-table thead th:last-child {
  border-right: none;
}

.tracking-table tbody td {
  padding: 14px 12px;
  text-align: center;
  color: #333;
  font-size: 14px;
  border-right: 1px solid #e0e8f2;
  border-bottom: 1px solid #e0e8f2;
  text-transform: uppercase;
}

.tracking-table tbody td:last-child {
  border-right: none;
}

.tracking-table tbody tr:last-child td {
  border-bottom: none;
}

.tracking-table tbody tr:hover {
  background: #f8fafd;
}

.tracking-table strong {
  color: black;
  font-weight: 700;
  display: block;
  margin-bottom: 3px;
}

.tracking-table .status-badge {
  font-size: 10px;
  color: #fff;
  background: #4ab9cf;
  padding: 3px 8px;
  border-radius: 10px;
  display: inline-block;
  font-weight: 600;
}

.tracking-table .date-small {
  font-size: 16px;
  color: #666;
  display: block;
  margin-top: 3px;
}

.tracking-table .confirm-badge {
  display: inline-block;
  background: #c8e6c9;
  color: #2e7d32;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

/* Details Grid */
.tracking-details-grid {
  background: #ffffff;
  border: 1px solid #d4e2f4;
  padding: 18px;
}

.details-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.details-row:last-child {
  margin-bottom: 0;
}

.detail-item {
  padding: 11px;
  background: #f8fafd;
  border-radius: 4px;
}

.detail-label {
  font-size: 14px;
  font-weight: 600;
  color: #0d6efd;
  margin-bottom: 5px;
}

.detail-value {
  font-size: 13px;
  color: #333;
  font-weight: 500;
}

/* Mobile Table Layout */
.mobile-table {
  display: none;
}

.mobile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e0e8f2;
}

.mobile-row:last-child {
  border-bottom: none;
}

.mobile-label {
  font-weight: 600;
  color: #0d6efd;
  font-size: 14px;
  flex: 0 0 40%;
}

.mobile-value {
  text-align: right;
  color: #333;
  font-size: 14px;
  flex: 1;
}

/* Mobile Details Layout */
.mobile-details {
  display: none;
}

.mobile-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e0e8f2;
}

.mobile-detail-row:last-child {
  border-bottom: none;
}

.mobile-detail-label {
  font-weight: 600;
  color: #0d6efd;
  font-size: 13px;
  flex: 0 0 40%;
}

.mobile-detail-value {
  text-align: right;
  color: #333;
  font-size: 13px;
  flex: 1;
}

/* Responsive */
@media (max-width: 1200px) {
  .details-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

@media (max-width: 992px) {
  .tracking-table thead th {
    font-size: 11px;
    padding: 12px 10px;
  }
  
  .tracking-table tbody td {
    padding: 12px 10px;
    font-size: 12px;
  }

  .details-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .table-wrapper {
    display: none;
  }

  .mobile-table {
    display: block;
  }

  .tracking-details-grid {
    display: none;
  }

  .mobile-details {
    display: block;
  }

  .details-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .tracking-details-grid {
    padding: 12px;
  }
}

@media (max-width: 576px) {
  .table-wrapper {
    display: none;
  }

  .mobile-table {
    display: block;
  }

  .tracking-details-grid {
    display: none;
  }

  .mobile-details {
    display: block;
  }

  .details-row {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 8px;
  }

  .tracking-details-grid {
    padding: 10px;
  }

  .detail-item {
    padding: 8px;
  }

  .mobile-row {
    padding: 10px 0;
  }

  .mobile-label, .mobile-value {
    font-size: 13px;
  }

  .mobile-detail-row {
    padding: 20px 0;
  }

  .mobile-detail-label, .mobile-detail-value {
    font-size: 12px;
  }
}
/* ========== TIMELINE WITH DOTS PROGRESS BAR ========== */

.timeline-container {
  margin: 30px 0 20px;
  padding: 25px 20px;
  background: #ffffff;
  border: 1px solid #e6eefc;
  border-radius: 16px;
  overflow: visible;
}

.timeline-wrapper {
  position: relative;
  overflow: visible;
}

/* Top Row - Icons */
.timeline-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
  position: relative;
  z-index: 10;
}

.timeline-dot {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.timeline-dot .dot-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #f5f8fc;
  border: 2px solid #e0e8f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #9aa4b2;
  margin: 0 auto;
  transition: all 0.3s ease;
  position: relative;
  z-index: 10;
}

.timeline-dot.completed .dot-circle {
  background: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.timeline-dot.upcoming .dot-circle {
  background: #f8fafd;
  border-color: #e0e8f2;
  color: #bdc4cc;
}

.timeline-dot .dot-label {
  margin-top: 12px;
  font-weight: 600;
  color: #2c3e50;
  font-size: 13px;
  min-height: 40px;
  text-align: center;
  line-height: 1.4;
}

.timeline-dot.completed .dot-label {
  color: #0d6efd;
}

.timeline-dot .dot-date {
  font-size: 10px;
  color: #6c757d;
  margin-top: 4px;
}

/* Progress Bar with Dots */
.timeline-progress-wrapper {
  position: relative;
  width: calc(100% - 80px);
  margin: 0 auto 25px;
  height: 4px;
}

.timeline-progress-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #e0e8f2;
  border-radius: 4px;
}

.timeline-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #0d6efd;
  border-radius: 4px;
  transition: width 0.5s ease;
  z-index: 2;
}

.timeline-progress-dots {
     position: absolute;
    top: -6px;
    left: 170px;
    width: 72%;
    height: 16px;
    z-index: 3;
}

.progress-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #e0e8f2;
  border: 2px solid #fff;
  border-radius: 50%;
  transform: translateX(-50%);
  top: 0;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.progress-dot.completed {
  background: #0d6efd;
  border-color: #0d6efd;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.2);
}

/* Bottom Row - Status */
.timeline-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 10px;
  position: relative;
  z-index: 10;
}

.timeline-status {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 8px;
}

.timeline-status.active .status-label {
  color: #0d6efd;
  font-weight: 700;
}

.timeline-status.active .status-date {
  color: #2c3e50;
  font-weight: 600;
}

.timeline-status.inactive .status-label,
.timeline-status.inactive .status-date,
.timeline-status.inactive .status-time {
  color: #bdc4cc;
  opacity: 0.7;
}

.timeline-status .status-label {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  min-height: 40px;
  text-align: center;
  line-height: 1.3;
}

.timeline-status .status-date {
  font-size: 11px;
  font-weight: 500;
}

.timeline-status .status-time {
  font-size: 10px;
  font-weight: 500;
  margin-top: 2px;
}

/* Responsive */
@media (max-width: 1200px) {
  .timeline-dot .dot-circle { width: 60px; height: 60px; font-size: 24px; }
  .timeline-progress-wrapper { width: calc(100% - 60px); }
  .progress-dot { width: 12px; height: 12px; top: -5px; }
}

@media (max-width: 992px) {
  .timeline-dot .dot-circle { width: 55px; height: 55px; font-size: 22px; }
  .timeline-dot .dot-label { font-size: 10px; }
  .timeline-progress-wrapper { width: calc(100% - 50px); }
}

@media (max-width: 768px) {
  .timeline-container { padding: 15px 10px; }
  .timeline-dot .dot-circle { width: 48px; height: 48px; font-size: 20px; }
  .timeline-dot .dot-label { font-size: 9px; margin-top: 8px; }
  .timeline-progress-wrapper { width: calc(100% - 40px); height: 3px; margin-bottom: 20px; }
  .progress-dot { width: 10px; height: 10px; top: -4px; }
  .timeline-status .status-label { font-size: 9px; min-height: 28px; }
  .timeline-status .status-date { font-size: 8px; }
  .timeline-progress-dots{
        left: 38px;
    width: 75%;
    top: 0px;
  }
}

@media (max-width: 576px) {
  .timeline-dot .dot-circle { width: 42px; height: 42px; font-size: 18px; }
  .timeline-dot .dot-label { font-size: 8px; }
  .timeline-progress-wrapper { width: calc(100% - 30px); height: 2px; }
  .progress-dot { width: 8px; height: 8px; top: -3px; }
  .timeline-status .status-label { font-size: 8px; min-height: 24px; }
}