@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: confettiFall 3s ease-in-out forwards;
}

@keyframes confettiFall {
  0% {
    top: -10%;
    transform: translateX(0) rotateZ(0deg);
    opacity: 1;
  }
  100% {
    top: 110%;
    transform: translateX(calc(100vw - 100%)) rotateZ(720deg);
    opacity: 0;
  }
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

button:not(:disabled) {
  cursor: pointer;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Blueprint grid pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(0deg, rgba(0, 102, 204, 0.03) 0px, rgba(0, 102, 204, 0.03) 1px, transparent 1px, transparent 20px),
    repeating-linear-gradient(90deg, rgba(0, 102, 204, 0.03) 0px, rgba(0, 102, 204, 0.03) 1px, transparent 1px, transparent 20px);
  pointer-events: none;
  z-index: 0;
}

#root {
  position: relative;
  z-index: 1;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .md\:col-span-2,
  .md\:col-span-3 {
    grid-column: span 1;
  }
  
  header h1 {
    font-size: 2rem;
  }
  
  .grid.grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Smooth transitions */
* {
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}