/* ==========================================================================
   OLD LEGACY STYLES (COMMENTED OUT FOR PRESERVATION)
   ========================================================================== */
/*
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video, input { margin: 0; padding: 0; }
h4 { font-family: 'OpenSansSB'; color:Red; }
ul { list-style: none; margin: 0; padding: 0; }
ul li { list-style: none; margin: 0px 0px 0px 0px; padding: 0; }
img { border-style: none; border-color: inherit; border-width: medium; vertical-align: middle; margin-top: 0px; width: 120px; height: 50px; }
a { text-decoration: none; color:red; }
.wrapper { margin: 0 auto; width: 1240px; }
body { margin: 0; padding: 0; font-family: Verdana; font-size: 13px; color: Black; background: url(../images/body_bg.jpg) repeat; }
.main { background: url(../images/cointerner_bg.jpg) repeat-y center 0; }
*/

/* ==========================================================================
   NEW CONSOLIDATED & MODERN RESPONSIVE DESIGN SYSTEM
   Jetline Couriers Pvt. Ltd. - Unified Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #ed202d;
  --primary-hover: #c81420;
  --primary-light: #fff1f2;
  --secondary: #0f172a;
  --secondary-light: #1e293b;
  --accent: #0284c7;
  --bg-main: #f1f5f9;
  --surface: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.12), 0 8px 10px -6px rgba(0,0,0,0.04);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  width: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}

.clear {
  clear: both;
}

/* Layout Wrappers */
.main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f8fafc;
  width: 100%;
}

.wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto;
  padding: 0 30px;
  box-sizing: border-box;
}

/* Header & Top Contact Hotline (Sticky Fixed at Top) */
/* PREVIOUS RELATIVE HEADER (COMMENTED OUT FOR PRESERVATION):
.header {
  position: relative;
}
*/
.header {
  background: var(--surface);
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 10000;
}

.header_top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}

/* PREVIOUS SCROLL COLLAPSE CSS (COMMENTED OUT FOR PRESERVATION):
.header.header-top-hidden .header_top {
  max-height: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  border-bottom-color: transparent !important;
}

.header.header-top-hidden .main_menu {
  margin-top: 5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}
*/

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: auto;
  height: 52px;
  object-fit: contain;
}

.head_rt {
  display: flex;
  align-items: center;
}

.tagline_section .tollfree {
  text-align: right;
  font-size: 0.9rem;
}

.tnumber {
  color: var(--text-muted);
  font-weight: 500;
}

.tnumber span {
  font-weight: 600;
  color: var(--secondary);
}

.tnumber samp {
  font-family: inherit;
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
  margin-left: 4px;
}

.tnumber a {
  font-weight: 600;
  color: var(--accent);
}

.btn-app-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 6px 14px 6px 10px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-app-download img {
  height: 26px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}

.btn-app-download:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 6px 15px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
  color: #ffffff !important;
}

/* Mobile Nav Toggle & Menu Header Bar */
.mobile-menu-bar {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  cursor: pointer;
  user-select: none;
}

.mobile-menu-label {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-menu-label::before {
  content: "☰";
  font-size: 1.1rem;
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}

.mobile-nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background-color: #ffffff;
  border-radius: 3px;
  transition: var(--transition);
}

/* Main Navigation Menu */
.main_menu {
  background: var(--secondary);
  border-radius: var(--radius-md);
  margin-top: 10px;
  margin-bottom: 15px;
  position: relative;
}

.main_menu ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  list-style: none;
}

.main_menu ul li {
  position: relative;
}

.main_menu ul li a {
  display: block;
  padding: 14px 20px;
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  transition: var(--transition);
}

.main_menu ul li a:hover,
.main_menu ul li a.active {
  color: #ffffff;
  background-color: var(--primary);
}

.main_menu ul li.home a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
}

.main_menu ul li.home a span {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url('../images/home_icon.png') no-repeat center center;
  background-size: contain;
}

/* Dropdown Sub-menu */
.main_menu ul li .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--secondary-light);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: 1100;
  padding: 8px 0;
}

