/* Unique Change Password Card Styles */
.password-card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 32px 28px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 32px auto;
  box-sizing: border-box;
  border: 1.5px solid var(--lc-border);
  min-height: 0;
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.password-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}


.password-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lc-blue), #0050cc);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.5em;
  box-shadow: 0 4px 16px rgba(0,56,168,0.10);
}
.password-header h2 {
  font-size: 1.6em;
  font-weight: 800;
  color: #0050cc;
  margin-bottom: 2px;
  letter-spacing: 0.5px;
}


.password-desc {
  font-size: 1em;
  color: #555;
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.2px;
}


.password-fields {
  margin-bottom: 18px;
  gap: 12px;
}


.password-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}


/* Modal Styles for Add Admin */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 56, 168, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
}
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,56,168,0.13);
  padding: 40px 44px 32px 44px;
  min-width: 420px;
  max-width: 540px;
  width: 100%;
  position: relative;
  animation: modalIn 0.2s ease;
  box-sizing: border-box;
}
@keyframes modalIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 1.5px solid var(--lc-border);
  padding-bottom: 12px;
}
.modal-close {
  font-size: 2em;
  color: var(--lc-gray);
  cursor: pointer;
  margin-left: 18px;
  transition: color 0.2s, transform 0.2s;
  border: none;
  background: none;
  outline: none;
}
.modal-close:hover {
  color: var(--lc-red);
  transform: scale(1.15);
}
.modal-body {
  padding: 0;
  margin-bottom: 18px;
}
.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
  border-top: 1.5px solid var(--lc-border);
  padding-top: 12px;
}
/* Enhanced Modal Overlay for Shipments */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 56, 168, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
  transition: background 0.2s;
}
/* Admin Management Custom Styles */
.admin-section .admin-card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 32px 28px;
  margin-bottom: 32px;
}
.admin-section .admin-add-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 18px;
}
.admin-section .admin-list-card {
  margin-top: 18px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.admin-table th, .admin-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--lc-border);
  font-size: 1em;
}
.admin-table th {
  background: #f7f9fc;
  font-weight: 700;
  color: #333;
}
.admin-table tr:last-child td {
  border-bottom: none;
}
.admin-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lc-blue), #0050cc);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1em;
  box-shadow: var(--shadow-sm);
}
.admin-table .btn-sm {
  padding: 6px 10px;
  font-size: 0.95em;
  border-radius: var(--radius-sm);
  margin-right: 4px;
}
/* Profile & Settings Custom Styles */
.profile-section .profile-avatar {
  text-align: center;
  margin-bottom: 24px;
}
.profile-section .avatar-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lc-blue), #0050cc);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 900;
  color: white;
  border: 4px solid var(--lc-yellow);
  box-shadow: var(--shadow-md);
}
.profile-section .avatar-role {
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--lc-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.profile-section .form-group label {
  font-weight: 600;
  color: var(--lc-blue);
}
.profile-section .form-control {
  border-radius: var(--radius-sm);
  border: 1px solid var(--lc-border);
  box-shadow: none;
  margin-bottom: 10px;
}
.profile-section button {
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.password-section {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 32px 28px;
  box-sizing: border-box;
}
.password-section h4 {
  text-align: center;
  color: var(--lc-blue);
  margin-bottom: 24px;
}
.change-password-form .form-group label {
  font-weight: 600;
  color: var(--lc-blue);
}
.change-password-form .form-control {
  border-radius: var(--radius-sm);
  border: 1px solid var(--lc-border);
  box-shadow: none;
  margin-bottom: 12px;
}
.change-password-form .btn-block {
  width: 100%;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-top: 18px;
}
.password-hints {
  font-size: 0.97em;
  color: #888;
  margin-bottom: 10px;
  text-align: left;
}
.password-hints i {
  color: var(--lc-blue);
  margin-right: 4px;
}
/* ============================================================
   CargoTrack - Main Stylesheet
   Legacy United LLC - LC Brand Colors (PH Flag Theme)
   ============================================================ */

:root {
  --lc-blue:       #0038A8;  /* Philippine flag blue */
  --lc-red:        #CE1126;  /* Philippine flag red */
  --lc-yellow:     #FCD116;  /* Philippine flag yellow */
  --lc-green:      #28a745;
  --lc-white:      #ffffff;
  --lc-light:      #f0f4ff;
  --lc-dark:       #1a1a2e;
  --lc-gray:       #6c757d;
  --lc-border:     #dee2e6;
  --sidebar-width: 260px;
  --header-height: 64px;
  --shadow-sm:     0 2px 8px rgba(0,56,168,0.10);
  --shadow-md:     0 4px 20px rgba(0,56,168,0.15);
  --shadow-lg:     0 8px 40px rgba(0,56,168,0.20);
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --transition:    all 0.25s ease;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--lc-light);
  color: var(--lc-dark);
  line-height: 1.6;
  min-height: 100vh;
}

.landing-page {
  min-height: 100vh;
  background: white;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.landing-shell {
  width: 100%;
  background: white;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.landing-left {
  position: relative;
  padding: 40px 44px;
  color: white;
  background: linear-gradient(135deg, #CE1126 0%, #e43f3f 35%, #0038A8 100%);
}

.landing-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/legacy-llc-banner.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.5;
}

.landing-left::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(206,17,38,0.9), rgba(0,56,168,0.8));
  mix-blend-mode: multiply;
}

.landing-left-inner {
  position: relative;
  z-index: 1;
  max-width: 540px;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-title {
  font-size: 2.15rem;
  font-weight: 900;
  margin-top: 18px;
  margin-bottom: 8px;
}

.landing-subtitle {
  font-size: 0.95rem;
  max-width: 440px;
  opacity: 0.95;
}

.landing-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  margin-bottom: 18px;
}

.landing-tab {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: default;
}

.landing-tab.active {
  background: var(--lc-yellow);
  border-color: var(--lc-yellow);
  color: #1a1a2e;
}

.landing-track-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 520px;
}

.landing-track-form input[type="text"] {
  flex: 1;
  min-width: 0;
  border-radius: 999px;
  border: none;
  padding: 12px 16px;
  font-size: 0.95rem;
  outline: none;
}

.landing-track-form .btn {
  border-radius: 999px;
}

.landing-note {
  margin-top: 10px;
  font-size: 0.8rem;
  opacity: 0.92;
}

.landing-meta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  opacity: 0.95;
}

.landing-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.landing-right {
  background: linear-gradient(180deg, #f8fbff, #edf2ff);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 28px;
}

.landing-right .auth-card {
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-md);
  margin: 0;
}

