/* Custom design system styles for Material Synth Lab */

/* Custom Scrollbars */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.3);
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.4);
  border-radius: 4px;
  border: 1px solid rgba(15, 23, 42, 0.5);
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 242, 254, 0.5);
}

/* Glassmorphism utils */
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.backdrop-blur-md {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* CPK Colors Custom Glows & Borders */
.element-card {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.element-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 12px var(--glow-color);
  border-color: var(--glow-color);
}

.element-card:active {
  transform: scale(0.95);
}

/* Dragging visual states */
.dragging {
  opacity: 0.4;
  border-style: dashed;
}

.drag-over {
  border-color: #00f2fe !important;
  background-color: rgba(0, 242, 254, 0.05) !important;
  box-shadow: inset 0 0 20px rgba(0, 242, 254, 0.1), 0 0 15px rgba(0, 242, 254, 0.1);
}

/* Glow Shadows */
.shadow-glow {
  text-shadow: 0 0 10px currentColor;
}

/* Wave interference deck animation */
@keyframes grid-pulse {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.5;
  }
}

.grid-bg-pulse {
  animation: grid-pulse 4s ease-in-out infinite;
}

/* Floating animation for elements in mixer */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-5px) rotate(1deg);
  }
}

.floating-reactant {
  animation: float 6s ease-in-out infinite;
}

/* Orbitron spacing adjustments */
.font-display {
  letter-spacing: 0.07em;
}

/* Drag-over states for Sonar dropzones */
.drag-over-primary {
  border-color: #00f2fe !important;
  background-color: rgba(0, 242, 254, 0.05) !important;
  box-shadow: inset 0 0 20px rgba(0, 242, 254, 0.1);
}

.drag-over-probe {
  border-color: #00ffcc !important;
  background-color: rgba(0, 255, 204, 0.05) !important;
  box-shadow: inset 0 0 20px rgba(0, 255, 204, 0.1);
}

/* Ledger Node Card */
.ledger-node-card {
  transition: all 0.2s ease;
}

.ledger-node-card:hover {
  border-color: rgba(0, 242, 254, 0.3) !important;
  background-color: rgba(15, 23, 42, 0.8) !important;
  transform: translateX(2px);
}

.ledger-node-card.active {
  border-color: #00f2fe !important;
  background-color: rgba(0, 242, 254, 0.05) !important;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}

/* Cryptic Node */
.cryptic-node-badge {
  color: #ec008c;
  border-color: rgba(236, 0, 140, 0.3);
  background-color: rgba(236, 0, 140, 0.05);
  animation: border-pulse 2s infinite;
}

@keyframes border-pulse {
  0%, 100% {
    border-color: rgba(236, 0, 140, 0.3);
    box-shadow: 0 0 2px rgba(236, 0, 140, 0.1);
  }
  50% {
    border-color: rgba(236, 0, 140, 0.8);
    box-shadow: 0 0 8px rgba(236, 0, 140, 0.3);
  }
}
