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

@tailwind base;
@tailwind components;
@tailwind utilities;

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar for dark mode */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: #1f2937;
  border-radius: 5px;
}

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

/* Smooth transitions */
.transition-smooth {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Upload area styling */
.upload-area {
  border: 2px dashed #374151;
  transition: all 0.3s ease;
}

.upload-area.dragover {
  border-color: #3b82f6;
  background-color: rgba(59, 130, 246, 0.05);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Loading spinner */
.spinner {
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: #3b82f6;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Light/Dark theme overrides */
.theme-dark body {
  background-color: #0a0e1a;
  color: #f9fafb;
}

.theme-light body {
  background-color: #f9fafb;
  color: #020617;
}

.theme-light .bg-dark-bg {
  background-color: #f9fafb;
}

.theme-light .bg-dark-card {
  background-color: #ffffff;
}

.theme-light .border-dark-border {
  border-color: #e5e7eb;
}

.theme-light .text-gray-400 {
  color: #6b7280;
}

.theme-light .text-gray-500 {
  color: #6b7280;
}

.theme-light .text-gray-600 {
  color: #4b5563;
}

.theme-light .spinner {
  border-color: rgba(15, 23, 42, 0.08);
  border-top-color: #3b82f6;
}

.theme-light .bg-dark-card\/50 {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
}
