/* Track My Shipment (TMS) - Enterprise Teal Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;
  --teal-950: #042f2e;

  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-sm: 0 1px 2px 0 rgba(13, 148, 136, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(13, 148, 136, 0.1), 0 2px 4px -2px rgba(13, 148, 136, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(13, 148, 136, 0.12), 0 4px 6px -4px rgba(13, 148, 136, 0.08);
  --shadow-xl: 0 20px 25px -5px rgba(13, 148, 136, 0.15), 0 8px 10px -6px rgba(13, 148, 136, 0.1);
  --shadow-glow: 0 0 25px rgba(20, 184, 166, 0.35);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

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

body {
  font-family: var(--font-main);
  background-color: #071517;
  color: #e6f6f4;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #042f2e;
}
::-webkit-scrollbar-thumb {
  background: #0d9488;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #14b8a6;
}

/* Containers & Grid */
.tms-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.tms-section {
  padding: 90px 0;
  position: relative;
}

/* Navigation */
.tms-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(4, 47, 46, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(45, 212, 191, 0.15);
  transition: all 0.3s ease;
}

.tms-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.tms-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.tms-logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--teal-500) 0%, var(--teal-700) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 22px;
  box-shadow: 0 0 15px rgba(20, 184, 166, 0.4);
}

.tms-logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.tms-logo-sub {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--teal-400);
  text-transform: uppercase;
}

.tms-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.tms-nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  transition: all 0.2s ease;
  position: relative;
}

.tms-nav-links a:hover, .tms-nav-links a.active {
  color: var(--teal-300);
}

.tms-nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--teal-400);
  border-radius: 2px;
}

.tms-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Buttons */
.btn-teal {
  background: linear-gradient(135deg, var(--teal-500) 0%, var(--teal-700) 100%);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(94, 234, 212, 0.3);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(20, 184, 166, 0.5);
  background: linear-gradient(135deg, var(--teal-400) 0%, var(--teal-600) 100%);
  color: #ffffff;
}

.btn-outline-teal {
  background: rgba(13, 148, 136, 0.1);
  color: var(--teal-300);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(45, 212, 191, 0.3);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-outline-teal:hover {
  background: rgba(45, 212, 191, 0.18);
  border-color: var(--teal-400);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

/* Badges */
.badge-teal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(20, 184, 166, 0.14);
  color: var(--teal-300);
  border: 1px solid rgba(45, 212, 191, 0.25);
}

.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Hero Section */
.hero-wrapper {
  padding-top: 150px;
  padding-bottom: 90px;
  background: radial-gradient(circle at 50% 15%, rgba(13, 148, 136, 0.18) 0%, rgba(7, 21, 23, 0) 70%), #071517;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-title {
  font-size: 54px;
  font-weight: 800;
  line-height: 1.12;
  margin: 18px 0;
  letter-spacing: -0.03em;
}

.hero-gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--teal-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: #94a3b8;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Telemetry Card / Radar Box */
.telemetry-card {
  background: linear-gradient(160deg, rgba(15, 35, 37, 0.8) 0%, rgba(6, 26, 27, 0.95) 100%);
  border: 1px solid rgba(45, 212, 191, 0.25);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), var(--shadow-glow);
  position: relative;
  backdrop-filter: blur(12px);
}

.radar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(45, 212, 191, 0.15);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.radar-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.telemetry-screen {
  background: #031416;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(45, 212, 191, 0.2);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.telemetry-map-canvas {
  height: 200px;
  background: radial-gradient(circle at 50% 50%, rgba(13, 148, 136, 0.12) 0%, transparent 80%), #04191c;
  border-radius: var(--radius-md);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(45, 212, 191, 0.25);
}

/* Pulsing animated truck pin */
.truck-pin {
  position: absolute;
  top: 48%;
  left: 62%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.truck-dot {
  width: 14px;
  height: 14px;
  background: var(--teal-400);
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 12px var(--teal-400);
}

.truck-label {
  background: rgba(4, 47, 46, 0.9);
  border: 1px solid var(--teal-500);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 4px;
  white-space: nowrap;
}

/* Stats Counter Row */
.stats-strip {
  background: rgba(13, 148, 136, 0.08);
  border-top: 1px solid rgba(45, 212, 191, 0.15);
  border-bottom: 1px solid rgba(45, 212, 191, 0.15);
  padding: 36px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item h3 {
  font-size: 40px;
  font-weight: 800;
  color: var(--teal-300);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-item p {
  font-size: 13.5px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Pillars Section */
.pillar-card {
  background: rgba(10, 31, 33, 0.7);
  border: 1px solid rgba(45, 212, 191, 0.16);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--teal-400);
  box-shadow: 0 15px 35px rgba(13, 148, 136, 0.2);
  background: rgba(13, 40, 42, 0.85);
}

.pillar-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.2) 0%, rgba(13, 148, 136, 0.05) 100%);
  border: 1px solid rgba(45, 212, 191, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--teal-300);
  margin-bottom: 24px;
}