.main_menu ul li:last-child .dropdown,
.main_menu ul li:nth-last-child(2) .dropdown {
  left: auto;
  right: 0;
}

.main_menu ul li:hover .dropdown {
  display: block;
  animation: fadeIn 0.2s ease-in-out;
}

.main_menu ul li .dropdown li a {
  padding: 10px 20px;
  font-size: 0.9rem;
  color: #94a3b8;
}

.main_menu ul li .dropdown li a:hover {
  background: var(--primary);
  color: #ffffff;
}

/* Banner & Hero Slider (Unfixed Height & Dynamic Flow) */
/* PREVIOUS FIXED HEIGHT (COMMENTED OUT FOR PRESERVATION):
.nivoSlider { max-height: 420px; }
.nivoSlider img { max-height: 420px; object-fit: cover; }
*/
.banner {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 25px;
  background: transparent;
}

.nivoSlider {
  position: relative;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  overflow: hidden;
}

.nivoSlider img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
}

/* Delivery Notice / Alert Marquee */
.scrolling-text {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin-bottom: 20px;
  color: #991b1b;
  font-weight: 600;
  overflow: hidden;
}

/* Content Layout (Main Columns) */
.content {
  padding: 25px 0 40px;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}

.cols {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
  width: 100%;
  box-sizing: border-box;
}

/* Left Content Area */
.left_sidebar {
  background: var(--surface);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  width: 100%;
  box-sizing: border-box;
}

.about_txt h2,
.cols h2,
.content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.about_txt h2::after,
.cols h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3.5px;
  background: var(--primary);
  border-radius: 2px;
}

.about_txt p {
  color: var(--text-dark);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 15px;
}

/* Service Images Showcase Grid */
.services-grid,
.about_txt div[align="center"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.services-grid img,
.about_txt div[align="center"] img {
  width: 100% !important;
  height: 160px !important;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.services-grid img:hover,
.about_txt div[align="center"] img:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* Continuous Logo Marquee */
.tech-slideshow {
  background: #f8fafc;
  padding: 15px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
}

marquee {
  display: flex;
  align-items: center;
}

marquee img {
  width: 100px !important;
  height: 48px !important;
  object-fit: contain;
  margin: 0 12px;
  filter: grayscale(20%);
  transition: var(--transition);
}

marquee img:hover {
  filter: grayscale(0%);
  transform: scale(1.08);
}

/* Right Sidebar & Action Cards */
.col_right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.col_right h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 12px;
}

.login_box1 {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.login_box1:hover {
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.login_box1 ul {
  list-style: none;
}

.login_box1 ul li {
  margin-bottom: 14px;
}

.login_box1 ul li:last-child {
  margin-bottom: 0;
}

.login_box1 label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--secondary);
  margin-bottom: 6px;
}

.login_box1 label em {
  color: var(--primary);
  font-style: normal;
  margin-left: 2px;
}

.login_box1 input[type=text],
.login_box1 input[type=password],
.form-control,
input[type=text],
input[type=password],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--text-dark);
  transition: var(--transition);
}

