/* Custom Styles for K247 Dunning Tracking System */

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Kanban Cards Drag & Drop */
.kanban-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  touch-action: pan-y;
  cursor: grab;
}

.kanban-card:active {
  cursor: grabbing;
}

.kanban-card.dragging {
  opacity: 0.45;
  transform: scale(0.97) rotate(-1deg);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

.kanban-column.drag-over {
  background-color: #e2e8f0;
  border: 2px dashed #10b981;
}

/* Overdue Card Highlight */
.is-overdue {
  border-left: 4px solid #ef4444 !important;
  background-color: #fff5f5 !important;
}

.is-overdue .overdue-tag {
  animation: pulse-overdue 1.8s infinite;
}

@keyframes pulse-overdue {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.03);
  }
}

/* Leaflet Custom Pin Markers */
.custom-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: 2px solid white;
}

.pin-car {
  background-color: #10b981;
}

.pin-land {
  background-color: #f59e0b;
}

.pin-overdue {
  background-color: #ef4444;
  animation: pulse-overdue 1.5s infinite;
}

/* Map Containers */
#supervisor-map, #picker-map {
  background-color: #e2e8f0;
}

/* Radar Pulse in Check-in Modal */
.radar-pulse {
  animation: radar-wave 2s infinite ease-out;
}

@keyframes radar-wave {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Mobile Optimizations */
@media (max-width: 640px) {
  .kanban-column {
    min-height: 250px;
  }
}
