/* Custom Styles for Modern UI/UX */

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

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

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Blob animation for background */
@keyframes blob {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.animate-blob {
  animation: blob 7s infinite;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

/* Fade in animation */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Drag and drop styles */
#dropZone.drag-over {
  border-color: #6366f1;
  background-color: #eef2ff;
  transform: scale(1.02);
}

#dropZone.has-file {
  border-color: #10b981;
  background-color: #ecfdf5;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Button hover effects */
button:not(:disabled) {
  transition: all 0.2s ease;
}

button:not(:disabled):active {
  transform: scale(0.98);
}

/* Link hover effects */
a {
  transition: all 0.2s ease;
}

/* Card hover effect */
section:hover {
  border-color: rgba(99, 102, 241, 0.3);
}

/* QR Code container */
#qrcode canvas,
#qrcodePreview canvas {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* File list item hover */
.recent-file-item {
  transition: all 0.2s ease;
}

.recent-file-item:hover {
  background-color: #f8fafc;
  transform: translateX(4px);
}

/* Status message animation */
#status {
  transition: all 0.3s ease;
}

#status.success {
  color: #10b981;
}

#status.error {
  color: #ef4444;
}

#status.loading {
  color: #6366f1;
}

/* Loading spinner */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Focus styles */
input:focus,
button:focus {
  outline: none;
  ring: 2px;
  ring-color: #6366f1;
  ring-opacity: 0.5;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .animate-blob {
    display: none;
  }
}

/* Smooth transitions for all interactive elements */
a, button, input, select, textarea {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced shadow effects */
.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Gradient text effect */
.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