a { color: var(--lc-blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--lc-red); }

/* ============================================================
   AUTH PAGES (Login / Register)
   ============================================================ */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--lc-blue) 0%, #002880 50%, var(--lc-red) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.auth-page::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: var(--lc-yellow);
  border-radius: 50%;
  opacity: 0.06;
  top: -200px; right: -200px;
}
.auth-page::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: var(--lc-white);
  border-radius: 50%;
  opacity: 0.04;
  bottom: -150px; left: -100px;
}

.auth-card {
  background: rgba(255,255,255,0.97);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.2);
  position: relative;
  z-index: 2;
  animation: fadeSlideUp 0.5s ease forwards;
}

.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-logo img {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid var(--lc-yellow);
  box-shadow: 0 4px 16px rgba(0,56,168,0.2);
  object-fit: cover;
}
.auth-logo h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--lc-blue);
  margin-top: 10px;
  letter-spacing: -0.5px;
}
.auth-logo p {
  font-size: 0.85rem;
  color: var(--lc-gray);
  margin-top: 2px;
}

.auth-tabs {
  display: flex;
  background: var(--lc-light);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: calc(var(--radius-sm) - 2px);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--lc-gray);
  border: none;
  background: transparent;
}
.auth-tab.active {
  background: var(--lc-blue);
  color: white;
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   FORM COMPONENTS
   ============================================================ */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--lc-border);
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  color: var(--lc-dark);
  background: #fff;
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--lc-blue);
  box-shadow: 0 0 0 3px rgba(0,56,168,0.1);
}
.form-control.is-invalid { border-color: var(--lc-red); }

select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 90px; }

