/* Cricket Geospatial Analytics Dashboard - Custom Styles */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Navigation active state */
.nav-btn.bg-blue-600 {
  font-weight: 600;
}

/* Leaflet map customizations */
.leaflet-popup-content-wrapper {
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.leaflet-popup-content {
  margin: 8px 12px;
  min-width: 200px;
}

/* Custom marker styling */
.custom-marker {
  background: transparent;
  border: none;
}

/* Table styling */
table {
  border-collapse: collapse;
}

table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Card hover effects */
.hover\:shadow-lg:hover {
  transform: translateY(-2px);
  transition: all 0.2s ease-in-out;
}

/* Loading animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive design */
@media (max-width: 768px) {
  #map {
    height: 300px;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Print styles */
@media print {
  header, nav {
    display: none;
  }
  
  #map {
    height: 400px;
  }
}
