/* Essential Tailwind CSS utilities for LeadFlow AI */
@import url('https://fonts.bunny.net/css?family=figtree:400,500,600&display=swap');

/* Base styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Figtree', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f3f4f6;
}

/* Email client layout refinements */
#emailClient .ec-left { width: 320px; min-width: 280px; max-width: 380px; }
#emailClient .ec-right { min-width: 0; }
#emailClient input, #emailClient textarea, #emailClient button { border-radius: 6px; }
#emailClient #ecList > div { transition: background-color .15s ease; }
#emailClient #ecList > div:hover { background-color: #f1f5f9; }
#emailClient #ecBody { line-height: 1.55; }
#emailClient .ec-snippet, #emailClient .ec-full { font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial; }

/* Make tiny default inputs not collapse */
#emailClient input[type="text"], #emailClient textarea { font-size: 13px; }
#emailClient .text-xs { font-size: 12px; }

/* Buttons visual polish */
#emailClient .bg-blue-600 { box-shadow: 0 1px 0 #1e3a8a inset; }
#emailClient .bg-gray-200 { color: #334155; }

/* Additional utilities that might be missing */
.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-sans {
  font-family: 'Figtree', sans-serif;
}

.min-h-screen {
  min-height: 100vh;
}

/* Shrink utilities */
.shrink-0 {
  flex-shrink: 0;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

/* Additional spacing utilities */
.space-x-8 > * + * {
  margin-left: 2rem;
}

.sm\:space-x-8 > * + * {
  @media (min-width: 640px) {
    margin-left: 2rem;
  }
}

/* Additional responsive utilities */
.sm\:ml-10 {
  @media (min-width: 640px) {
    margin-left: 2.5rem;
  }
}

.sm\:-my-px {
  @media (min-width: 640px) {
    margin-top: -1px;
    margin-bottom: -1px;
  }
}

/* Additional button utilities */
.inline-flex {
  display: inline-flex;
}

/* Additional text utilities */
.text-gray-800 {
  color: #1f2937;
}

/* Additional border utilities */
.border-b {
  border-bottom-width: 1px;
}

.border-gray-100 {
  border-color: #f3f4f6;
}

/* Additional transition utilities */
.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.duration-150 {
  transition-duration: 150ms;
}

/* Layout utilities */
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-\[200px\] { max-width: 200px; }
.max-w-\[280px\] { max-width: 280px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.sm\:px-6 { @media (min-width: 640px) { padding-left: 1.5rem; padding-right: 1.5rem; } }
.lg\:px-8 { @media (min-width: 1024px) { padding-left: 2rem; padding-right: 2rem; } }
.sm\:px-0 { @media (min-width: 640px) { padding-left: 0; padding-right: 0; } }

/* Background colors */
.bg-gray-100 { background-color: #f3f4f6; }
.bg-white { background-color: #ffffff; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-green-100 { background-color: #dcfce7; }
.bg-red-50 { background-color: #fef2f2; }
.bg-red-100 { background-color: #fee2e2; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-yellow-100 { background-color: #fef3c7; }
.bg-indigo-600 { background-color: #4f46e5; }
.bg-indigo-700 { background-color: #4338ca; }
.bg-green-600 { background-color: #16a34a; }
.bg-green-700 { background-color: #15803d; }
.bg-gray-600 { background-color: #4b5563; }
.bg-gray-700 { background-color: #374151; }

/* Text colors */
.text-gray-900 { color: #111827; }
.text-gray-700 { color: #374151; }
.text-gray-500 { color: #6b7280; }
.text-green-800 { color: #166534; }
.text-green-700 { color: #15803d; }
.text-red-800 { color: #991b1b; }
.text-red-700 { color: #b91c1c; }
.text-blue-800 { color: #1e40af; }
.text-blue-700 { color: #1d4ed8; }
.text-white { color: #ffffff; }
.text-indigo-600 { color: #4f46e5; }
.text-indigo-900 { color: #312e81; }

/* Typography */
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }

/* Spacing */
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-6 { margin-top: 1.5rem; }
.ml-3 { margin-left: 0.75rem; }
.mr-4 { margin-right: 1rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* Flexbox */
.flex { display: flex; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.md\:grid-cols-2 { @media (min-width: 768px) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gap-4 { gap: 1rem; }

/* Borders */
.border { border-width: 1px; }
.border-gray-200 { border-color: #e5e7eb; }
.border-green-200 { border-color: #bbf7d0; }
.border-red-200 { border-color: #fecaca; }
.border-blue-200 { border-color: #bfdbfe; }
.border-gray-300 { border-color: #d1d5db; }
.border-indigo-500 { border-color: #6366f1; }
.border-transparent { border-color: transparent; }
.border-b-2 { border-bottom-width: 2px; }
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

/* Shadows */
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }

/* Buttons */
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.hover\:bg-indigo-700:hover { background-color: #4338ca; }
.hover\:bg-green-700:hover { background-color: #15803d; }
.hover\:bg-gray-700:hover { background-color: #374151; }
.hover\:text-gray-700:hover { color: #374151; }
.hover\:border-gray-300:hover { border-color: #d1d5db; }
.hover\:text-indigo-900:hover { color: #312e81; }
.disabled\:opacity-50:disabled { opacity: 0.5; }

/* Forms */
.block { display: block; }
.w-full { width: 100%; }
.pl-3 { padding-left: 0.75rem; }
.pr-10 { padding-right: 2.5rem; }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-indigo-500:focus { --tw-ring-color: #6366f1; }
.focus\:border-indigo-500:focus { border-color: #6366f1; }

/* Tables */
.min-w-full { min-width: 100%; }
.divide-y > * + * { border-top-width: 1px; }
.divide-gray-200 > * + * { border-color: #e5e7eb; }
.overflow-x-auto { overflow-x: auto; }

/* Table headers */
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.text-left { text-align: left; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }

/* Table cells */
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.whitespace-nowrap { white-space: nowrap; }

/* Navigation */
.h-16 { height: 4rem; }
.hidden { display: none; }
.sm\:ml-6 { @media (min-width: 640px) { margin-left: 1.5rem; } }
.sm\:flex { @media (min-width: 640px) { display: flex; } }
.sm\:space-x-8 > * + * { @media (min-width: 640px) { margin-left: 2rem; } }

/* Inline elements */
.inline-flex { display: inline-flex; }
.inline { display: inline; }

/* Lists */
.list-disc { list-style-type: disc; }
.list-inside { list-style-position: inside; }

/* SVG */
.h-5 { height: 1.25rem; }
.w-5 { width: 1.25rem; }
.h-12 { height: 3rem; }
.w-12 { width: 3rem; }

/* Display utilities */
.none { display: none; }
.block { display: block; }

/* Position */
.relative { position: relative; }

/* Responsive utilities */
@media (min-width: 640px) {
  .sm\:inline { display: inline; }
}

/* Custom utilities for the prospects view */
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* Text center */
.text-center { text-align: center; }

/* Padding utilities */
.p-6 { padding: 1.5rem; }
.p-4 { padding: 1rem; }
.p-3 { padding: 0.75rem; }

/* Margin utilities */
.mt-4 { margin-top: 1rem; }
.mt-12 { margin-top: 3rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }

/* Overflow */
.overflow-auto { overflow: auto; }
.max-h-40 { max-height: 10rem; }
.max-h-60 { max-height: 15rem; }

/* Pre element styling */
pre {
  background-color: #ffffff;
  padding: 0.75rem;
  border-radius: 0.25rem;
  border: 1px solid #e5e7eb;
  overflow: auto;
  max-height: 10rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

/* Alert styling */
[role="alert"] {
  position: relative;
}

/* Button states */
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Focus states */
button:focus,
select:focus {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
} 