/* CSS custom properties used via var() in component classes and custom CSS.
   Colors/fonts for Tailwind utilities are defined in @theme (tailwind/application.css). */
:root {
  --bg-3: #1e2534;
  --text-2: #a8b1c2;
  --text-3: #949eb3;
  --blue: #8b7cf8;
  --cyan: #22d3ee;
  --border: #21293a;
  --border-subtle: #1a2030;
  --shadow-lg: 0 8px 40px rgba(0,0,0,.6);
  --radius-xl: 24px;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  overflow-y: auto;
}

nav:not(.admin-nav) {
  color: var(--text-2);
}

/* Navbar scroll effect — transparent at top, frosted glass on scroll */
header.navbar--scrolled {
  background: rgba(6, 8, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* Demo player animations */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Mobile slide-over menu */
.slide-over-backdrop {
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.slide-over-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.slide-over-panel {
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.slide-over-panel.open {
  transform: translateX(0);
}

/* Dark-themed scrollbar — primarily affects Windows/Linux where browsers render
   a classic, always-visible scrollbar that clashes with the dark UI.
   macOS uses overlay scrollbars by default and is unaffected. */
.dark-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: var(--bg-3) transparent;
}

.dark-scrollbar::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

.dark-scrollbar::-webkit-scrollbar-thumb {
  background-color: var(--bg-3);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.dark-scrollbar::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-3);
  background-clip: content-box;
}

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