@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --theme-primary: #7C3AED;
  --theme-secondary: #f0e8ff;
  --theme-accent: #EC4899;
  --theme-text: #0f172a;
  /* Slate 900 */
  --theme-bg: #f5f7fa;
  /* Z-Index Rules */
  --z-content: 10;
  --z-floating: 40;
  --z-navbar: 50;
  --z-modal: 100;
}

*,
*::before,
*::after {
  box-sizing: border-box !important;
}

/* 💥 FIXED: Removed !important tags here so React/Tailwind can change bg color 💥 */
html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: var(--theme-bg);
  color: var(--theme-text);
  font-family: 'Inter', sans-serif;
  width: 100%;
  min-height: 100vh;
}

#root {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  z-index: var(--z-content);
}

/* Base link and text rules */
a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

button:disabled {
  cursor: not-allowed;
  filter: saturate(0.85) brightness(0.95);
}

/* ===============================================
   LIQUID GLASS DESIGN SYSTEM UTILITIES
   (Kept for backward compatibility with old pages)
=============================================== */
.liquid-glass {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  border-radius: 24px !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

.liquid-glass-floating {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  border-radius: 9999px !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

/* Force Green mappings to Purple for any leftover legacy inline classes */
[class*="text-[#10B981]"],
[class*="text-[#059669]"],
[class*="text-green-"] {
  color: var(--theme-primary) !important;
}

[class*="bg-[#10B981]"],
[class*="bg-[#059669]"],
[class*="bg-green-"] {
  background-color: var(--theme-primary) !important;
}

[class*="border-[#10B981]"],
[class*="border-green-"] {
  border-color: var(--theme-primary) !important;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  /* Slate 300 for minimalist look */
  border-radius: 999px;
}

/* Blob animations (if used) */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob-1,
.blob-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: rgba(124, 58, 237, 0.05);
  /* Extremely subtle */
  top: -10%;
  left: -10%;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: rgba(249, 115, 22, 0.05);
  /* Extremely subtle */
  bottom: -10%;
  right: -10%;
  animation-delay: -5s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(50px, 50px) scale(1.1);
  }
}

.readable-text {
  color: #0f172a !important;
  z-index: 10 !important;
  position: relative !important;
}

.status-badge-container {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 12px !important;
  position: relative !important;
  z-index: 1 !important;
  border-radius: 9999px !important;
  overflow: hidden !important;
}

.status-badge-text {
  color: #FFFFFF !important;
  font-weight: 700 !important;
  position: relative !important;
  z-index: 10 !important;
  filter: brightness(1.25) !important;
}

/* PREMIUM MAP STYLES */
.premium-map {
  filter: saturate(0.8) contrast(1.1) !important;
}

.pulsing-marker {
  position: relative;
  width: 20px;
  height: 20px;
  background: #000000;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.pulsing-marker::after {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  animation: pulse-radar 2s infinite ease-out;
}

@keyframes pulse-radar {
  0% {
    transform: scale(0.2);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.galaxy-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: block;
}

.galaxy-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}