/* Custom styling for JNE AWB Tracker */
:root {
  --primary-color: #0d6efd;
  --primary-dark: #0a58ca;
  --jne-red: #d32f2f;
  --jne-blue: #0288d1;
}

body {
  background-color: #f4f6fa;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #2b303a;
  min-height: 100vh;
}

/* Navbar */
.navbar-brand {
  font-weight: 700;
  letter-spacing: -0.3px;
}

/* Stat Cards */
.stat-card {
  border: none;
  border-radius: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  position: relative;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

/* Pulse animation for active status */
.pulse-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-green 1.8s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* Tracking Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 11px;
  width: 2px;
  background: #dee2e6;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item:last-child {
  margin-bottom: 0.5rem;
}

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.timeline-item.active .timeline-marker {
  border-color: #0d6efd;
  background-color: #0d6efd;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.2);
}

.timeline-item.delivered .timeline-marker {
  border-color: #198754;
  background-color: #198754;
  box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.2);
}

.timeline-item.failed .timeline-marker {
  border-color: #dc3545;
  background-color: #dc3545;
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.2);
}

.timeline-content {
  background: #ffffff;
  padding: 1.2rem;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.timeline-item.active .timeline-content {
  border-left: 4px solid #0d6efd;
}

.timeline-item.delivered .timeline-content {
  border-left: 4px solid #198754;
}

/* Copy button */
.copy-btn {
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

.copy-btn:hover {
  opacity: 1;
}

/* Custom Table */
.awb-table th {
  font-weight: 600;
  color: #495057;
  border-top: none;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.awb-table td {
  vertical-align: middle;
  padding: 0.9rem 0.75rem;
}

.awb-badge {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35em 0.65em;
  border-radius: 8px;
}