.input-icon { position: relative; }
.input-icon .form-control { padding-left: 40px; }
.input-icon .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--lc-gray);
  font-size: 1rem;
}
.input-icon.textarea-icon .icon { top: 14px; transform: none; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }
@media(max-width: 640px) {
  .form-row, .form-row.three { grid-template-columns: 1fr; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 22px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-lg { padding: 13px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, var(--lc-blue), #0050cc);
  color: white;
  box-shadow: 0 3px 12px rgba(0,56,168,0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(0,56,168,0.4);
  color: white;
}
.btn-danger { background: var(--lc-red); color: white; }
.btn-danger:hover { background: #a50e1e; color: white; }
.btn-success { background: var(--lc-green); color: white; }
.btn-success:hover { background: #1e7e34; color: white; }
.btn-warning { background: var(--lc-yellow); color: #333; }
.btn-warning:hover { background: #e5bb00; color: #333; }
.btn-secondary { background: #6c757d; color: white; }
.btn-secondary:hover { background: #545b62; color: white; }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--lc-blue);
  color: var(--lc-blue);
}
.btn-outline:hover { background: var(--lc-blue); color: white; }
.btn-light { background: var(--lc-light); color: var(--lc-dark); border: 1px solid var(--lc-border); }
.btn-light:hover { background: #dde4f0; color: var(--lc-dark); }
.btn-disabled {
  background: #9ca3af;
  color: white;
  cursor: not-allowed;
  opacity: 0.7;
}
.btn-disabled:hover {
  background: #9ca3af;
  transform: none;
  box-shadow: none;
}
.btn[disabled], .btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ============================================================
   ALERTS / FLASH
   ============================================================ */
.alert {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.alert-success { background: #d1fae5; color: #065f46; border-color: #6ee7b7; }
.alert-error, .alert-danger { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.alert-warning { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.alert-info { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }

/* ============================================================
   SIDEBAR LAYOUT
   ============================================================ */
.app-wrapper { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-width);
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.24), transparent 28%),
    radial-gradient(circle at bottom left, rgba(124,58,237,.18), transparent 24%),
    linear-gradient(180deg, #0F172A 0%, #111C35 100%);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  border-right: 1px solid rgba(255,255,255,.06);
  box-shadow: 4px 0 20px rgba(0,0,0,0.3);
  transition: var(--transition);
  padding: 10px 10px 10px;
  overflow: hidden;
}

.sidebar-brand {
  padding: 6px 6px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.sidebar-brand img {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px solid #FACC15;
  object-fit: cover;
  box-shadow: 0 12px 24px rgba(15,23,42,.28);
}
.sidebar-brand .brand-text h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: white;
  letter-spacing: -.02em;
}
.sidebar-brand .brand-text p {
  font-size: 0.68rem;
  color: #FACC15;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar-nav {
  flex: 1;
  min-height: 0;
  padding: 4px 4px 0;
  overflow: hidden;
}
.nav-section {
  font-size: 0.64rem;
  font-weight: 800;
  color: rgba(148,163,184,.72);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 8px 8px 5px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 10px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: rgba(226,232,240,.78);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all .22s ease;
  margin: 0 2px 2px;
  position: relative;
}
.nav-item:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,.06);
  color: white;
  transform: translateX(2px);
}
.nav-item.active {
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  color: white;
  box-shadow: 0 12px 24px rgba(37,99,235,.28);
}
.nav-item i { width: 16px; text-align: center; font-size: 0.9rem; }
.nav-badge {
  margin-left: auto;
  background: var(--lc-red);
  color: white;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 20px;
  font-weight: 700;
}

.sidebar-footer {
  padding: 8px 2px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.user-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 24px rgba(15,23,42,.18);
}
.user-card .user-avatar {
  width: 32px; height: 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563EB 0%, #60A5FA 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.84rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: 0 10px 18px rgba(37,99,235,.28);
}
.user-card .user-info { flex: 1; min-width: 0; }
.user-card .user-info .name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #F8FAFC;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-card .user-info .role {
  font-size: 0.7rem;
  color: #93C5FD;
  text-transform: capitalize;
}
.user-card .logout-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #E2E8F0;
  font-size: 0.95rem;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  transition: var(--transition);
}
.user-card .logout-btn:hover { color: white; background: rgba(255,255,255,.14); }

@media (max-height: 740px) {
  .nav-section {
    font-size: 0.6rem;
    margin: 6px 8px 4px;
  }

  .nav-item {
    padding-top: 6px;
    padding-bottom: 6px;
  }
}

@media (max-height: 680px) {
  .sidebar-brand {
    margin-bottom: 8px;
  }

  .sidebar-brand .brand-text h3 {
    font-size: 1rem;
  }
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  height: var(--header-height);
  background: white;
  border-bottom: 1px solid var(--lc-border);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.topbar-title { font-size: 1.15rem; font-weight: 700; flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }

.notif-btn {
  position: relative;
  background: var(--lc-light);
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--lc-gray);
  transition: var(--transition);
}
.notif-btn:hover { background: var(--lc-border); color: var(--lc-dark); }
.notif-badge {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--lc-red);
  color: white;
  font-size: 0.65rem;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

.page-content { padding: 16px; flex: 1; }

/* ============================================================
   CARDS & STATS
   ============================================================ */
.card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--lc-border);
  overflow: hidden;
}
.card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--lc-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: white;
}
.card-header h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--lc-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-body { padding: 22px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.stat-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--lc-border);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
/* colored variants */
.stat-card.blue { background: var(--lc-blue); color: white; border-color: var(--lc-blue); }
.stat-card.blue .stat-icon { background: white; color: var(--lc-blue); }
.stat-card.blue .stat-info .label,
.stat-card.blue .stat-info .value,
.stat-card.blue .stat-info .sub { color: white; }

.stat-card.yellow { background: #f7c843; color: #1a1a2e; border-color: #f7c843; }
.stat-card.yellow .stat-icon { background: white; color: #1a1a2e; }
.stat-card.yellow .stat-info .label,
.stat-card.yellow .stat-info .value,
.stat-card.yellow .stat-info .sub { color: #1a1a2e; }

.stat-card.red { background: var(--lc-red); color: white; border-color: var(--lc-red); }
.stat-card.red .stat-icon { background: white; color: var(--lc-red); }
.stat-card.red .stat-info .label,
.stat-card.red .stat-info .value,
.stat-card.red .stat-info .sub { color: white; }

.stat-card.green { background: var(--lc-green); color: white; border-color: var(--lc-green); }
.stat-card.green .stat-icon { background: white; color: var(--lc-green); }
.stat-card.green .stat-info .label,
.stat-card.green .stat-info .value,
.stat-card.green .stat-info .sub { color: white; }
.stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.stat-icon.blue { background: rgba(0,56,168,0.1); color: var(--lc-blue); }
.stat-icon.red { background: rgba(206,17,38,0.1); color: var(--lc-red); }
.stat-icon.green { background: rgba(40,167,69,0.1); color: var(--lc-green); }
.stat-icon.yellow { background: rgba(252,209,22,0.15); color: #b8860b; }
.stat-info .label { font-size: 0.8rem; color: var(--lc-gray); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-info .value { font-size: 1.9rem; font-weight: 800; color: var(--lc-dark); line-height: 1.2; margin-top: 2px; }
.stat-info .value.blue { color: var(--lc-blue); }
.stat-info .value.red { color: var(--lc-red); }
.stat-info .value.green { color: var(--lc-green); }
.stat-info .value.yellow { color: var(--lc-yellow); }
.stat-info .sub { font-size: 0.78rem; color: var(--lc-gray); margin-top: 3px; }

/* ============================================================
   TABLE
   ============================================================ */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead tr { background: var(--lc-light); }
thead th {
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--lc-gray);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
  border-bottom: 1px solid var(--lc-border);
}
tbody td {
  padding: 13px 16px;
  font-size: 0.88rem;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}
tbody tr:hover { background: #fafbff; }
tbody tr:last-child td { border-bottom: none; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge-info    { background: #dbeafe; color: #1e40af; }
.badge-primary { background: rgba(0,56,168,0.12); color: var(--lc-blue); }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-secondary { background: #e5e7eb; color: #374151; }
.badge-light   { background: #e0f2fe; color: #0369a1; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-dark    { background: #1f2937; color: white; }
.badge-air     { background: #ede9fe; color: #5b21b6; }
.badge-sea     { background: #dbeafe; color: #1e40af; }

/* ============================================================
   TRACKING TIMELINE
   ============================================================ */
.timeline { position: relative; padding: 10px 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 18px; top: 0; bottom: 0;
  width: 2px;
  background: var(--lc-border);
}
.timeline-item {
  display: flex;
  gap: 16px;
  padding: 0 0 24px 48px;
  position: relative;
}
.timeline-dot {
  position: absolute;
  left: 10px;
  top: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--lc-border);
  background: var(--lc-gray);
}
.timeline-dot.active { background: var(--lc-blue); box-shadow: 0 0 0 2px var(--lc-blue), 0 0 0 4px rgba(0,56,168,0.2); }
.timeline-dot.delivered { background: var(--lc-green); box-shadow: 0 0 0 2px var(--lc-green); }
.timeline-content
.timeline-content .tl-title { font-weight: 700; font-size: 0.9rem; }
.timeline-content .tl-loc { font-size: 0.82rem; color: var(--lc-gray); margin-top: 2px; }
.timeline-content .tl-time { font-size: 0.78rem; color: var(--lc-gray); margin-top: 3px; }

/* Additional shared timeline styles (used by both public and customer pages) */
.timeline-section h3 { font-size:0.95rem; font-weight:700; color:#0038A8; margin-bottom:20px; display:flex; align-items:center; gap:8px; }
.tl-item { display:flex; gap:16px; margin-bottom:20px; align-items:flex-start; }
.tl-dot {
  width:40px; height:40px; border-radius:50%; display:flex; align-items:center;
  justify-content:center; flex-shrink:0; font-size:0.9rem; color:white;
  box-shadow:0 3px 10px rgba(0,0,0,0.15);
}
.tl-dot.latest { box-shadow:0 0 0 5px rgba(0,56,168,0.1), 0 3px 10px rgba(0,0,0,0.15); }
.tl-body { flex:1; padding-top:4px; }
.tl-status { font-weight:700; color:#1a1a2e; font-size:0.95rem; }
.tl-time   { color:#999; font-size:0.82rem; margin-top:2px; }
.tl-loc    { color:#0038A8; font-size:0.83rem; margin-top:3px; font-weight:600; }
.tl-desc   { color:#555; font-size:0.85rem; margin-top:3px; }
.tl-line   { width:2px; background:#e8ecf5; height:20px; margin-left:19px; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44,62,80,0.38);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.modal-overlay.hidden { display: none; }
.modal {
  background: white;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: fadeSlideUp 0.3s ease;
}
.modal-lg { max-width: 900px; }
.modal-header {
  padding: 22px 26px;
  border-bottom: 1px solid var(--lc-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h4 { font-size: 1.1rem; font-weight: 700; }
.modal-body { padding: 26px; }
.modal-footer {
  padding: 18px 26px;
  border-top: 1px solid var(--lc-border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.modal-close {
  background: none; border: none; cursor: pointer;
  font-size: 1.3rem; color: var(--lc-gray);
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}
.modal-close:hover { background: var(--lc-light); color: var(--lc-dark); }

/* ============================================================
   SEARCH & FILTER BAR
   ============================================================ */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-bar .search-input {
  flex: 1;
  min-width: 220px;
  position: relative;
}
.filter-bar .search-input input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border: 1.5px solid var(--lc-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.filter-bar .search-input i {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--lc-gray);
}

/* ============================================================
   FILE UPLOAD
   ============================================================ */
.file-drop {
  border: 2px dashed var(--lc-border);
  border-radius: var(--radius-sm);
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--lc-light);
}
.file-drop:hover, .file-drop.drag-over {
  border-color: var(--lc-blue);
  background: rgba(0,56,168,0.04);
}
.file-drop i { font-size: 2rem; color: var(--lc-blue); margin-bottom: 8px; display: block; }
.file-drop p { font-size: 0.88rem; color: var(--lc-gray); }
.file-drop .file-types { font-size: 0.78rem; color: #aaa; margin-top: 4px; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--lc-gray);
}
.empty-state i { font-size: 3.5rem; opacity: 0.3; margin-bottom: 16px; display: block; }
.empty-state h5 { font-size: 1.1rem; color: #555; }
.empty-state p { font-size: 0.88rem; margin-top: 6px; }

/* ============================================================
   TRACKING SEARCH PAGE
   ============================================================ */
.tracking-hero {
  background: linear-gradient(135deg, var(--lc-blue), #0050cc);
  color: white;
  padding: 60px 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  margin-bottom: 28px;
}
.tracking-hero h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.tracking-hero p { opacity: 0.8; margin-bottom: 24px; }
.tracking-search {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
}
.tracking-search input {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 0.95rem;
  outline: none;
}
.tracking-result {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 28px;
  border: 1px solid var(--lc-border);
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.page-header h2 { font-size: 1.4rem; font-weight: 800; }
.page-header p { color: var(--lc-gray); font-size: 0.88rem; margin-top: 2px; }
.breadcrumb { display: flex; gap: 6px; align-items: center; font-size: 0.82rem; color: var(--lc-gray); }
.breadcrumb a { color: var(--lc-blue); }
.breadcrumb span { opacity: 0.6; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .page-content { padding: 16px; }
  .auth-card { padding: 30px 24px; }
  .landing-page { padding: 16px; }
  .landing-shell { grid-template-columns: 1fr; min-height: 0; }
  .landing-right { padding-top: 24px; }
  .landing-left { padding: 28px 22px; }
}
@media(max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.loading { animation: spin 0.8s linear infinite; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--lc-gray); }
.text-small  { font-size: 0.82rem; }
.font-bold   { font-weight: 700; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.divider { height: 1px; background: var(--lc-border); margin: 20px 0; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--lc-light);
  border: 1px solid var(--lc-border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
}
.chip.air { background: #ede9fe; color: #5b21b6; border-color: #c4b5fd; }
.chip.sea { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.detail-item .label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--lc-gray); letter-spacing: 0.5px; margin-bottom: 4px; }
.detail-item .value { font-size: 0.93rem; color: var(--lc-dark); font-weight: 500; }

.progress-bar-wrap { background: var(--lc-border); border-radius: 4px; height: 6px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 4px; background: var(--lc-blue); transition: width 1s ease; }

/* New header + hero layout inspired by ASCII mockup */
.site-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 36px; gap:18px; background:white; border-bottom:1px solid var(--lc-border);
}
.site-brand { display:flex; gap:12px; align-items:center; }
.site-brand img { width:44px; height:44px; border-radius:8px; object-fit:cover }
.site-brand strong { font-weight:800; color:var(--lc-dark); }
.site-nav { display:flex; gap:18px; align-items:center; font-weight:600 }
.site-nav a { color: var(--lc-dark); text-decoration:none; padding:8px 10px; border-radius:8px }
.site-nav a:hover { background: rgba(0,56,168,0.06); color: var(--lc-blue) }

.hero { display:grid; grid-template-columns: 1fr 420px; gap:48px; align-items:center; padding:60px 36px; }
.hero-left { display:flex; flex-direction:column; gap:6px; }
.hero-left .big-word { font-size:3.6rem; font-weight:900; line-height:0.9; letter-spacing:-1px; color:var(--lc-dark); }
.hero-left .divider { width:220px; height:4px; background:var(--lc-border); margin:18px 0; border-radius:4px }
.hero-left .subtle { color:var(--lc-gray); font-size:1.05rem; margin-top:18px }

.track-box { background:white; border-radius:14px; padding:22px; box-shadow:var(--shadow-lg); border:1px solid var(--lc-border); }
.track-box h3 { margin:0 0 10px 0; font-size:1.1rem; color:var(--lc-dark) }
.track-input { display:flex; gap:10px; align-items:center }
.track-input input { flex:1; padding:12px 14px; border-radius:10px; border:1px solid var(--lc-border); font-size:0.95rem; outline:none }
.track-input input:focus { border-color:var(--lc-blue); box-shadow:0 0 0 3px rgba(0,56,168,0.1) }
.track-input .go-btn { background:var(--lc-blue); color:white; padding:10px 14px; border-radius:10px; border:none; cursor:pointer }
.track-input .go-btn i { transform:translateX(2px) }
.tagline { margin-top:16px; font-weight:700; color:var(--lc-gray) }
.services { margin-top:18px; display:flex; gap:12px; flex-wrap:wrap }
.service-pill { background:var(--lc-light); padding:8px 12px; border-radius:999px; font-weight:700; color:var(--lc-dark); }

/* ============================================================
   CUSTOMER NAVIGATION STYLES
   ============================================================ */
.customer-nav-container {
  display: flex;
  margin-bottom: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  overflow-x: auto;
}

.customer-nav-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  width: 100%;
  align-items: center;
  flex-wrap: wrap;
}

.customer-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid var(--lc-border);
  background: var(--lc-light);
  color: var(--lc-dark);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.customer-nav-tab i {
  font-size: 1rem;
}

.customer-nav-tab .nav-badge {
  background: var(--lc-gray);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

.customer-nav-tab:hover {
  background: var(--lc-border);
  border-color: var(--lc-gray);
  transform: translateY(-1px);
}

.customer-nav-tab.active {
  background: var(--lc-blue);
  color: white;
  border-color: var(--lc-blue);
  box-shadow: 0 2px 8px rgba(0, 56, 168, 0.15);
}

.customer-nav-tab.active .nav-badge {
  background: rgba(255, 255, 255, 0.3);
  color: white;
}

/* ============================================================
   CUSTOMER INFORMATION STYLES
   ============================================================ */
.customer-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.info-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.info-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.info-card-header {
  padding: 16px;
  background: linear-gradient(135deg, rgba(0, 56, 168, 0.08), rgba(0, 80, 204, 0.08));
  border-bottom: 1px solid var(--lc-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-card-header i {
  color: var(--lc-blue);
  font-size: 1.1rem;
}

.info-card-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--lc-dark);
}

.info-card-body {
  padding: 16px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--lc-light);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 600;
  color: var(--lc-dark);
  font-size: 0.9rem;
}

.info-value {
  text-align: right;
  color: var(--lc-gray);
  font-size: 0.9rem;
}

.info-value a {
  color: var(--lc-blue);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.info-value a:hover {
  color: #0050cc;
  text-decoration: underline;
}

.stat-row {
  display: flex;
  justify-content: space-around;
  gap: 12px;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 12px;
  background: var(--lc-light);
  border-radius: 6px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--lc-blue);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--lc-gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-light-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--lc-light);
  color: var(--lc-dark);
  border: 1px solid var(--lc-border);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-light-icon:hover {
  background: var(--lc-border);
  color: var(--lc-blue);
}

@media(max-width:900px){
  .hero { grid-template-columns: 1fr; gap:24px; padding:36px 20px }
  .hero-left .big-word { font-size:2.4rem }
  .hero-left .divider { width:180px }
  .track-box { width:100%; max-width:none }
  .site-header { padding:14px 20px }
  .site-nav { gap:12px }
  
  .customer-nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .customer-info-grid {
    grid-template-columns: 1fr;
  }
}
@media(max-width:640px){
  .hero { padding:24px 14px }
  .hero-left .big-word { font-size:1.8rem }
  .site-nav a { display:none }
  .site-nav .btn { display:flex }
  
  .customer-nav-tab {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
  
  .customer-nav-tab i {
    font-size: 0.9rem;
  }
}
/* ============================================================
   ENHANCED CUSTOMER DETAILS PAGE STYLES
   ============================================================ */

/* Customer Header Banner */
.customer-header-banner {
  background: linear-gradient(135deg, rgba(0, 56, 168, 0.08), rgba(0, 80, 204, 0.08));
  border-bottom: 2px solid var(--lc-blue);
  padding: 28px 24px;
  margin: -20px -20px 24px -20px;
  display: flex;
  align-items: center;
}

.customer-header-content {
  width: 100%;
}

.customer-avatar-large {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--lc-blue), #0050cc);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 56, 168, 0.2);
}

.customer-name-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--lc-dark);
  letter-spacing: -0.5px;
}

.customer-subtitle {
  margin: 8px 0 0 0;
  font-size: 0.95rem;
  color: var(--lc-gray);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.customer-subtitle i {
  color: var(--lc-blue);
  font-size: 0.85rem;
}

.separator {
  opacity: 0.5;
  margin: 0 4px;
}

/* Quick Stats Row */
.quick-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.quick-stat {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--lc-border);
}

.quick-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 56, 168, 0.12);
  border-color: var(--lc-blue);
}

.quick-stat-bg {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.quick-stat-content {
  flex: 1;
}

.quick-stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--lc-dark);
  line-height: 1;
}

.quick-stat-label {
  font-size: 0.85rem;
  color: var(--lc-gray);
  font-weight: 600;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Enhanced Info Cards */
.info-card.premium {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--lc-border);
  position: relative;
}

.card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--lc-blue), #0050cc);
}

.info-card.premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 56, 168, 0.12);
}

.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 56, 168, 0.1), rgba(0, 80, 204, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lc-blue);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-card-header {
  padding: 20px;
  border-bottom: 1px solid var(--lc-light);
  display: flex;
  align-items: center;
  gap: 14px;
}

.info-card-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--lc-dark);
}

.info-card-body {
  padding: 20px;
}

/* Contact Items */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--lc-light);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--lc-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lc-blue);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.contact-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lc-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--lc-dark);
}

.contact-value a {
  color: var(--lc-blue);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-value a:hover {
  color: #0050cc;
  text-decoration: underline;
}

/* Timeline Styles */
.timeline-item {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  position: relative;
}

.timeline-item:not(:last-child) {
  padding-bottom: 20px;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--lc-light);
  position: absolute;
  left: 0;
  top: 16px;
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--lc-blue);
  flex-shrink: 0;
}

.timeline-dot.first {
  background: #10B981;
  box-shadow: 0 0 0 2px #10B981;
}

.timeline-dot.last {
  background: #F59E0B;
  box-shadow: 0 0 0 2px #F59E0B;
}

.timeline-content {
  margin-left: 24px;
  flex: 1;
}

.timeline-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--lc-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--lc-dark);
  margin-top: 4px;
}

.timeline-progress {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--lc-light);
}

.progress-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lc-gray);
  margin-bottom: 8px;
  display: block;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--lc-light);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981, #059669);
  width: 100%;
  animation: progressAnimation 1s ease-out;
}

@keyframes progressAnimation {
  from { width: 0; }
  to { width: 100%; }
}

/* Metrics */
.metric-item {
  padding: 12px 0;
}

.metric-item:not(:last-child) {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--lc-light);
}

.metric-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--lc-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.metric-bar {
  width: 100%;
  height: 8px;
  background: var(--lc-light);
  border-radius: 4px;
  overflow: hidden;
  margin: 8px 0;
}

.metric-progress {
  height: 100%;
  background: linear-gradient(90deg, #8B5CF6, #7C3AED);
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-value {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--lc-blue);
}

.metric-value-large {
  font-size: 2rem;
  font-weight: 700;
  color: var(--lc-blue);
  margin-top: 8px;
}

/* Shipment History Card */
.shipment-history-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid var(--lc-border);
  margin-top: 28px;
}

.shipment-history-header {
  padding: 24px;
  border-bottom: 1px solid var(--lc-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 56, 168, 0.1), rgba(0, 80, 204, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lc-blue);
  font-size: 1.3rem;
}

.section-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--lc-dark);
}

