/* Delivery Partner Portal Styles */

.delivery-hud-container {
  max-width: 900px;
  margin: 0 auto;
}

/* Duty Switcher Bar */
.rider-duty-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.rider-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rider-avatar {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #ecfdf5;
  color: #059669;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #a7f3d0;
}

.duty-switch-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.duty-label {
  font-weight: 700;
  font-size: 0.95rem;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 30px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

input:checked + .slider {
  background-color: var(--secondary);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* ----------------- Incoming Orders Radar ----------------- */
.radar-section {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.radar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.25rem;
}

.radar-sweep-icon {
  font-size: 1.4rem;
  animation: radarRotate 3s linear infinite;
  display: inline-block;
}

@keyframes radarRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.radar-cards-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.radar-card {
  background: #f8fafc;
  border: 2px solid #fed7aa;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  position: relative;
  transition: all 0.2s;
}

.radar-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.radar-payout-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-weight: 800;
  font-size: 1rem;
  padding: 4px 10px;
  border-radius: 8px;
}

.radar-route-info {
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.route-stop {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
}

.stop-icon {
  font-size: 1rem;
}

/* ----------------- Active Trip Workflow HUD ----------------- */
.active-trip-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 2px solid var(--primary);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
}

.active-trip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.trip-step-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 1.5rem;
}

.otp-verification-container {
  background: #fffbeb;
  border: 2px dashed #f59e0b;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.otp-input-field {
  width: 180px;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 8px;
  text-align: center;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px;
}

/* Rider Turn-by-Turn HUD & Map */
.rider-nav-hud {
  transition: all 0.3s ease;
}

#rider-trip-nav-map .leaflet-popup-content {
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.4;
}

