/* Modern glow theme with vibrant colors */

:root {
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.7) transparent;
  --glow-primary: #8b5cf6;
  --glow-secondary: #ec4899;
  --glow-accent: #06b6d4;
}

html.dark {
  scrollbar-color: rgba(139, 92, 246, 0.6) transparent;
}

/* Modern gradient background */
body {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #1a1a2e 100%);
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Glow text effect */
.glow-text {
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.5),
               0 0 40px rgba(236, 72, 153, 0.3);
}

/* Glow box effect */
.glow-box {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3),
              inset 0 0 20px rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Smooth transitions for glow effects */
* {
  transition: box-shadow 200ms ease-in-out, color 200ms ease-in-out;
}

/* Custom animations */
@keyframes float-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3),
                inset 0 0 20px rgba(139, 92, 246, 0.1);
  }
  50% {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.6),
                inset 0 0 20px rgba(139, 92, 246, 0.2),
                0 0 60px rgba(236, 72, 153, 0.3);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.8;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.8);
  }
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

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

::-webkit-scrollbar-thumb {
  background-color: rgba(139, 92, 246, 0.4);
  border-radius: 9999px;
  border: 3px solid transparent;
  background-clip: padding-box;
  min-height: 40px;
  transition: background-color 150ms ease-in-out;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(139, 92, 246, 0.7);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.6);
}

::-webkit-scrollbar-thumb:active {
  background-color: rgba(139, 92, 246, 0.9);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
}

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

html.dark ::-webkit-scrollbar-thumb {
  background-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

html.dark ::-webkit-scrollbar-thumb:hover {
  background-color: rgba(139, 92, 246, 0.8);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.6);
}

html.dark ::-webkit-scrollbar-thumb:active {
  background-color: rgba(139, 92, 246, 1);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
}