.section-subtitle {
  margin: 4px 0 0 0;
  font-size: 0.9rem;
  color: var(--lc-gray);
}

.badge-large {
  display: inline-block;
  background: linear-gradient(135deg, var(--lc-blue), #0050cc);
  color: white;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Shipment Timeline */
.shipment-timeline {
  padding: 24px;
}

.shipment-item {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--lc-light);
  transition: all 0.3s ease;
}

.shipment-item:last-child {
  border-bottom: none;
}

.shipment-item:hover {
  background: var(--lc-light);
  margin: 0 -16px;
  padding: 16px 16px;
  border-radius: 8px;
}

.shipment-timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.6);
  border: 2px solid white;
}

.shipment-content {
  flex: 1;
}

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

.tracking-code {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: var(--lc-blue);
  font-size: 0.95rem;
}

.shipper-name {
  color: var(--lc-gray);
  font-size: 0.9rem;
  font-weight: 500;
}

.shipment-dates {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--lc-gray);
  flex-wrap: wrap;
}

.shipment-dates i {
  color: var(--lc-blue);
  font-size: 0.8rem;
  margin-right: 4px;
}

.btn-outline {
  border: 1px solid var(--lc-border);
  background: white;
  color: var(--lc-blue);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-outline:hover {
  background: var(--lc-blue);
  color: white;
  border-color: var(--lc-blue);
}

@media(max-width:768px){
  .quick-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .customer-header-banner {
    margin: -16px -16px 20px -16px;
    padding: 20px 16px;
  }
  
  .customer-name-title {
    font-size: 1.4rem;
  }
  
  .shipment-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media(max-width:480px){
  .quick-stats-row {
    grid-template-columns: 1fr;
  }
  
  .quick-stat {
    padding: 16px;
    gap: 12px;
  }
  
  .quick-stat-number {
    font-size: 1.5rem;
  }
  
  .customer-avatar-large {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
  
  .customer-name-title {
    font-size: 1.2rem;
  }
  
  .shipment-dates {
    gap: 8px;
  }
}

/* ============================================================
   CUSTOMER ACTION BUTTONS & MENUS
   ============================================================ */

.customer-actions-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--lc-border);
  background: white;
  color: var(--lc-dark);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.action-btn i {
  font-size: 0.95rem;
}

.action-btn:hover {
  background: var(--lc-blue);
  color: white;
  border-color: var(--lc-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 56, 168, 0.15);
}

.action-btn:active {
  transform: translateY(0);
}

.dropdown-container {
  position: relative;
}

.dropdown-toggle {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--lc-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  overflow: hidden;
}

.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: none;
  color: var(--lc-dark);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.dropdown-item:hover {
  background: var(--lc-light);
  color: var(--lc-blue);
  padding-left: 20px;
}

.dropdown-item i {
  width: 18px;
  text-align: center;
  color: var(--lc-blue);
}

.dropdown-divider {
  height: 1px;
  background: var(--lc-border);
  margin: 6px 0;
}

/* ============================================================
   MODALS
   ============================================================ */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.modal-content {
  background: white;
  border-radius: 18px;
  box-shadow: 0 12px 48px rgba(0, 56, 168, 0.13);
  max-width: 700px;
  width: 100%;
  padding: 48px 56px 38px 56px;
  margin: 0 auto;
  overflow: visible;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--lc-border);
  background: linear-gradient(135deg, rgba(0, 56, 168, 0.04), rgba(0, 80, 204, 0.04));
}

.modal-header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--lc-dark);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--lc-gray);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--lc-light);
  color: var(--lc-blue);
}

