/* Flying Top Logistic | Blue & Yellow Theme */
:root {
  --primary-blue: #0056b3;
  --accent-yellow: #ffcc00;
  --light-bg: #f8f9fa;
  --text-dark: #212529;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--light-bg);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
}

.navbar {
  background: var(--primary-blue);
}

.navbar-brand {
  color: var(--accent-yellow) !important;
  font-weight: 700;
  font-size: 1.5rem;
}

.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-primary {
  background-color: var(--primary-blue);
  border: none;
}

.btn-primary:hover {
  background-color: #004494;
}

.btn-warning {
  background-color: var(--accent-yellow);
  color: #000;
  border: none;
}

footer {
  background: var(--primary-blue);
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .card { margin: 10px; }
  .navbar-brand { font-size: 1.2rem; }
}



:root {
  --primary-blue: #004aad;
  --accent-yellow: #ffcc00;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f8f9fa;
  color: #212529;
}

.card {
  border: none;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.btn-warning {
  background-color: var(--accent-yellow);
  border: none;
}

.btn-warning:hover {
  background-color: #f0b700;
}

.text-primary {
  color: var(--primary-blue) !important;
}

@media (max-width: 768px) {
  h2 { font-size: 1.5rem; }
}




/* === Success Modal Styles === */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 1000;
  transition: opacity 0.3s ease;
}

.modal.hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  text-align: center;
  animation: slideUp 0.4s ease;
}

.modal-header h2 {
  color: #004aad; /* deep blue */
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.modal-body p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
}

.modal-footer {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.btn-primary {
  background: #004aad;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #ffcc00; /* yellow hover */
  color: #004aad;
}

.btn-outline {
  border: 2px solid #004aad;
  background: transparent;
  color: #004aad;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-outline:hover {
  background: #004aad;
  color: #fff;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ======= MODERN ADMIN LOGIN UI ======= */

.login-body {
  background: linear-gradient(135deg, #004aad, #0077ff);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", "Inter", sans-serif;
  margin: 0;
}

.login-container {
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  padding: 40px 32px;
  text-align: center;
  animation: fadeInUp 0.6s ease-out;
}

.login-header h2 {
  color: #004aad;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 5px;
}

.login-subtitle {
  color: #6b7280;
  font-size: 15px;
  margin-bottom: 25px;
}

.login-form {
  text-align: left;
}

.input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 15px;
  margin-top: 5px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input:focus {
  border-color: #0077ff;
  box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.2);
  outline: none;
}

.btn-primary.login-btn {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background: linear-gradient(90deg, #0077ff, #00a2ff);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 119, 255, 0.3);
}

.login-footer {
  margin-top: 30px;
  color: #f8fafc;
  font-size: 13px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile */
@media (max-width: 480px) {
  .login-card {
    padding: 30px 22px;
  }
  .login-header h2 {
    font-size: 22px;
  }
}



/* ===== Base & Root Variables ===== */
:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #0dcaf0;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --muted: #6c757d;
  --card-bg: #ffffff;
  --card-shadow: 0 4px 12px rgba(0,0,0,0.08);
  --border-radius: 0.5rem;
  --font-family: 'Inter', sans-serif;
}

/* ===== Global Styles ===== */
body {
  font-family: var(--font-family);
  background-color: #f4f6f9;
  margin: 0;
  color: var(--dark-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* ===== Header ===== */
.header {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
}

.header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header .logo svg {
  width: 32px;
  height: 32px;
  stroke-width: 2;
  stroke: var(--primary-color);
}

.header button {
  padding: 6px 14px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn {
  background-color: var(--primary-color);
  color: #fff;
  border-radius: var(--border-radius);
  padding: 8px 16px;
}

.btn:hover {
  background-color: darken(var(--primary-color), 10%);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* ===== Stats Grid ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.stat-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card h4 {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 8px;
}

.stat-card p {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}

/* ===== Card Component ===== */
.card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
}

.card h3 {
  margin: 0;
  font-size: 20px;
}

/* ===== Tables ===== */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 14px;
}

.table th, .table td {
  padding: 12px 15px;
  text-align: left;
}

.table thead th {
  background-color: var(--light-color);
  font-weight: 600;
}

.table tbody tr {
  background-color: var(--card-bg);
  transition: background 0.3s ease;
}

.table tbody tr:hover {
  background-color: #f1f3f5;
}

.table tbody td {
  border-bottom: 1px solid #e9ecef;
}

/* ===== Forms ===== */
.form-group {
  margin-bottom: 15px;
}

.label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 5px;
}

.input, textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--border-radius);
  border: 1px solid #ced4da;
  font-size: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input:focus, textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(13,110,253,0.2);
  outline: none;
}

textarea {
  min-height: 80px;
  resize: vertical;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}



.status-input {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  margin-right: 6px;
  width: 140px;
}

.btn-sm {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}

.btn-sm.btn-primary {
  background: #2563eb;
  color: #fff;
  border: none;
}

.btn-sm.btn-outline {
  border: 1px solid #ccc;
  background: transparent;
  color: #333;
}



.table-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  padding: 20px;
  margin-top: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

th {
  background: #f7f9fc;
  color: #555;
  font-weight: 600;
}

tr:hover td {
  background: #f9fafb;
}





.status-input {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  width: 180px;
  transition: 0.2s;
}
.status-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 3px rgba(0,123,255,0.4);
}

.badge {
  display: inline-block;
  background: #e9ecef;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 13px;
}



.status-input {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--gray-300);
  flex: 1;
}

.update-status-form .btn {
  background: var(--green-500);
  color: white;
  border: none;
  transition: 0.2s;
}

.update-status-form .btn:hover {
  background: var(--green-600);
}



