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

:root {
  --primary: #f43f5e; /* rose-500 */
  --primary-dark: #e11d48; /* rose-600 */
  --secondary: #f97316; /* orange-500 */
  --secondary-dark: #ea580c; /* orange-600 */
  --dark-bg: #111827; /* gray-900 */
  --dark-card: #1f2937; /* gray-800 */
  --dark-border: #374151; /* gray-600 */
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--dark-bg);
  color: #f9fafb;
  line-height: 1.6;
}

/* Form styling */
input, select, textarea {
  transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.3) !important;
}

/* Button styling */
button {
  transition: all 0.3s ease;
  transform: translateY(0);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
}

button:active {
  transform: translateY(0);
}

/* File upload styling */
#documentUpload + label {
  transition: all 0.3s ease;
}

#documentUpload:focus + label {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.3);
}
/* Result section animation */
#resultSection {
  animation: fadeIn 0.5s ease-in-out;
}

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

/* Active status badges */
.active-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.inactive-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: #d1d5db;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Button enhancements */
.btn-primary {
  background: linear-gradient(135deg, #f43f5e 0%, #f97316 100%);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px -5px rgba(244, 63, 94, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -10px rgba(244, 63, 94, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.4);
}

/* Form active states */
input:active, select:active, textarea:active {
  border-color: #f43f5e !important;
}

/* Template card active state */
.template-card.active {
  border: 2px solid #f43f5e;
  box-shadow: 0 0 30px rgba(244, 63, 94, 0.2);
}

/* Provider card active state */
.provider-card.active {
  border: 2px solid #3b82f6;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
}

/* Animation for active elements */
@keyframes pulse-active {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.pulse-active {
  animation: pulse-active 2s infinite;
}

/* Email sending animation */
@keyframes sending {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.sending-indicator {
  overflow: hidden;
  position: relative;
}

.sending-indicator::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: sending 1.5s infinite;
}
/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }
  
  .flex-wrap {
    flex-direction: column;
  }
  
  .flex-1 {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .flex-1:last-child {
    margin-bottom: 0;
  }
}