/* -------------------------------------------------------------
   Mapglo Standalone Landing Page Styles
   ------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  color: #23346C;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Match logo bluish color (#23346C) instead of black throughout the website */
.text-black,
.text-slate-900,
.text-slate-950,
.text-gray-900,
.text-gray-950,
.text-neutral-900,
.text-neutral-950 {
  color: #23346C !important;
}

.hover\:text-slate-900:hover,
.hover\:text-gray-900:hover,
.hover\:text-black:hover {
  color: #23346C !important;
}

.group:hover .group-hover\:text-slate-900,
.group:hover .group-hover\:text-black {
  color: #23346C !important;
}

::selection {
  background-color: #ef4444;
  color: #ffffff;
}

/* Custom Clean Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Hero background grid */
.hero-grid {
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.4) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 400px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.3s ease;
}

.toast.toast-success {
  background-color: #ffffff;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.toast.toast-error {
  background-color: #ffffff;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.toast-closing {
  opacity: 0;
  transform: translateY(10px);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tab transition animation */
.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Accordion transition */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  opacity: 0;
}

.accordion-item.active .accordion-content {
  max-height: 600px;
  opacity: 1;
}

.accordion-item.active .accordion-chevron {
  transform: rotate(180deg);
}

/* Vector Map Canvas Grid Lines */
.map-canvas-road {
  stroke: #ffffff;
  stroke-linecap: round;
}

.dark .map-canvas-road {
  stroke: #1e293b;
}
