/* Modern SaaS UI Design System - Go-To-Task */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Primary Colors - New Brand Gradient */
  --primary: #2A7BFF;
  --primary-dark: #7B3FE4;
  --primary-light: #22C1DC;
  --accent: #FF4FA3;
  --accent-dark: #E64792;

  /* Neutral Colors */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Semantic Colors */
  --success: #059669; /* Emerald 600 */
  --warning: #d97706; /* Amber 600 */
  --error: #dc2626;   /* Red 600 */
  --info: #2563eb;    /* Blue 600 */

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Modern Gradient Backgrounds */
.gradient-hero {
  background: linear-gradient(135deg, #22C1DC, #2A7BFF, #7B3FE4, #FF4FA3);
  position: relative;
  overflow: hidden;
}

.gradient-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}

.gradient-cta {
  background: linear-gradient(135deg, #22C1DC, #2A7BFF, #7B3FE4, #FF4FA3);
}

.gradient-card {
  background: linear-gradient(135deg, #22C1DC, #2A7BFF, #7B3FE4, #FF4FA3);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1.125rem;
}

p {
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
}

.text-gradient {
  background: linear-gradient(135deg, #22C1DC, #2A7BFF, #7B3FE4, #FF4FA3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Modern Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #22C1DC, #2A7BFF, #7B3FE4, #FF4FA3);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(42, 123, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px 0 rgba(42, 123, 255, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--gray-800);
  border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Modern Cards */
.card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
  background: linear-gradient(135deg, rgba(34, 193, 220, 0.1) 0%, rgba(42, 123, 255, 0.1) 100%);
}

.card-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: #2A7BFF;
}

/* Feature Cards */
.feature-card {
  position: relative;
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 2px solid var(--gray-100);
  transition: all var(--transition-base);
  height: 100%;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #22C1DC, #2A7BFF, #7B3FE4, #FF4FA3);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  border-color: #2A7BFF;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
}

@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }

  .section-hero {
    min-height: auto;
    padding: 4rem 0;
  }
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation */
.nav-modern {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition-base);
}

.nav-modern.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-link {
  color: var(--gray-700);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.nav-link:hover {
  color: #2A7BFF;
  background: rgba(42, 123, 255, 0.08);
}

.nav-link.active {
  color: #2A7BFF;
  background: rgba(42, 123, 255, 0.08);
}

/* Forms */
.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--spacing-sm);
  font-size: 0.875rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: #2A7BFF;
  box-shadow: 0 0 0 3px rgba(42, 123, 255, 0.12);
}

.form-input::placeholder {
  color: var(--gray-400);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background: rgba(42, 123, 255, 0.1);
  color: #2A7BFF;
}

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

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

/* Accordion */
.accordion-item {
  background: white;
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-md);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: all var(--transition-base);
}

.accordion-item:hover {
  border-color: #2A7BFF;
}

.accordion-header {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--gray-900);
  transition: all var(--transition-fast);
}

.accordion-header:hover {
  background: var(--gray-50);
}

.accordion-content {
  padding: 0 1.5rem 1.5rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* Stats */
.stat-card {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #22C1DC, #2A7BFF, #7B3FE4, #FF4FA3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--gray-600);
  font-size: 1rem;
  font-weight: 500;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.grid {
  display: grid;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-xl {
  border-radius: var(--radius-xl);
}

.rounded-full {
  border-radius: 9999px;
}

.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.shadow-xl {
  box-shadow: var(--shadow-xl);
}

/* Responsive Grid */
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .md\\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .md\\:flex {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .lg\\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lg\\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Max Width */
.max-w-2xl {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.max-w-4xl {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.max-w-6xl {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

/* Colors */
.text-white {
  color: white;
}

.text-gray-600 {
  color: var(--gray-600);
}

.text-gray-700 {
  color: var(--gray-700);
}

.text-gray-800 {
  color: var(--gray-800);
}

.text-gray-900 {
  color: var(--gray-900);
}

.bg-white {
  background-color: white;
}

.bg-gray-50 {
  background-color: var(--gray-50);
}

.bg-gray-100 {
  background-color: var(--gray-100);
}

/* Action Buttons */
/* Action Buttons - Text Based */
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.25;
  white-space: nowrap;
  width: auto;
  height: auto;
  background-color: var(--gray-100);
  color: var(--gray-600);
}

.action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Specific Action Styles */
.action-btn[title="Call"],
.action-btn[aria-label="Call"],
.action-btn[title="Place Call"] {
  background-color: #f0fdf4;
  color: #16a34a;
  border-color: #bbf7d0;
}

.action-btn[title="Call"]:hover,
.action-btn[aria-label="Call"]:hover,
.action-btn[title="Place Call"]:hover {
  background-color: #16a34a;
  color: white;
  border-color: #16a34a;
}

.action-btn[title="Edit"],
.action-btn[title="Edit Lead"],
.action-btn[aria-label="Edit Lead"] {
  background-color: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}

.action-btn[title="Edit"]:hover,
.action-btn[title="Edit Lead"]:hover,
.action-btn[aria-label="Edit Lead"]:hover {
  background-color: #2563eb;
  color: white;
  border-color: #2563eb;
}

.action-btn[title="Delete"],
.action-btn[title="Delete Lead"],
.action-btn[aria-label="Delete Lead"] {
  background-color: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

.action-btn[title="Delete"]:hover,
.action-btn[title="Delete Lead"]:hover,
.action-btn[aria-label="Delete Lead"]:hover {
  background-color: #dc2626;
  color: white;
  border-color: #dc2626;
}

.action-btn[title="Disable"],
.action-btn[title="Disable Lead"],
.action-btn[aria-label="Disable Lead"] {
  background-color: #f3f4f6;
  color: #4b5563;
  border-color: #e5e7eb;
}

.action-btn[title="Disable"]:hover,
.action-btn[title="Disable Lead"]:hover,
.action-btn[aria-label="Disable Lead"]:hover {
  background-color: #4b5563;
  color: white;
  border-color: #4b5563;
}

.action-btn[title="Mark as Qualified"],
.action-btn[title="Convert"] {
  background-color: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}

.action-btn[title="Mark as Qualified"]:hover,
.action-btn[title="Convert"]:hover {
  background-color: #059669;
  color: white;
  border-color: #059669;
}

/* Flex container for action buttons in table cells */
td .flex {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Mobile Responsiveness for Actions */
@media (max-width: 640px) {
  .action-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    width: 100%;
    margin-bottom: 0.25rem;
  }

  td .flex {
    flex-direction: column;
    align-items: stretch;
  }
}