* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'JetBrains Mono', monospace;
  background: #0a0e1a;
  color: #fff;
  overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: #4b5563;
}

/* Animations */
@keyframes float {
  0%, 100% {
    transform: translateZ(var(--z, 0)) translate(-50%, -50%) translateY(0);
  }
  50% {
    transform: translateZ(var(--z, 0)) translate(-50%, -50%) translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 20px currentColor;
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 40px currentColor;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px) translateY(-50%);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(-50%);
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-slideIn {
  animation: slideIn 0.3s ease-out forwards;
}

.animate-marquee {
  animation: marquee 30s linear infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Line clamp */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Glass effect */
.glass {
  background: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Status pulse animations */
@keyframes statusPulseGreen {
  0%, 100% {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.8);
  }
}

@keyframes statusPulseYellow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(234, 179, 8, 0.8);
  }
}

@keyframes statusPulseRed {
  0%, 100% {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.8);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .grid {
    gap: 1rem;
  }
}

/* Focus styles */
input:focus, 
button:focus, 
textarea:focus, 
select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.5);
}

/* Transition defaults */
button, 
input, 
a {
  transition: all 0.2s ease;
}

/* Selection */
::selection {
  background: rgba(0, 212, 255, 0.3);
  color: #fff;
}

/* Hide scrollbar on mobile tabs */
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}