:root {
  --primary-purple: #4d148c;
  --primary-orange: #ff6600;
  --dark-gray: #333333;
  --medium-gray: #f2f2f2;
  --light-gray: #fafafa;
  --white: #ffffff;
  --text-main: #333333;
  --text-muted: #666666;
  --border-color: #e6e6e6;
  --hover-purple: #3a0f6a;
  --hover-orange: #e55c00;
  --font-family: "Roboto", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo-img {
  height: 45px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-weight: 500;
  font-size: 15px;
  color: var(--text-main);
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 5px;
}

.nav-link:hover {
  color: var(--primary-purple);
}

.nav-link:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-purple);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.login-btn {
  font-weight: 500;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.login-btn i {
  font-size: 20px;
  color: var(--primary-purple);
}

.signup-btn {
  background-color: var(--primary-purple);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 15px;
  transition: background-color 0.2s ease;
  border: none;
  cursor: pointer;
}

.signup-btn:hover {
  background-color: var(--hover-purple);
}

/* Hero Section */
.hero {
  position: relative;
  height: 500px;
  background-image: url('assets/hero_image.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 800px;
  padding: 0 20px;
}

/* Tracking Widget */
.tracking-widget {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.widget-tabs {
  display: flex;
  background-color: var(--light-gray);
  border-bottom: 1px solid var(--border-color);
}

.tab {
  flex: 1;
  text-align: center;
  padding: 15px 0;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border-bottom: 3px solid transparent;
}

.tab i {
  font-size: 24px;
}

.tab:hover {
  color: var(--primary-purple);
}

.tab.active {
  color: var(--primary-purple);
  background-color: var(--white);
  border-bottom-color: var(--primary-purple);
}

.widget-body {
  padding: 30px;
}

.track-form-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.track-form-container h2 {
  font-size: 28px;
  font-weight: 300;
  color: var(--dark-gray);
  margin-bottom: 5px;
}

.input-group {
  display: flex;
  height: 60px;
}

.input-group input {
  flex: 1;
  padding: 0 20px;
  font-size: 16px;
  border: 1px solid var(--border-color);
  border-right: none;
  border-radius: 4px 0 0 4px;
  outline: none;
  transition: border-color 0.2s ease;
}

.input-group input:focus {
  border-color: var(--primary-purple);
}

.input-group button {
  background-color: var(--primary-orange);
  color: var(--white);
  border: none;
  padding: 0 40px;
  font-size: 18px;
  font-weight: 500;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.input-group button:hover {
  background-color: var(--hover-orange);
}

.help-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--primary-purple);
  font-weight: 500;
}

.help-links a:hover {
  text-decoration: underline;
}

/* Services Grid */
.services-section {
  padding: 60px 40px;
  background-color: var(--white);
  max-width: 1200px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  text-align: center;
  padding: 30px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  border-color: var(--primary-purple);
}

.service-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--medium-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
  color: var(--primary-purple);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-icon {
  background-color: var(--primary-purple);
  color: var(--white);
}

.service-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--dark-gray);
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Info Banner */
.info-banner {
  background-color: var(--medium-gray);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.info-banner-content h2 {
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 20px;
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--primary-purple);
  border: 2px solid var(--primary-purple);
  padding: 10px 30px;
  border-radius: 25px;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: var(--primary-purple);
  color: var(--white);
}

/* Footer */
footer {
  background-color: var(--dark-gray);
  color: var(--white);
  padding: 60px 40px 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-column h4 {
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: 500;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  font-size: 14px;
  color: #cccccc;
  transition: color 0.2s ease;
}

.footer-column ul li a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid #4d4d4d;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #cccccc;
}

.footer-links {
  display: flex;
  gap: 15px;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Hero Headline & Notification Box */
.hero-headline {
  color: var(--white);
  font-size: 42px;
  font-weight: 300;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.notification-box {
  background-color: var(--white);
  border: 1px solid #0076a8; /* FedEx blue alert border */
  border-left: 4px solid #0076a8;
  padding: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 15px;
  border-radius: 2px;
}

.notification-box i {
  color: #0076a8;
  font-size: 20px;
  margin-top: 2px;
}

.notification-box p {
  font-size: 13px;
  color: var(--dark-gray);
  line-height: 1.4;
}

.notification-box p a {
  text-decoration: underline;
  color: #0076a8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  header {
    padding: 15px 20px;
    background-color: var(--primary-purple) !important;
    border-bottom: none;
  }
  
  .logo-img {
    height: 35px; /* Smaller on mobile */
    filter: brightness(0) invert(1); /* Turns the colored logo solid white to contrast with purple background */
  }
  
  .main-nav, .header-actions {
    display: none;
  }
  
  .mobile-icons {
    display: flex !important;
    align-items: center;
    gap: 15px;
  }

  .mobile-icons a {
    margin: 0 !important;
  }
  
  .mobile-menu-btn {
    display: block !important;
    font-size: 24px;
    color: var(--white) !important;
    cursor: pointer;
  }
  
  .hero {
    height: 350px; /* Fixed height for hero image */
    align-items: flex-start;
    padding-top: 40px;
  }

  .hero-content {
    padding: 0;
    width: 100%;
  }

  .hero-headline {
    font-size: 32px;
    padding: 0 20px;
    margin-top: 0;
    margin-bottom: 20px;
  }
  
  /* Widget overlaps the hero image */
  .tracking-widget {
    border-radius: 0;
    box-shadow: none;
    margin: 0; /* Edge to edge */
    background: transparent;
  }
  
  .widget-tabs {
    flex-wrap: nowrap;
    background-color: var(--white);
    border-bottom: none;
    margin: 0 20px; /* Tabs have a gap on sides */
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1); /* Shadow above tabs */
  }
  
  .tab {
    flex: 1;
    padding: 10px 0;
    background-color: var(--white);
    border: none;
    color: var(--dark-gray);
    font-size: 11px;
    font-weight: 700;
    border-bottom: 2px solid var(--border-color);
  }
  
  .tab i {
    font-size: 24px;
    color: var(--text-muted);
    margin-bottom: 5px;
    display: block;
  }
  
  .tab.active {
    background-color: var(--primary-purple);
    color: var(--white);
    border-bottom: 2px solid var(--primary-purple);
  }
  
  .tab.active i {
    color: var(--white);
  }

  .tab span {
    font-size: 10px;
    line-height: 1.2;
    padding: 0 5px;
  }

  .widget-body {
    padding: 20px;
    background-color: var(--white);
    margin: 0 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  
  .track-form-container h2 {
    display: none;
  }

  .input-group {
    flex-direction: row;
    height: 50px;
    gap: 0;
    display: flex;
  }
  
  .input-group input {
    border-radius: 0;
    border-color: #cccccc;
    font-size: 14px;
    font-style: italic;
    flex: 1;
    min-width: 0; /* Prevents overflow */
  }

  .input-group button {
    border-radius: 0;
    width: auto;
    padding: 0 15px;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap; /* Prevents text from wrapping */
  }
  
  .notification-box {
    margin: 15px 20px;
  }

  /* Ask Button Fix */
  .ask-btn span {
    display: none;
  }

  .ask-btn {
    padding: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    right: 15px;
    bottom: 15px;
    justify-content: center;
  }
  
  .ask-btn i {
    font-size: 24px;
    margin: 0;
  }

  /* General horizontal overflow safety */
  section, footer, header {
    max-width: 100%;
    overflow-x: hidden;
  }

  .tracking-top-bar .container {
    padding: 20px !important;
  }
}

/* Utility to show mobile menu button only on small screens */
.mobile-menu-btn {
  display: none;
}

/* ========================================================
   NEW PAGE STYLES (Tracking, Shipping, Locations, Support, Login)
   ======================================================== */

/* Page Header */
.page-header {
  background-color: var(--primary-purple);
  color: var(--white);
  padding: 40px 20px;
  text-align: center;
}

.page-header h1 {
  font-size: 36px;
  font-weight: 300;
}

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

/* Tracking Timeline */
.tracking-status {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 40px;
  margin-top: 20px;
}

.status-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.status-header h2 {
  color: var(--primary-orange);
  font-size: 28px;
  margin-bottom: 10px;
}

.timeline {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  height: 100%;
  width: 4px;
  background: var(--medium-gray);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 40px;
}

.timeline-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  background: var(--white);
  border: 4px solid var(--medium-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--medium-gray);
  z-index: 1;
}

.timeline-item.completed .timeline-icon {
  border-color: var(--primary-purple);
  color: var(--primary-purple);
}

.timeline-item.active .timeline-icon {
  border-color: var(--primary-orange);
  background: var(--primary-orange);
  color: var(--white);
}

.timeline-item.active ~ .timeline::before {
  background: var(--primary-purple);
  height: 50%; /* Just for visualization */
}

.timeline-content h3 {
  font-size: 18px;
  color: var(--dark-gray);
  margin-bottom: 5px;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Forms (Shipping, Login) */
.form-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 40px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--dark-gray);
}