.modal-body {
  padding: 24px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid var(--lc-border);
  border-radius: 10px;
  font-size: 1.08rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: #f7f8fa;
}

.form-control:focus {
  outline: none;
  border-color: var(--lc-info, #17a2b8);
  box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.1);
}

.form-control:disabled {
  background: var(--lc-light);
  color: var(--lc-gray);
  cursor: not-allowed;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--lc-border);
  background: var(--lc-light);
}

/* Contact Options */
.contact-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--lc-border);
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-option:hover {
  background: var(--lc-light);
  border-color: var(--lc-blue);
  transform: translateX(2px);
}

.contact-option .contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 56, 168, 0.1), rgba(0, 80, 204, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lc-blue);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-option h4 {
  margin: 0 0 4px 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--lc-dark);
}

.contact-option p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--lc-gray);
}

/* Print Styles */
@media print {
  .customer-header-banner,
  .customer-actions-menu,
  .action-btn,
  .dropdown-menu,
  .btn,
  .modal {
    display: none !important;
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .print-only {
    display: block !important;
  }
}

@media(max-width:768px){
  .customer-actions-menu {
    width: 100%;
    margin-top: 16px;
  }
  
  .action-btn span {
    display: none;
  }
  
  .action-btn {
    padding: 8px 10px;
  }
  
  .modal-content {
    width: 95%;
  }
}

/* ============================================================
   Action Button Styling
   ============================================================ */

.btn-info {
  background-color: #17a2b8;
  color: white;
  border: 1px solid #17a2b8;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-info:hover {
  background-color: #138496;
  border-color: #0c5460;
  box-shadow: 0 2px 6px rgba(23, 162, 184, 0.3);
  transform: translateY(-1px);
}

.btn-info:active {
  transform: translateY(0);
}

.btn-success {
  background-color: #28a745;
  color: white;
  border: 1px solid #28a745;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-success:hover {
  background-color: #218838;
  border-color: #1e7e34;
  box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
  transform: translateY(-1px);
}

.btn-success:active {
  transform: translateY(0);
}

/* ============================================================
   Enhanced Modal Styling
   ============================================================ */

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--lc-border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--lc-info, #17a2b8);
  box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.1);
}

