@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');
@import "leaflet/dist/leaflet.css";
@import "tailwindcss";
@import "tw-animate-css";

:root {
  --font-latin: 'Raleway', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-arabic: 'IBM Plex Sans Arabic', 'Raleway', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-numeric: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --background: #ffffff;
  --foreground: #171717;
  --primary: #3A4A9C;
  --primary-dark: #2d3875;
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-primary: var(--primary);
  --color-primary-dark: var(--primary-dark);
  --font-sans: var(--font-latin);
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-latin);
}

/* Poppins utility */
.font-poppins {
  font-family: var(--font-numeric) !important;
}

/* RTL Support */
[dir="rtl"] {
  text-align: right;
}

html[dir="rtl"] *,
html[lang="ar"] *,
body[dir="rtl"] *,
body[lang="ar"] * {
  font-family: var(--font-arabic) !important;
}

html[dir="rtl"],
html[lang="ar"],
body[dir="rtl"],
body[lang="ar"] {
  font-family: var(--font-arabic) !important;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Leaflet (map) */
.leaflet-tooltip.dropex-city-tooltip {
  background: #ffffff;
  border: 2px solid #3A4A9C;
  border-radius: 6px;
  color: #3A4A9C;
  font-weight: 600;
  font-size: 12px;
  padding: 4px 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.leaflet-tooltip.dropex-city-tooltip:before {
  display: none;
}

/* Hide scrollbar utility */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.scrollbar-dropex::-webkit-scrollbar-thumb {
  background: rgba(58, 74, 156, 0.3);
}

.scrollbar-dropex::-webkit-scrollbar-thumb:hover {
  background: rgba(58, 74, 156, 0.5);
}

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

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

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

.animate-ping {
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}