.form-group input, .form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.2s;
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--primary-purple);
  outline: none;
}

.btn-primary {
  background-color: var(--primary-orange);
  color: var(--white);
  padding: 15px 30px;
  border: none;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: var(--hover-orange);
}

/* Two column layout */
.row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.col {
  flex: 1;
  min-width: 250px;
}

/* Locations Page */
.locations-layout {
  display: flex;
  gap: 30px;
  height: 600px;
}

.locations-list {
  flex: 1;
  overflow-y: auto;
  border-right: 1px solid var(--border-color);
  padding-right: 20px;
}

.location-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.location-item h3 {
  color: var(--primary-purple);
  margin-bottom: 5px;
}

.locations-map {
  flex: 2;
  background: var(--medium-gray);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--text-muted);
}

/* Support FAQ */
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-bottom: 10px;
}

.faq-question {
  padding: 20px;
  font-weight: 500;
  color: var(--dark-gray);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 20px 20px;
  color: var(--text-muted);
  display: none;
}

@media (max-width: 768px) {
  .locations-layout {
    flex-direction: column;
    height: auto;
  }
  .locations-map {
    height: 300px;
  }
}

/* ========================================================
   NEW FOOTER STYLES (FedEx Clone)
   ======================================================== */

.new-footer {
  background-color: #fafafa;
  color: #333333;
  padding: 0;
  font-family: var(--font-family);
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px 20px;
}

