* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  box-sizing: border-box;
}

pre, code {
  font-family: 'JetBrains Mono', monospace;
}

.hourglass-icon {
  animation: flip 2s ease-in-out infinite;
}

@keyframes flip {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
}

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

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.7);
}

/* Smooth transitions */
button, input, select {
  transition: all 0.2s ease;
}

/* Grid cell hover effect */
.grid > div:hover {
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* Mobile optimizations */
@media (max-width: 640px) {
  .grid-cols-4 {
    gap: 2px;
  }
  
  pre {
    font-size: 11px;
  }
}

/* Glassmorphism enhancement */
.backdrop-blur-lg {
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

/* Selection color */
::selection {
  background: rgba(212, 175, 55, 0.3);
  color: inherit;
}

/* Toast animation */
@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(10px); }
  20% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-10px); }
}

/* Pulse effect for grid cells */
@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.7; }
}

.grid > div {
  animation: pulse 3s ease-in-out infinite;
}

.grid > div:nth-child(1) { animation-delay: 0s; }
.grid > div:nth-child(2) { animation-delay: 0.2s; }
.grid > div:nth-child(3) { animation-delay: 0.4s; }
.grid > div:nth-child(4) { animation-delay: 0.6s; }
.grid > div:nth-child(5) { animation-delay: 0.8s; }
.grid > div:nth-child(6) { animation-delay: 1s; }
.grid > div:nth-child(7) { animation-delay: 1.2s; }
.grid > div:nth-child(8) { animation-delay: 1.4s; }
.grid > div:nth-child(9) { animation-delay: 1.6s; }
.grid > div:nth-child(10) { animation-delay: 1.8s; }
.grid > div:nth-child(11) { animation-delay: 2s; }
.grid > div:nth-child(12) { animation-delay: 2.2s; }
.grid > div:nth-child(13) { animation-delay: 2.4s; }
.grid > div:nth-child(14) { animation-delay: 2.6s; }
.grid > div:nth-child(15) { animation-delay: 2.8s; }
.grid > div:nth-child(16) { animation-delay: 3s; }