.pillar-number {
  position: absolute;
  top: 28px;
  right: 28px;
  font-size: 12px;
  font-weight: 800;
  color: var(--teal-400);
  background: rgba(20, 184, 166, 0.12);
  padding: 4px 10px;
  border-radius: 6px;
}

.pillar-list {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pillar-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #cbd5e1;
}

.pillar-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-400);
  margin-top: 8px;
  flex-shrink: 0;
}

/* Live Shipment Tracker Component */
.tracker-box {
  background: linear-gradient(180deg, #092023 0%, #051719 100%);
  border: 1px solid rgba(45, 212, 191, 0.25);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.tracker-search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.tracker-input {
  flex: 1;
  background: #031416;
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: #ffffff;
  font-size: 16px;
  font-family: var(--font-main);
  outline: none;
  transition: all 0.2s ease;
}

.tracker-input:focus {
  border-color: var(--teal-400);
  box-shadow: 0 0 15px rgba(20, 184, 166, 0.3);
}

.demo-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.demo-pill {
  background: rgba(13, 148, 136, 0.15);
  border: 1px solid rgba(45, 212, 191, 0.2);
  color: var(--teal-300);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.demo-pill:hover, .demo-pill.active {
  background: var(--teal-600);
  color: #ffffff;
  border-color: var(--teal-400);
}

/* Shipment Result Display */
.shipment-details-card {
  background: #04191c;
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-top: 20px;
}

.route-progress-bar {
  height: 8px;
  background: #092629;
  border-radius: 4px;
  overflow: hidden;
  margin: 18px 0;
  position: relative;
}

.route-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal-600) 0%, var(--teal-400) 100%);
  border-radius: 4px;
  transition: width 0.8s ease;
}

/* ROI Calculator Component */
.roi-card {
  background: linear-gradient(135deg, rgba(8, 28, 30, 0.9) 0%, rgba(4, 20, 22, 0.95) 100%);
  border: 1px solid rgba(45, 212, 191, 0.25);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.slider-group {
  margin-bottom: 28px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.slider-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--teal-300);
}

input[type=range] {
  width: 100%;
  height: 8px;
  background: #092629;
  border-radius: 4px;
  outline: none;
  accent-color: var(--teal-400);
  cursor: pointer;
}

.roi-savings-banner {
  background: radial-gradient(circle at 50% 50%, rgba(20, 184, 166, 0.2) 0%, rgba(6, 26, 27, 0.8) 100%);
  border: 1px solid var(--teal-500);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  margin-top: 30px;
}

.roi-savings-number {
  font-size: 44px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(45, 212, 191, 0.5);
  line-height: 1.1;
  margin: 6px 0;
}

/* Contact & Inquiries Form */
.contact-box {
  background: linear-gradient(135deg, #092124 0%, #051618 100%);
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: var(--radius-xl);
  padding: 40px;
}

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

.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: #031416;
  border: 1px solid rgba(45, 212, 191, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 14.5px;
  outline: none;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--teal-400);
  box-shadow: 0 0 12px rgba(20, 184, 166, 0.3);
}

/* Footer */
.tms-footer {
  background: #031214;
  border-top: 1px solid rgba(45, 212, 191, 0.15);
  padding: 70px 0 30px 0;
  color: #94a3b8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--teal-400);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--teal-300);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

/* Admin Dashboard Specific */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #041719;
}

.admin-sidebar {
  width: 260px;
  background: #020f11;
  border-right: 1px solid rgba(45, 212, 191, 0.15);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
}

.admin-nav {
  list-style: none;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.admin-nav-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.admin-nav-item a:hover, .admin-nav-item a.active {
  background: rgba(13, 148, 136, 0.18);
  color: var(--teal-300);
}

.admin-main {
  flex: 1;
  padding: 30px 40px;
  overflow-y: auto;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(45, 212, 191, 0.15);
  margin-bottom: 30px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: #031416;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(45, 212, 191, 0.15);
}

.admin-table th {
  background: #062225;
  padding: 14px 18px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-300);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table td {
  padding: 14px 18px;
  border-top: 1px solid rgba(45, 212, 191, 0.08);
  font-size: 14px;
  color: #cbd5e1;
}

.admin-table tr:hover {
  background: rgba(13, 148, 136, 0.05);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-title {
    font-size: 42px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .tms-nav-links {
    display: none;
  }
  .hero-title {
    font-size: 34px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
  }
  .admin-main {
    padding: 20px;
  }
}
