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

:root {
  --background: #0f172a;
  --foreground: #f8fafc;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --surface: rgba(30, 41, 59, 0.7);
  --surface-border: rgba(255, 255, 255, 0.1);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--background);
  background-image: radial-gradient(circle at top right, rgba(59, 130, 246, 0.15), transparent 40%),
                    radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.1), transparent 40%);
  color: var(--foreground);
  min-height: 100vh;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

button {
  cursor: pointer;
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Glassmorphism utility */
.glass {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--background);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

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

.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.header {
  text-align: center;
  margin-bottom: 4rem;
  animation: fadeIn 0.6s ease-out;
}

.title {
  font-size: 3.5rem;
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.2rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto;
}

.searchSection {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  margin-bottom: 3rem;
}

.inputGroup {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
}

@media (max-width: 768px) {
  .inputGroup {
    grid-template-columns: 1fr;
  }
}

.input {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 1rem;
  color: var(--foreground);
  font-size: 1rem;
  outline: none;
  transition: all 0.2s ease;
}

.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.button {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.button:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.leadsGrid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.leadCard {
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  align-items: center;
  gap: 1.5rem;
  transition: transform 0.2s ease;
}

@media (max-width: 768px) {
  .leadCard {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.leadInfoCol {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.leadStatusCol {
  display: flex;
  justify-content: flex-start;
}

@media (max-width: 768px) {
  .leadStatusCol {
    justify-content: flex-start;
  }
}

.leadName {
  font-size: 1.25rem;
  font-weight: 600;
}

.leadCategory {
  font-size: 0.8rem;
  color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  display: inline-block;
}

.badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  display: inline-block;
}

.badgePending { background: rgba(245, 158, 11, 0.2); color: var(--warning); }
.badgeGenerated { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.badgeEmailed { background: rgba(16, 185, 129, 0.2); color: var(--success); }

.leadDetails {
  font-size: 0.85rem;
  color: #cbd5e1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.leadDetailItem {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.leadActionsCol {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .leadActionsCol {
    justify-content: stretch;
  }
}

.actionBtn {
  flex: 1;
  padding: 0.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.generateBtn {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
}

.generateBtn:hover:not(:disabled) {
  background: var(--primary);
  color: white;
}

.emailBtn {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.emailBtn:hover:not(:disabled) {
  background: var(--success);
  color: white;
}

.previewBtn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.previewBtn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.emptyState {
  text-align: center;
  padding: 4rem 2rem;
  color: #94a3b8;
}

.footer {
  margin-top: 6rem;
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footerContent {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footerContent p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