.footer-columns {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--primary-purple);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 15px;
}

.footer-col ul li a {
  color: #333333;
  font-size: 14px;
  text-decoration: none;
}

.footer-col ul li a:hover {
  text-decoration: underline;
  color: var(--primary-purple);
}

.two-col-links {
  display: flex;
  gap: 60px;
}

.language-col {
  min-width: 250px;
}

.country-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 14px;
  color: #333333;
}

.country-selector i {
  font-size: 20px;
}

.language-dropdown select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  background-color: white;
  font-size: 14px;
  color: #333333;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 15px top 50%;
  background-size: 12px auto;
  cursor: pointer;
}

.footer-divider {
  border: 0;
  border-top: 1px solid #cccccc;
  margin: 30px 0;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-social h4 {
  color: var(--primary-purple);
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #333333;
  color: #333333;
  font-size: 18px;
  transition: all 0.2s ease;
}

.social-icons a:hover {
  background-color: var(--primary-purple);
  border-color: var(--primary-purple);
  color: white;
}

.footer-bottom-bar {
  background-color: var(--primary-purple);
  color: white;
  padding: 20px 40px;
}

.footer-bottom-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.legal-links {
  display: flex;
  gap: 10px;
}

.legal-links a {
  color: white;
  text-decoration: none;
  margin: 0 5px;
}

.legal-links a:hover {
  text-decoration: underline;
}

/* Floating Ask Button */
.ask-btn {
  position: fixed;
  bottom: 0;
  right: 40px;
  background-color: var(--primary-purple);
  color: white;
  border: none;
  padding: 15px 25px;
  border-radius: 20px 20px 0 0;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: background-color 0.2s ease;
}

.ask-btn i {
  font-size: 20px;
}

.ask-btn:hover {
  background-color: #3a0f6a;
}

@media (max-width: 768px) {
  .footer-columns {
    flex-direction: column;
    gap: 30px;
  }
  .two-col-links {
    flex-direction: column;
    gap: 15px;
  }
  .footer-social {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-bottom-content {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  .ask-btn {
    right: 20px;
  }
}

/* ========================================================
   FEDEX TRACKING UI CLONE STYLES
   ======================================================== */
.tracking-page-wrapper {
  background-color: #f9f9f9;
  min-height: 100vh;
}

.tracking-top-bar {
  background-color: #fff;
}

/* Delivered Hero Section */
.delivered-hero {
  display: flex;
  background-color: #fff;
  padding: 0;
  border-top: 5px solid #28a745;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 40px;
}

.delivered-info {
  flex: 1;
  padding: 30px;
  border-right: 1px solid #eee;
}

.status-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.status-title h2 {
  font-size: 24px;
  font-weight: 300;
  color: #333;
  margin: 0;
}

.status-title i {
  font-size: 24px;
  color: #28a745;
}

.delivery-time {
  font-size: 18px;
  color: #333;
  margin-bottom: 20px;
}

.signature {
  font-size: 14px;
  color: #666;
}

.delivered-photo-container {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-right: 1px solid #eee;
}

.delivered-photo {
  width: 100%;
  max-width: 300px;
  height: auto;
  border: 1px solid #ccc;
}

.delivered-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.delivered-links a {
  color: #0076a8;
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.delivered-links a:hover {
  text-decoration: underline;
}

.delivered-addresses {
  flex: 1;
  padding: 30px;
}

.address-block {
  margin-bottom: 20px;
}

.address-block strong {
  display: block;
  font-size: 12px;
  color: #333;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.address-block p {
  font-size: 14px;
  color: #333;
  margin: 0;
  text-transform: uppercase;
}

/* Sections */
.fedex-section {
  background-color: #fff;
  padding: 30px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 30px;
}

.section-title {
  font-size: 24px;
  font-weight: 300;
  color: #333;
  margin: 0;
}

.sort-by {
  font-size: 14px;
  color: #0076a8;
  cursor: pointer;
}

/* Travel History */
.travel-history-list {
  display: flex;
  flex-direction: column;
}

.history-day-group {
  display: flex;
  margin-bottom: 0;
}

.history-date {
  width: 25%;
  padding: 20px;
  font-size: 14px;
  color: #333;
  background-color: #f9f9f9;
  border-bottom: 1px solid #fff;
}

.history-events {
  flex: 1;
}

.history-event {
  display: flex;
  padding: 20px 20px 20px 0;
  background-color: #f9f9f9;
  border-bottom: 1px solid #fff;
  position: relative;
}

.event-time {
  width: 100px;
  font-size: 12px;
  color: #333;
  text-align: right;
  padding-right: 15px;
}

.event-line-container {
  width: 20px;
  position: relative;
  display: flex;
  justify-content: center;
}

.event-dot {
  width: 8px;
  height: 8px;
  background-color: #333;
  border-radius: 50%;
  position: absolute;
  top: 4px;
  z-index: 2;
}

.event-line {
  position: absolute;
  top: 10px;
  bottom: -30px;
  width: 2px;
  background-color: #333;
  z-index: 1;
}

.history-event:last-child .event-line {
  display: none;
}

.event-details {
  flex: 1;
  padding-left: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #333;
}

.event-status {
  font-weight: bold;
}

.event-location {
  text-transform: uppercase;
  color: #666;
}

/* Shipment Facts */
.fact-category {
  margin-bottom: 30px;
}

.fact-category-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: #333;
  font-weight: 300;
  margin-bottom: 15px;
}

.fact-icon {
  width: 24px;
  height: 24px;
}

.fact-table {
  width: 100%;
  border-collapse: collapse;
}

.fact-table th {
  text-align: left;
  padding: 12px 15px;
  background-color: #f9f9f9;
  border-bottom: 1px solid #fff;
  font-size: 11px;
  font-weight: bold;
  color: #333;
  width: 25%;
  text-transform: uppercase;
}

.fact-table td {
  padding: 12px 15px;
  background-color: #f9f9f9;
  border-bottom: 1px solid #fff;
  font-size: 13px;
  color: #333;
}

.info-icon {
  color: #0076a8;
  margin-left: 5px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .delivered-hero {
    flex-direction: column;
  }
  .history-day-group {
    flex-direction: column;
  }
  .history-date {
    width: 100%;
    padding-bottom: 5px;
  }
  .event-time {
    text-align: left;
    width: 80px;
  }
  .fact-table th, .fact-table td {
    display: block;
    width: 100%;
  }
  .fact-table th {
    padding-bottom: 0;
  }
}

/* ========================================================
   ADMIN DASHBOARD PREMIUM STYLES
   ======================================================== */
.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.admin-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid #f0f0f0;
  margin-bottom: 30px;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar {
  display: none;
}

.admin-tab-btn {
  padding: 12px 24px;
  border: none;
  background: #f8f9fa;
  color: #666;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.admin-tab-btn:hover {
  background: #f0f0f0;
  color: var(--primary-purple);
}

.admin-tab-btn.active {
  background: var(--primary-purple);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(77, 20, 140, 0.2);
}

.admin-input-group {
  margin-bottom: 20px;
}

.admin-input-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  font-size: 14px;
}

.admin-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.3s;
}

.admin-input:focus {
  outline: none;
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 3px rgba(77, 20, 140, 0.1);
}

.admin-btn-primary {
  background: var(--primary-purple);
  color: #fff;
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.admin-btn-primary:hover {
  background: var(--hover-purple);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(77, 20, 140, 0.3);
}

.admin-table-container {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #eee;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  background: #fcfcfc;
  padding: 15px;
  text-align: left;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  border-bottom: 2px solid #f0f0f0;
}

.admin-table td {
  padding: 15px;
  border-bottom: 1px solid #f8f8f8;
  font-size: 14px;
  color: #333;
}

.admin-table tr:hover td {
  background-color: #fafafa;
}

.status-pill {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

.status-pill.delivered { background: #e6fcf5; color: #0ca678; }
.status-pill.transit { background: #fff4e6; color: #f76707; }
.status-pill.created { background: #f3f0ff; color: #7950f2; }

@media (max-width: 768px) {
  .admin-container {
    padding: 20px 15px;
  }
  
  .admin-card {
    padding: 20px;
  }
  
  .admin-table td, .admin-table th {
    padding: 10px;
    font-size: 12px;
  }
  
  .admin-btn-primary {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================================
   ADVANCED RESPONSIVE TRACKING STYLES
   ======================================================== */
.tracking-page-wrapper {
  background-color: #f5f5f5;
  min-height: 100vh;
}

.tracking-top-bar {
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.delivered-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  background: white;
  padding: 40px;
  border-radius: 4px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.delivered-addresses {
  grid-column: span 2;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #eee;
  padding-top: 20px;
  margin-top: 20px;
}

.address-block strong {
  display: block;
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.fedex-section {
  background: white;
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 25px;
}

.section-title {
  font-size: 24px;
  color: #333;
  margin: 0;
}

.fact-table {
  width: 100%;
  border-collapse: collapse;
}

.fact-table th {
  text-align: left;
  width: 300px;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
  color: #666;
  font-weight: 600;
}

.fact-table td {
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  color: #333;
}

.history-day-group {
  margin-bottom: 30px;
}

.history-date {
  font-weight: bold;
  font-size: 18px;
  color: #333;
  margin-bottom: 20px;
}

.history-event {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.event-time {
  width: 80px;
  font-size: 14px;
  color: #666;
  flex-shrink: 0;
}

.event-line-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20px;
}

.event-dot {
  width: 12px;
  height: 12px;
  background: var(--primary-purple);
  border-radius: 50%;
  flex-shrink: 0;
  z-index: 2;
}

.event-line {
  flex-grow: 1;
  width: 2px;
  background: #ddd;
  margin-top: 4px;
}

.history-event:last-child .event-line {
  display: none;
}

.event-details {
  display: flex;
  flex-direction: column;
}

.event-status {
  font-weight: bold;
  color: #333;
  margin-bottom: 2px;
}

.event-location {
  font-size: 14px;
  color: #666;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .delivered-hero {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  
  .delivered-photo-container {
    text-align: center;
  }
  
  .delivered-photo {
    max-width: 100%;
    height: auto;
  }
  
  .delivered-addresses {
    grid-column: span 1;
    flex-direction: column;
    gap: 20px;
  }
  
  .fact-table th {
    display: block;
    width: 100%;
    padding-bottom: 5px;
    border-bottom: none;
  }
  
  .fact-table td {
    display: block;
    width: 100%;
    padding-top: 0;
    padding-bottom: 15px;
    font-weight: bold;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .history-event {
    gap: 15px;
  }
  
  .event-time {
    width: 60px;
    font-size: 12px;
  }
}

/* Beeping Red Dot Animation */
.beeping-dot-red {
  width: 12px;
  height: 12px;
  background-color: #e03131;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.beeping-dot-red::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: #e03131;
  border-radius: 50%;
  z-index: -1;
  animation: beep 1.5s infinite;
}

@keyframes beep {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}
