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

* {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.gradient-text {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.upload-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 1rem;
  background: #f8fafc;
  transition: all 0.3s ease;
  text-align: center;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: #06b6d4;
  background: #ecfeff;
}

.sample-thumb {
  width: 80px;
  height: 60px;
  border-radius: 0.5rem;
  overflow: hidden;
  position: relative;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.sample-thumb:hover {
  transform: scale(1.05);
  border-color: #06b6d4;
}

.sample-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 0.6rem;
  padding: 2px 4px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.selection-box {
  position: absolute;
  pointer-events: none;
  border: 2px dashed #06b6d4;
  background: rgba(6, 182, 212, 0.1);
  transition: border-style 0.2s ease;
}

.selection-box.selected {
  border-style: solid;
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.3);
  animation: pulse-glow 2s infinite;
  pointer-events: auto;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.3);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(6, 182, 212, 0.15);
  }
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e2e8f0;
  border-top: 3px solid #7c3aed;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.explanation-text {
  animation: fadeIn 0.5s ease;
}

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

.sparkle-effect {
  animation: sparkle 0.5s ease-out;
}

@keyframes sparkle {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.5) rotate(180deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(360deg);
    opacity: 1;
  }
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .sample-thumb {
    width: 60px;
    height: 45px;
  }
  
  .sample-label {
    font-size: 0.5rem;
  }
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

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

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

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