.form-control:disabled {
  background-color: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* ============================================================
   Drag and Drop Zone Styling
   ============================================================ */

#dropZone {
  border: 2px dashed var(--lc-border);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: transparent;
}

#dropZone:hover {
  background-color: #f0f4f8;
  border-color: #17a2b8;
}

#dropZone i {
  font-size: 36px;
  color: #17a2b8;
  display: block;
  margin-bottom: 8px;
}

#dropZone p {
  margin: 0;
  color: #666;
}

#dropZone p:first-of-type {
  font-weight: 600;
  margin-bottom: 8px;
}

#dropZone p:last-of-type {
  font-size: 0.85rem;
  color: #999;
  margin-top: 6px;
}

/* ============================================================
   File Preview Styling
   ============================================================ */

#filePreview {
  margin-top: 12px;
  padding: 12px;
  background-color: #f0fdf4;
  border: 1.5px solid #28a745;
  border-radius: 6px;
  display: none;
  align-items: center;
  font-weight: 600;
  color: #28a745;
}

#filePreview i {
  color: #28a745;
}

#fileName {
  margin-left: 8px;
  word-break: break-all;
}

@media(max-width:480px){
  .dropdown-menu {
    right: -50%;
    left: auto;
  }
  
  .modal-body {
    padding: 16px;
  }
  
  .modal-header {
    padding: 16px;
  }
  
  .modal-footer {
    flex-direction: column;
  }
  
  .modal-footer .btn {
    width: 100%;
  }
}

