/* Custom styles for Rewritable */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

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

/* Custom button hover animations */
.btn-primary {
  @apply bg-blue-600 text-white px-6 py-3 rounded-lg font-medium transition-all duration-200 hover:bg-blue-700 hover:shadow-lg transform hover:scale-105;
}

/* Risk indicator styles */
.risk-high {
  @apply bg-red-50 border-l-4 border-red-400 text-red-800;
}

.risk-medium {
  @apply bg-yellow-50 border-l-4 border-yellow-400 text-yellow-800;
}

.risk-low {
  @apply bg-green-50 border-l-4 border-green-400 text-green-800;
}

/* File upload area styles */
.upload-area {
  border: 2px dashed #e5e7eb;
  transition: all 0.3s ease;
}

.upload-area:hover {
  border-color: #3b82f6;
  background-color: #eff6ff;
}

.upload-area.dragover {
  border-color: #2563eb;
  background-color: #dbeafe;
}

/* Contract text highlighting */
.clause-highlight {
  background: rgba(59, 130, 246, 0.1);
  border-bottom: 2px solid #3b82f6;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clause-highlight:hover {
  background: rgba(59, 130, 246, 0.2);
}

.clause-highlight.high-risk {
  background: rgba(239, 68, 68, 0.1);
  border-bottom-color: #ef4444;
}

.clause-highlight.medium-risk {
  background: rgba(245, 158, 11, 0.1);
  border-bottom-color: #f59e0b;
}

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

.spinner {
  animation: spin 1s linear infinite;
}

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

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}