/* Ender Bot Professional Control Panel & Landing Styles */

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(24px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes floatReverse {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

@keyframes eyePulse {
  0%, 100% {
    filter: drop-shadow(0 0 8px #d946ef) drop-shadow(0 0 16px #a855f7);
    opacity: 0.95;
  }
  50% {
    filter: drop-shadow(0 0 14px #f43f5e) drop-shadow(0 0 24px #d946ef);
    opacity: 1;
  }
}

@keyframes particleDrift {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-18px) rotate(180deg);
    opacity: 1;
  }
  100% {
    transform: translateY(0) rotate(360deg);
    opacity: 0.8;
  }
}

.animate-slide-up {
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
  animation: fadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-float-slow {
  animation: floatSlow 5s ease-in-out infinite;
}

.animate-float-reverse {
  animation: floatReverse 4.5s ease-in-out infinite;
}

.animate-eye-pulse {
  animation: eyePulse 3s ease-in-out infinite;
}

.animate-particle {
  animation: particleDrift 6s ease-in-out infinite;
}

/* Subtle dot / grid matrix background */
.bg-grid-pattern {
  background-size: 32px 32px;
  background-image: 
    radial-gradient(circle, rgba(168, 85, 247, 0.12) 1.5px, transparent 1.5px);
}

/* Custom High-Density Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #0f1115;
}

::-webkit-scrollbar-thumb {
  background: #232733;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #343a4c;
}

/* Sidebar Custom Scroll */
.sidebar-scroll {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.sidebar-scroll::-webkit-scrollbar {
  width: 5px;
}
.sidebar-scroll::-webkit-scrollbar-thumb {
  background: #1f232f;
  border-radius: 3px;
}
.sidebar-scroll::-webkit-scrollbar-thumb:hover {
  background: #2f3547;
}

/* Main Content Custom Scroll */
.custom-scroll {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.custom-scroll::-webkit-scrollbar {
  width: 6px;
}
.custom-scroll::-webkit-scrollbar-track {
  background: #0c0d12;
}
.custom-scroll::-webkit-scrollbar-thumb {
  background: #232733;
  border-radius: 4px;
}
.custom-scroll::-webkit-scrollbar-thumb:hover {
  background: #343a4c;
}

/* Professional Toggle Switch Styling */
.switch-input:checked + .switch-track {
  background-color: #5865F2;
}

.switch-input:checked + .switch-track .switch-thumb {
  transform: translateX(18px);
}

.switch-input:focus-visible + .switch-track {
  box-shadow: 0 0 0 2px #5865F2, 0 0 0 4px rgba(88, 101, 242, 0.3);
}

/* Textarea / Input Glow Focus */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #5865F2 !important;
  box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.25) !important;
}

/* Pill Badge Animation */
.variable-pill:hover {
  border-color: #5865F2;
  background-color: rgba(88, 101, 242, 0.12);
  transform: translateY(-1px);
}
