* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: 'Crimson Text', Georgia, serif;
}

.font-serif {
  font-family: 'Crimson Text', Georgia, serif;
}

.font-mono {
  font-family: 'Monaco', 'Consolas', monospace;
}

.fade-in {
  animation: fadeIn 250ms ease-in-out;
}

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

.animate-slide-in {
  animation: slideIn 300ms ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

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

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

/* Prose styling for whisper display */
.prose p {
  margin: 0;
  line-height: 1.7;
}

/* Ensure textarea doesn't have default browser styling */
textarea {
  font-family: inherit;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  .flex.gap-2 {
    flex-wrap: wrap;
  }
}

/* Focus states for accessibility */
button:focus-visible,
textarea:focus-visible,
input:focus-visible {
  outline: 2px solid #FF6B6B;
  outline-offset: 2px;
}

/* Smooth transitions */
* {
  transition: background-color 150ms ease-in-out, 
              border-color 150ms ease-in-out,
              color 150ms ease-in-out;
}

button, a {
  transition: all 150ms ease-in-out;
}