.history-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  border-left: 3px solid var(--yellow-400);
}

.history-item {
  padding: 8px 12px;
  margin-bottom: 6px;
  background: #f9fafb;
  border-radius: 6px;
  font-size: 14px;
}




/* Tracking Card UI */
.track-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: 600px;
  margin: 0 auto;
  border-top: 4px solid #0056b3;
}

.track-card h2 {
  color: #0056b3;
  margin-bottom: 12px;
}

.track-summary p {
  margin: 4px 0;
  font-size: 15px;
}

.status-tag {
  background: #ffcc00;
  color: #000;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
}

/* Timeline UI */
.timeline {
  margin-top: 16px;
  border-left: 3px solid #0056b3;
  padding-left: 20px;
  position: relative;
}

.timeline-item {
  margin-bottom: 14px;
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -10px;
  top: 5px;
  width: 14px;
  height: 14px;
  background: #ffcc00;
  border: 2px solid #0056b3;
  border-radius: 50%;
}

.timeline-content {
  background: #f7f9fb;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.last-update {
  text-align: right;
  font-size: 13px;
  color: #777;
  margin-top: 12px;
}




.tracking-card {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: 600px;
  margin: 40px auto;
  color: #1e2a78;
  border-top: 4px solid #f9b233;
}

.tracking-card h2 {
  text-align: center;
  color: #1e2a78;
}

.tracking-card .info p {
  margin: 6px 0;
  font-size: 15px;
}

.timeline {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  position: relative;
  border-left: 3px solid #1e2a78;
}

.timeline li {
  position: relative;
  padding: 15px 20px;
  margin-bottom: 10px;
}

.timeline li .icon {
  position: absolute;
  left: -32px;
  top: 18px;
  background: #1e2a78;
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border: 2px solid #f9b233;
}

.timeline-content {
  background: #f5f8ff;
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid #e1e1e1;
}

.timeline-content small {
  color: #666;
  display: block;
  margin-top: 4px;
  font-size: 12px;
}



/* ========== TRACKING TIMELINE STYLES ========== */
.tracking-card {
  max-width: 700px;
  margin: 30px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 30px;
  font-family: "Segoe UI", Roboto, sans-serif;
  color: #333;
  animation: fadeIn 0.5s ease;
}

.tracking-card h2 {
  color: #0056b3;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.tracking-card h3 {
  color: #222;
  font-size: 1.2rem;
  margin-top: 25px;
  border-bottom: 2px solid #f2f2f2;
  padding-bottom: 8px;
}

.tracking-card .info p {
  margin: 5px 0;
  font-size: 15px;
}

.status-text {
  background: #e6f0ff;
  color: #0056b3;
  padding: 5px 10px;
  border-radius: 8px;
  font-weight: 600;
}

.timeline {
  position: relative;
  margin: 20px 0;
  padding-left: 20px;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #f3c623; /* yellow line */
  border-radius: 2px;
}

.timeline li {
  position: relative;
  margin-bottom: 20px;
  padding-left: 35px;
}

.timeline li:last-child {
  margin-bottom: 0;
}

.timeline .icon {
  position: absolute;
  left: -2px;
  top: 0;
  width: 22px;
  height: 22px;
  background: #0056b3;
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.timeline-content {
  background: #f9fafc;
  padding: 10px 14px;
  border-radius: 10px;
  border-left: 4px solid #0056b3;
  transition: all 0.3s ease;
}

.timeline-content p {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

.timeline-content small {
  display: block;
  color: #666;
  margin-top: 4px;
  font-size: 13px;
}

.timeline-content:hover {
  background: #eef5ff;
  transform: translateX(3px);
}

.last-update {
  margin-top: 20px;
  font-size: 14px;
  color: #555;
  text-align: right;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive design */
@media (max-width: 600px) {
  .tracking-card {
    padding: 20px;
  }

  .timeline {
    padding-left: 15px;
  }

  .timeline li {
    padding-left: 30px;
  }

  .timeline .icon {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }

  .timeline-content {
    padding: 8px 10px;
  }
}




.track-card {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  max-width: 700px;
  margin: 2rem auto;
  transition: all 0.3s ease;
}

.track-card h2 {
  text-align: center;
  color: #0a3d62;
  margin-bottom: 1.2rem;
}

.track-summary, .service-details {
  background: #f8fafc;
  padding: 1.2rem;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
}

.track-summary p, .service-details p {
  margin: 0.3rem 0;
  color: #333;
  font-size: 0.95rem;
}

.status-tag {
  background: #16a34a;
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 5px;
  font-weight: 600;
  text-transform: capitalize;
}

.timeline {
  position: relative;
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  border-left: 3px solid #e5e7eb;
}

.timeline-item {
  position: relative;
  margin-left: 30px;
  padding: 1rem 0;
  animation: fadeInUp 0.5s ease;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 1.2rem;
  left: -11px;
  width: 18px;
  height: 18px;
  background: #fff;
  border: 3px solid #16a34a;
  border-radius: 50%;
}

.timeline-item .timeline-icon {
  position: absolute;
  left: -40px;
  top: 0.5rem;
  font-size: 1.2rem;
}

.timeline-content {
  margin-left: 0.5rem;
  background: #f1f5f9;
  padding: 0.8rem 1rem;
  border-radius: 0.5rem;
  border-left: 4px solid #16a34a;
}

.timeline-content .status-text {
  margin: 0;
  font-weight: 600;
  color: #111827;
}

.timeline-content small {
  color: #6b7280;
}

.last-update {
  text-align: right;
  color: #555;
  font-size: 0.9rem;
  margin-top: 1rem;
  font-style: italic;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