/* ============================================================
   TOAST NOTIFICATION SYSTEM
   ============================================================ */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #6c757d;
  animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: translateX(120%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast.show {
  transform: translateX(0);
}

.toast.removing {
  transform: translateX(120%);
  opacity: 0;
}

@keyframes slideInRight {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.toast-success .toast-icon {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #059669;
}

.toast-error .toast-icon {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #dc2626;
}

.toast-warning .toast-icon {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #d97706;
}

.toast-info .toast-icon {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #2563eb;
}

.toast-success { border-left-color: #10b981; }
.toast-error { border-left-color: #ef4444; }
.toast-warning { border-left-color: #f59e0b; }
.toast-info { border-left-color: #3b82f6; }

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1f2937;
  margin-bottom: 2px;
}

.toast-message {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  font-size: 1rem;
  line-height: 1;
  transition: color 0.2s;
}

.toast-close:hover {
  color: #4b5563;
}

/* Loading Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-loading .btn-text {
  opacity: 0;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ============================================================
   ACTION DROPDOWN MENU
   ============================================================ */
.action-dropdown {
  position: relative;
}

.action-dropdown-toggle {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--lc-border);
  background: white;
  color: var(--lc-gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.action-dropdown-toggle:hover {
  background: var(--lc-light);
  color: var(--lc-blue);
  border-color: var(--lc-blue);
}

.action-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: white;
  border-radius: 10px;
  border: 1px solid var(--lc-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  z-index: 1000;
  overflow: hidden;
}

.action-dropdown.active .action-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.action-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: none;
  color: #374151;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.action-dropdown-item:hover {
  background: linear-gradient(90deg, rgba(0, 56, 168, 0.06), rgba(0, 56, 168, 0.02));
  color: var(--lc-blue);
  padding-left: 20px;
}

.action-dropdown-item i {
  width: 18px;
  text-align: center;
  color: var(--lc-blue);
  font-size: 0.95rem;
}

.action-dropdown-item.danger:hover {
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.08), rgba(220, 38, 38, 0.02));
  color: #dc2626;
}

.action-dropdown-item.danger i {
  color: #dc2626;
}

.action-dropdown-divider {
  height: 1px;
  background: var(--lc-border);
  margin: 4px 0;
}

/* ============================================================
   PRIORITY BADGE
   ============================================================ */
.priority-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.priority-high {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #b45309;
  border: 1px solid #fcd34d;
}

.priority-urgent {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #dc2626;
  border: 1px solid #f87171;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ============================================================
   WAYBILL PRINT STYLES
   ============================================================ */
.waybill-container {
  background: white;
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.waybill-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 3px solid var(--lc-blue);
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.waybill-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.waybill-logo-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--lc-blue), #0050cc);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 1.2rem;
}

.waybill-logo-text h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--lc-dark);
  margin: 0;
}

.waybill-logo-text p {
  font-size: 0.85rem;
  color: var(--lc-gray);
  margin: 2px 0 0 0;
}

.waybill-tracking {
  text-align: right;
}

.waybill-tracking .tracking-number {
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--lc-blue);
  letter-spacing: 1px;
}

.waybill-tracking .tracking-label {
  font-size: 0.8rem;
  color: var(--lc-gray);
  text-transform: uppercase;
}

.waybill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.waybill-section {
  border: 1px solid var(--lc-border);
  border-radius: 8px;
  padding: 16px;
}

.waybill-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--lc-gray);
  letter-spacing: 1px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--lc-border);
}

.waybill-field {
  margin-bottom: 10px;
}

.waybill-field:last-child {
  margin-bottom: 0;
}

.waybill-field-label {
  font-size: 0.75rem;
  color: var(--lc-gray);
  font-weight: 600;
}

.waybill-field-value {
  font-size: 0.95rem;
  color: var(--lc-dark);
  font-weight: 500;
}

.waybill-cargo-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 30px;
  padding: 20px;
  background: var(--lc-light);
  border-radius: 8px;
}

.waybill-cargo-item {
  text-align: center;
}

.waybill-cargo-label {
  font-size: 0.75rem;
  color: var(--lc-gray);
  font-weight: 600;
  text-transform: uppercase;
}

.waybill-cargo-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--lc-dark);
  margin-top: 4px;
}

.waybill-barcode {
  text-align: center;
  padding: 20px;
  border: 2px dashed var(--lc-border);
  border-radius: 8px;
  margin-bottom: 20px;
}

.waybill-barcode img {
  max-width: 300px;
  height: 80px;
}

.waybill-footer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--lc-gray);
  border-top: 1px solid var(--lc-border);
  padding-top: 20px;
}

@media print {
  .toast-container,
  .sidebar,
  .topbar,
  .btn,
  .action-dropdown {
    display: none !important;
  }
  
  .waybill-container {
    max-width: 100%;
    padding: 20px;
  }
}

/* ============================================================
   ENHANCED MODAL ANIMATIONS
   ============================================================ */
.modal-overlay {
  backdrop-filter: blur(4px);
}

.modal.enhanced {
  background: white;
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
}

.modal.enhanced .modal-header {
  background: linear-gradient(135deg, rgba(0, 56, 168, 0.04), rgba(0, 80, 204, 0.04));
  border-radius: 16px 16px 0 0;
}

.modal.enhanced .modal-header h4 {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal.enhanced .modal-body {
  padding: 28px;
}

.modal.enhanced .form-group label {
  color: var(--lc-dark);
  font-size: 0.9rem;
}

.modal.enhanced .form-control {
  border-radius: 8px;
  padding: 12px 16px;
}

.modal.enhanced .modal-footer {
  background: var(--lc-light);
  border-radius: 0 0 16px 16px;
}

/* Status update modal specific */
.status-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  position: relative;
}

.status-steps::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 30px;
  right: 30px;
  height: 2px;
  background: var(--lc-border);
}

.status-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.status-step-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--lc-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lc-gray);
  font-size: 0.8rem;
  transition: all 0.3s;
}

.status-step.active .status-step-icon {
  background: var(--lc-blue);
  border-color: var(--lc-blue);
  color: white;
}