.login_box1 input[type=text]:focus,
.login_box1 input[type=password]:focus,
.form-control:focus,
input[type=text]:focus,
input[type=password]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Modernized Buttons */
.login_box1 input[type=submit],
.login_box1 button,
.btn,
.btn-primary,
input[type=submit] {
  background: linear-gradient(135deg, var(--primary) 0%, #d91824 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(237, 32, 45, 0.25);
  display: inline-block;
  text-align: center;
}

.login_box1 input[type=submit]:hover,
.login_box1 button:hover,
.btn-primary:hover,
input[type=submit]:hover {
  background: linear-gradient(135deg, #d91824 0%, #b8141f 100%);
  box-shadow: 0 6px 15px rgba(237, 32, 45, 0.35);
  transform: translateY(-1px);
}

/* ASP.NET Responsive GridView Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 15px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.gridview,
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.9rem;
}

.gridview th,
.table th {
  background: var(--secondary);
  color: #ffffff;
  padding: 12px 16px;
  font-weight: 600;
  text-align: left;
  border-bottom: 2px solid var(--border-color);
}

.gridview td,
.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
}

.gridview tr:nth-child(even),
.table tr:nth-child(even) {
  background: #f8fafc;
}

.gridview tr:hover,
.table tr:hover {
  background: #f1f5f9;
}

/* Client Portal / Dashboard Extensions */
.dashboard-counts .item {
  background: var(--surface);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 16px;
}

.dashboard-counts .icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
}

.bg-green { background-color: #10b981 !important; }
.bg-orange { background-color: #f59e0b !important; }
.bg-red { background-color: var(--primary) !important; }

/* Footer */
.footer {
  background: var(--secondary);
  color: #94a3b8;
  padding: 24px 0;
  margin-top: auto;
  font-size: 0.9rem;
}

.foot_bot .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.foot_menu p,
.foot_bot p {
  color: #cbd5e1;
}

.foot_bot a {
  color: #ffffff;
  font-weight: 600;
}

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   MEDIA QUERIES FOR FULL DEVICE RESPONSIVENESS (MOBILE / TABLET / DESKTOP)
   ========================================================================== */

@media (max-width: 992px) {
  .cols {
    grid-template-columns: 1fr;
  }
  
  .col_right {
    order: -1; /* Sidebar forms stay accessible on tablet/mobile */
  }

  .header_top {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .tagline_section .tollfree {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .wrapper {
    padding: 0 14px;
  }

  .mobile-menu-bar {
    display: flex;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .main_menu {
    border-radius: var(--radius-sm);
    margin-top: 5px;
    margin-bottom: 8px;
    overflow: hidden;
  }

  .main_menu ul {
    flex-direction: column;
    align-items: stretch;
    display: none; /* Toggled by JS */
    background: var(--secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main_menu ul.mobile-active {
    display: flex !important;
  }

  .main_menu ul li a {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .main_menu ul li .dropdown {
    position: static;
    box-shadow: none;
    background: rgba(0,0,0,0.2);
  }

  .left_sidebar {
    padding: 20px 15px;
  }

  .foot_bot .wrapper {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   ADVISORY POPUP MODAL OVERLAY STYLES (#JetModal)
   ========================================================================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999999 !important;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.modal.show,
.modal.open {
  display: flex !important;
  animation: modalPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-dialog {
  width: 100%;
  max-width: 550px;
  margin: auto;
  position: relative;
  z-index: 1000000;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.modal-header {
  background: var(--secondary);
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal .close {
  color: #ffffff;
  opacity: 0.9;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: var(--transition);
}

.modal .close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.modal-body {
  padding: 24px;
  font-weight: 600;
  color: #991b1b;
  background-color: #fef2f2;
  font-size: 0.95rem;
  line-height: 1.6;
  border-left: 5px solid var(--primary);
}

.modal-footer {
  border-top: 1px solid var(--border-color);
  padding: 14px 20px;
  background: #ffffff;
  display: flex;
  justify-content: flex-end;
}

@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.9) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ==========================================================================
   PREMIUM STATE CUSTOMER CARE CARDS (.care-card-item)
   ========================================================================== */
.state-care-section {
  margin-top: 35px;
}

.state-care-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.care-card-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.care-card-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(237, 32, 45, 0.15);
  border-color: #fecaca;
}

.care-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.care-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #fef2f2;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  border: 1px solid #fecaca;
}

.care-card-info {
  flex: 1;
}

.care-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.3;
}

.care-card-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.care-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, #d91824 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(237, 32, 45, 0.2);
  transition: var(--transition);
  margin-top: auto;
}

.care-card-btn:hover {
  background: linear-gradient(135deg, #d91824 0%, #b8141f 100%);
  box-shadow: 0 6px 15px rgba(237, 32, 45, 0.35);
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   PREMIUM SHIPMENT TRACKING RESULT CARDS & TIMELINE STYLES
   ========================================================================== */
.track-result-wrapper {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  padding: 24px;
  margin-top: 24px;
  border-top: 4px solid var(--primary);
}

.track-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.track-result-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.track-result-title::before {
  content: "📦";
  font-size: 1.3rem;
}

.track-awb-tag {
  background: #f1f5f9;
  color: var(--secondary);
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Stepper Progress Bar */
.track-stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin: 25px 0 35px 0;
  padding: 0 10px;
}

.track-stepper::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 40px;
  right: 40px;
  height: 4px;
  background: #e2e8f0;
  z-index: 1;
}

.track-step-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  flex: 1;
}

.track-step-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #cbd5e1;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.track-step-item.active .track-step-icon {
  border-color: #10b981;
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.track-step-item.delivered .track-step-icon {
  border-color: #10b981;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.5);
  transform: scale(1.1);
}

.track-step-item.current .track-step-icon {
  border-color: var(--primary);
  background: #fef2f2;
  color: var(--primary);
  animation: pulseIcon 1.8s infinite;
}

.track-step-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.track-step-item.active .track-step-label {
  color: var(--secondary);
}

.track-step-item.delivered .track-step-label {
  color: #047857;
  font-weight: 800;
}

@keyframes pulseIcon {
  0% { box-shadow: 0 0 0 0 rgba(237, 32, 45, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(237, 32, 45, 0); }
  100% { box-shadow: 0 0 0 0 rgba(237, 32, 45, 0); }
}

/* Styled GridView Table in Tracking Result */
.track-grid {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color) !important;
}

.track-grid th {
  background: var(--secondary) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 14px 12px !important;
  border: none !important;
  text-align: center !important;
}

.track-grid td {
  padding: 14px 12px !important;
  font-size: 0.92rem !important;
  color: var(--text-dark) !important;
  border-bottom: 1px solid var(--border-color) !important;
  vertical-align: middle !important;
}

.track-grid tr:last-child td {
  border-bottom: none !important;
}

.track-grid tr:hover td {
  background-color: #f8fafc !important;
}

/* Status Pills */
.track-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

/* View History Button */
.btn-view-history {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--secondary) 0%, #1e293b 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
}

.btn-view-history:hover {
  background: linear-gradient(135deg, var(--primary) 0%, #d91824 100%);
  box-shadow: 0 6px 15px rgba(237, 32, 45, 0.25);
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Location Badges */
.track-location-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--secondary);
}

.track-location-pill.origin::before {
  content: "📍 ";
  font-size: 0.9rem;
}

.track-location-pill.dest::before {
  content: "🎯 ";
  font-size: 0.9rem;
}

/* Detailed History Card & POD Panel */
.track-detail-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  padding: 20px;
  margin-top: 24px;
}

.track-detail-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.pod-container {
  background: #f8fafc;
  border-radius: 14px;
  padding: 20px;
  border: 2px dashed #cbd5e1;
  text-align: center;
  margin-top: 20px;
}

/* ==========================================================================
   VERTICAL TIMELINE STREAM FOR DETAILED TRANSIT LOGS
   ========================================================================== */
.timeline-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

.timeline-card-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 0;
  padding: 0;
  border: none !important;
}

.timeline-count-badge {
  background: #ecfdf5;
  color: #047857;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid #a7f3d0;
}

.timeline-container {
  padding: 10px 0;
  position: relative;
}

.timeline-grid {
  width: 100% !important;
  border: none !important;
  background: transparent !important;
}

.timeline-grid td {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

.timeline-item {
  display: flex;
  gap: 16px;
  position: relative;
  padding-bottom: 24px;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 24px;
  flex-shrink: 0;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #10b981;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  z-index: 2;
  margin-top: 4px;
}

.timeline-item:first-child .timeline-dot {
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(237, 32, 45, 0.25);
}

.timeline-line {
  position: absolute;
  top: 20px;
  bottom: -10px;
  width: 2px;
  background: #cbd5e1;
  z-index: 1;
}

.timeline-content {
  flex: 1;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

.timeline-content:hover {
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
  transform: translateX(4px);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary);
}

.timeline-location-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: #fef2f2;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid #fecaca;
}

.timeline-remarks {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.5;
}

.pod-container img {
  max-width: 100%;
  max-height: 450px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.pod-container img:hover {
  transform: scale(1.02);
}