/* ============================================================
   RESPONSIVE + MODERN UI OVERRIDES
   ============================================================ */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

img,
svg,
canvas,
video,
iframe {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-wrapper,
.main-content,
.page-content,
.card,
.card-body,
.card-header,
.page-header,
.topbar,
.topbar-actions,
.filter-bar,
.stats-grid,
.form-row,
.table-wrapper,
.modal,
.modal-body,
.modal-footer {
  min-width: 0;
}

.page-content {
  padding: 24px;
}

.card,
.stat-card,
.auth-card,
.modal,
.tracking-result,
.track-back-card {
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.card-header,
.card-body,
.modal-header,
.modal-body,
.modal-footer {
  padding-left: 20px;
  padding-right: 20px;
}

.topbar {
  min-height: var(--header-height);
  height: auto;
  padding: 12px 24px;
  flex-wrap: wrap;
}

.topbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  min-height: 42px;
}

.btn-sm {
  min-height: 36px;
}

.btn-lg {
  min-height: 48px;
}

.form-control {
  min-height: 44px;
}

textarea.form-control {
  min-height: 110px;
}

.table-wrapper {
  width: 100%;
  border-radius: var(--radius-md);
  -webkit-overflow-scrolling: touch;
}

table {
  min-width: 720px;
}

.admin-table {
  min-width: 720px;
}

.page-header .btn,
.page-header > a.btn {
  max-width: 100%;
}

.modal-overlay {
  overflow-y: auto;
}

.modal {
  width: min(100%, 960px);
}

.modal-body {
  overflow-wrap: anywhere;
}

.tracking-search {
  width: 100%;
}

.tracking-search .btn,
.tracking-search button {
  flex-shrink: 0;
}

.sidebar {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sidebar-nav {
  overflow-y: auto;
  padding-right: 2px;
}

.notif-btn {
  flex-shrink: 0;
}

@media (max-width: 1200px) {
  .page-content {
    padding: 20px;
  }

  .card-header,
  .card-body,
  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 992px) {
  :root {
    --sidebar-width: min(84vw, 300px);
  }

  .sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-width);
    z-index: 300;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-open {
    overflow: hidden;
  }

  .main-content {
    margin-left: 0;
    width: 100%;
  }

  .topbar {
    padding: 12px 18px;
    gap: 12px;
  }

  #sidebarToggle {
    display: inline-flex !important;
  }

  .page-content {
    padding: 18px;
  }

  .page-header {
    align-items: stretch;
  }

  .page-header > * {
    width: 100%;
  }

  .page-header .btn,
  .page-header > a.btn {
    width: 100%;
  }

  .filter-bar {
    align-items: stretch;
  }

  .filter-bar > * {
    width: 100%;
  }

  .filter-bar .search-input {
    min-width: 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-card {
    padding: 18px;
  }

  .modal {
    max-height: calc(100vh - 24px);
  }

  .modal-header,
  .modal-footer {
    flex-wrap: wrap;
    gap: 12px;
  }

  .modal-footer {
    justify-content: stretch;
  }

  .modal-footer .btn {
    flex: 1 1 180px;
  }

  .track-back-card {
    margin: 18px;
  }
}

@media (max-width: 768px) {
  .auth-page {
    padding: 16px;
  }

  .auth-card {
    padding: 28px 20px;
    border-radius: 18px;
  }

  .auth-logo img {
    width: 72px;
    height: 72px;
  }

  .auth-logo h2 {
    font-size: 1.5rem;
  }

  .topbar {
    padding: 10px 14px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .topbar-actions .btn,
  .topbar-actions .notif-btn {
    max-width: 100%;
  }

  .page-content {
    padding: 14px;
  }

  .page-header {
    margin-bottom: 18px;
  }

  .page-header h2 {
    font-size: 1.18rem;
  }

  .card-header,
  .card-body,
  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 16px;
  }

  .card-header {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .stat-card {
    gap: 12px;
  }

  .stat-icon {
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
  }

  .stat-info .value {
    font-size: 1.5rem;
  }

  .filter-bar {
    gap: 10px;
  }

  .filter-bar .btn,
  .filter-bar button,
  .filter-bar select,
  .filter-bar input {
    width: 100%;
  }

  .tracking-hero {
    padding: 36px 18px;
    border-radius: 18px;
  }

  .tracking-hero h2 {
    font-size: 1.4rem;
  }

  .tracking-search {
    flex-direction: column;
  }

  .tracking-search input,
  .tracking-search .btn,
  .tracking-search button {
    width: 100%;
  }

  .tracking-result {
    padding: 18px;
  }

  .track-back-card {
    padding: 24px 18px;
  }

  .track-back-actions {
    flex-direction: column;
  }

  .track-back-btn {
    width: 100%;
    justify-content: center;
  }

  .modal-overlay {
    padding: 10px;
  }

  .modal {
    border-radius: 16px;
    max-height: calc(100vh - 20px);
  }

  .modal-footer .btn {
    width: 100%;
    flex-basis: 100%;
  }

  table,
  .admin-table {
    min-width: 640px;
  }

  .landing-right {
    padding: 24px 18px;
  }

  .landing-left {
    padding: 24px 18px;
  }
}

@media (max-width: 576px) {
  .btn,
  .btn-sm,
  .btn-lg {
    width: 100%;
  }

  .topbar-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions .btn,
  .topbar-actions .notif-btn {
    width: 100%;
    justify-content: center;
  }

  .topbar .btn-light.btn-sm,
  .topbar .btn-primary.btn-sm,
  .topbar .btn-outline.btn-sm {
    padding-left: 14px;
    padding-right: 14px;
  }

  .page-header .breadcrumb {
    flex-wrap: wrap;
  }

  .auth-card {
    padding: 24px 16px;
  }

  .auth-logo h2 {
    font-size: 1.35rem;
  }

  .modal-header h4 {
    font-size: 1rem;
  }

  table,
  .admin-table {
    min-width: 560px;
  }
}

.status-step.completed .status-step-icon {
  background: var(--lc-green);
  border-color: var(--lc-green);
  color: white;
}

.status-step-label {
  font-size: 0.75rem;
  color: var(--lc-gray);
  font-weight: 600;
  text-align: center;
}

.status-step.active .status-step-label {
  color: var(--lc-blue);
}

/* Document preview modal */
.document-preview {
  text-align: center;
  padding: 20px;
}

.document-preview img {
  max-width: 100%;
  max-height: 400px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.document-preview iframe {
  width: 100%;
  height: 500px;
  border: none;
  border-radius: 8px;
}
