:root {
  /* Dashboard Colors */
  --color-primary: #4f46e5;
  --color-primary-light: #818cf8;
  --color-bg: #f9fafb;
  --color-bg-light: #ffffff;
  --color-text: #111827;
  --color-text-light: #6b7280;
  --color-border: #e5e7eb;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-neutral: #6b7280;
  
  /* Leads Specific Colors */
  --lead-primary: #2b6cb0;
  --lead-primary-hover: #2c5282;
  --lead-bg: #ffffff;
  --lead-surface: #f7fafc;
  --lead-muted: #6b7280;
  --lead-muted-light: #9ca3af;
  --lead-border: #e5e7eb;
  --lead-border-light: #f3f4f6;
  --lead-urgent: #e53e3e;
  --lead-urgent-light: #fed7d7;
  --lead-low: #16a34a;
  --lead-low-light: #dcfce7;
  --lead-normal: #f59e0b;
  --lead-normal-light: #fef3c7;
  --lead-danger: #dc2626;
  --lead-danger-light: #fef2f2;
  
  /* Shadows */
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --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);
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  /* Transitions */
  --transition: all 0.2s ease-in-out;
  
  /* Lead Specific Variables */
  --lead-shadow: var(--shadow);
  --lead-shadow-md: var(--shadow-md);
  --lead-radius: var(--radius-md);
  --lead-radius-lg: var(--radius-lg);
  --lead-transition: var(--transition);
}

/* Base Styles */
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Sidebar Styles */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  background-color: var(--color-bg-light);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: var(--transition);
  overflow-y: auto;
}

.sidebar.collapsed {
  transform: translateX(-100%);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.sidebar-logo {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.sidebar-toggle:hover {
  background-color: var(--color-border);
  color: var(--color-text);
}

.sidebar-nav {
  list-style: none;
  padding: 1rem 0;
  margin: 0;
}

.nav-item {
  margin: 0.25rem 0.5rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.nav-item:hover {
  background-color: var(--color-border-light);
}

.nav-item.active {
  background-color: var(--color-primary-light);
}

.nav-item.active .nav-link {
  color: white;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link i {
  margin-right: 0.75rem;
  width: 1.25rem;
  text-align: center;
}

/* Main Wrapper */
.main-wrapper {
  margin-left: 250px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.main-wrapper.sidebar-collapsed {
  margin-left: 0;
}

/* Header */
.app-header {
  background: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-sidebar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--color-text);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

.mobile-sidebar-toggle:hover {
  background-color: var(--color-border);
}

.app-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-text);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--color-text);
}

.user-role {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

/* Main Content */
.leads-main {
  flex: 1;
  padding: 1.5rem;
  background-color: var(--color-bg);
}

.leads-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 0;
  background-color: var(--color-bg-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Header */
/* Responsive Styles */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    z-index: 1100;
  }

  .sidebar.show-mobile {
    transform: translateX(0);
  }

  .main-wrapper {
    margin-left: 0;
  }

  .mobile-sidebar-toggle {
    display: block;
  }

  .sidebar-toggle {
    display: none;
  }

  .sidebar.collapsed {
    transform: translateX(-100%);
  }
}

@media (min-width: 1025px) {
  .mobile-sidebar-toggle {
    display: none;
  }

  .sidebar.collapsed {
    transform: translateX(0);
  }
}

/* Header */
.leads-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-bg-light);
  margin-bottom: 1.5rem;
}

.leads-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.leads-title {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

/* Buttons */
.leads-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--lead-radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--lead-transition);
  text-decoration: none;
  white-space: nowrap;
}

.leads-btn:focus {
  outline: 2px solid var(--lead-primary);
  outline-offset: 2px;
}

.leads-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.leads-btn-primary {
  background-color: var(--lead-primary);
  color: white;
  border-color: var(--lead-primary);
}

.leads-btn-primary:hover:not(:disabled) {
  background-color: var(--lead-primary-hover);
  border-color: var(--lead-primary-hover);
}

.leads-btn-secondary {
  background-color: white;
  color: #374151;
  border-color: var(--lead-border);
}

.leads-btn-secondary:hover:not(:disabled) {
  background-color: #f9fafb;
}

.leads-btn-danger {
  background-color: var(--lead-danger);
  color: white;
  border-color: var(--lead-danger);
}

.leads-btn-danger:hover:not(:disabled) {
  background-color: #b91c1c;
  border-color: #b91c1c;
}

.leads-btn-text {
  background-color: transparent;
  color: var(--lead-primary);
  border-color: transparent;
}

.leads-btn-text:hover:not(:disabled) {
  background-color: #f7fafc;
}

/* KPI Cards */
.leads-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.leads-kpi-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background-color: white;
  border: 1px solid var(--lead-border);
  border-radius: var(--lead-radius-lg);
  box-shadow: var(--lead-shadow);
}

.leads-kpi-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: #ebf5ff;
  border-radius: 50%;
  color: var(--lead-primary);
  font-size: 20px;
}

.leads-kpi-content {
  display: flex;
  flex-direction: column;
}

.leads-kpi-label {
  font-size: 14px;
  color: var(--lead-muted);
  margin-bottom: 4px;
}

.leads-kpi-value {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}

/* Filters */
.leads-filters {
  margin-bottom: 24px;
  background-color: white;
  border: 1px solid var(--lead-border);
  border-radius: var(--lead-radius-lg);
  overflow: hidden;
}

.leads-filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--lead-border-light);
}

.leads-filters-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.leads-filters-content {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  transition: var(--lead-transition);
}

.leads-filters-collapsed {
  display: none;
}

.leads-filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.leads-filter-group-full {
  grid-column: 1 / -1;
}

/* Search container */
.leads-search-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.leads-search-container input[type="text"] {
  padding-right: 36px; /* Space for clear button */
  width: 100%;
}

.leads-clear-search {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: var(--lead-muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--lead-transition);
  opacity: 0.7;
}

.leads-clear-search:hover {
  color: var(--lead-danger);
  background-color: rgba(220, 38, 38, 0.1);
  opacity: 1;
}

.leads-clear-search:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.3);
}

.leads-filter-label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.leads-input,
.leads-select,
.leads-textarea {
  padding: 10px 12px;
  border: 1px solid var(--lead-border);
  border-radius: var(--lead-radius);
  font-size: 14px;
  transition: var(--lead-transition);
  background-color: white;
}

.leads-input:focus,
.leads-select:focus,
.leads-textarea:focus {
  outline: none;
  border-color: var(--lead-primary);
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1);
}

.leads-date-range {
  display: flex;
  align-items: center;
  gap: 12px;
}

.leads-date-separator {
  color: var(--lead-muted);
  font-size: 14px;
}

/* Table Section */
.leads-table-section {
  background-color: white;
  border: 1px solid var(--lead-border);
  border-radius: var(--lead-radius-lg);
  overflow: hidden;
  margin-bottom: 80px; /* Space for bulk toolbar */
}

.leads-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--lead-border-light);
}

.leads-table-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.leads-table-container {
  overflow-x: auto;
  position: relative;
  min-height: 400px;
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.leads-table th {
  background-color: #f9fafb;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid var(--lead-border);
  white-space: nowrap;
}

.leads-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--lead-border-light);
  vertical-align: middle;
}

.leads-table tbody tr:hover {
  background-color: #f9fafb;
}

.leads-table-checkbox {
  width: 40px;
  text-align: center;
}

.leads-table-sortable {
  cursor: pointer;
  user-select: none;
}

.leads-table-sortable:hover {
  background-color: #f3f4f6;
}

/* Badges */
.leads-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.leads-badge-priority-urgent {
  background-color: var(--lead-urgent-light);
  color: var(--lead-urgent);
}

.leads-badge-priority-normal {
  background-color: var(--lead-normal-light);
  color: var(--lead-normal);
}

.leads-badge-priority-low {
  background-color: var(--lead-low-light);
  color: var(--lead-low);
}

/* Skeleton Loading */
.leads-skeleton {
  padding: 20px;
}

.leads-skeleton-row {
  height: 20px;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 12px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Empty State */
.leads-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.leads-empty-icon {
  font-size: 48px;
  color: var(--lead-muted-light);
  margin-bottom: 16px;
}

.leads-empty-title {
  font-size: 18px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 8px 0;
}

.leads-empty-description {
  color: var(--lead-muted);
  margin: 0 0 20px 0;
  max-width: 400px;
}

/* Pagination */
.leads-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-top: 1px solid var(--lead-border-light);
  flex-wrap: wrap;
  gap: 16px;
}

.leads-pagination-info {
  font-size: 14px;
  color: var(--lead-muted);
}

.leads-pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.leads-page-numbers {
  display: flex;
  gap: 4px;
}

.leads-page-btn {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--lead-border);
  background-color: white;
  border-radius: var(--lead-radius);
  font-size: 14px;
  cursor: pointer;
  transition: var(--lead-transition);
}

.leads-page-btn:hover:not(.leads-page-active) {
  background-color: #f9fafb;
}

.leads-page-active {
  background-color: var(--lead-primary);
  color: white;
  border-color: var(--lead-primary);
}

.leads-pagination-size {
  display: flex;
  align-items: center;
  gap: 8px;
}

.leads-pagination-label {
  font-size: 14px;
  color: var(--lead-muted);
}

/* Bulk Toolbar */
.leads-bulk-toolbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  border-top: 1px solid var(--lead-border);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.leads-bulk-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  max-width: 100%;
  margin: 0 auto;
}

.leads-bulk-count {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.leads-bulk-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Modals */
.leads-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.leads-modal[aria-hidden="false"] {
  display: flex;
}

.leads-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.leads-modal-container {
  position: relative;
  background-color: white;
  border-radius: var(--lead-radius-lg);
  box-shadow: var(--lead-shadow-md);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.leads-modal-sm {
  max-width: 400px;
}

.leads-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 0;
}

.leads-modal-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.leads-modal-close {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--lead-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}

.leads-modal-close:hover {
  background-color: #f3f4f6;
  color: #374151;
}

.leads-modal-body {
  padding: 20px 24px;
  flex: 1;
  overflow-y: auto;
}

.leads-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 24px 20px;
}

/* Forms */
.leads-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.leads-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.leads-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.leads-form-group-full {
  grid-column: 1 / -1;
}

.leads-form-label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.leads-form-label.required::after {
  content: " *";
  color: var(--lead-urgent);
}

.leads-form-hint {
  font-size: 12px;
  color: var(--lead-muted);
}

.leads-form-error {
  font-size: 12px;
  color: var(--lead-urgent);
  min-height: 16px;
}

.leads-file-input {
  padding: 8px 0;
}

.leads-textarea {
  resize: vertical;
  min-height: 80px;
}

/* Chips */
.leads-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--lead-border);
  border-radius: var(--lead-radius);
  min-height: 42px;
  align-items: center;
}

.leads-chips-input {
  border: none;
  outline: none;
  flex: 1;
  min-width: 120px;
  padding: 4px;
}

.leads-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background-color: #ebf5ff;
  border: 1px solid #bee3f8;
  border-radius: 16px;
  font-size: 12px;
  color: var(--lead-primary);
}

.leads-chip-remove {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 2px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.leads-chip-remove:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

/* Preview Panel */
.leads-preview {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: none;
}

.leads-preview[aria-hidden="false"] {
  display: block;
}

.leads-preview-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
}

.leads-preview-content {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 500px;
  background-color: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.leads-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--lead-border);
}

.leads-preview-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.leads-preview-close {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--lead-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}

.leads-preview-close:hover {
  background-color: #f3f4f6;
  color: #374151;
}

.leads-preview-body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.leads-preview-footer {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid var(--lead-border);
}

/* Toast */
.leads-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 400px;
}

.leads-toast {
  padding: 12px 16px;
  border-radius: var(--lead-radius);
  box-shadow: var(--lead-shadow-md);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastSlideIn 0.3s ease-out;
}

.leads-toast-success {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.leads-toast-error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Spinner */
.leads-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Toggle Switch */
.leads-name-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.leads-toggle-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--lead-muted);
}

.leads-toggle-switch {
  position: relative;
  display: inline-block;
  width: 120px;
  height: 30px;
}

.leads-toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.leads-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e2e8f0;
  transition: .4s;
  border-radius: 34px;
}

.leads-toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.leads-toggle-option {
  position: absolute;
  font-size: 12px;
  font-weight: 500;
  color: var(--lead-muted);
  top: 50%;
  transform: translateY(-50%);
  transition: color 0.3s;
}

.leads-toggle-option:first-child {
  left: 12px;
}

.leads-toggle-option:last-child {
  right: 12px;
}

.leads-toggle-input:checked + .leads-toggle-slider {
  background-color: var(--lead-primary);
}

.leads-toggle-input:checked + .leads-toggle-slider:before {
  transform: translateX(90px);
}

.leads-toggle-input:checked + .leads-toggle-slider .leads-toggle-option:first-child {
  color: white;
}

.leads-toggle-input:not(:checked) + .leads-toggle-slider .leads-toggle-option:last-child {
  color: white;
}

/* Table Header Toggle */
.leads-table-header-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.leads-table-toggle-btn {
  background: none;
  border: none;
  color: var(--lead-muted-light);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s, background-color 0.2s;
}

.leads-table-toggle-btn:hover {
  color: var(--lead-primary);
  background-color: var(--lead-border-light);
}

.leads-table-toggle-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--lead-primary-light);
}

.leads-table-toggle-btn i {
  font-size: 12px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .leads-container {
    padding: 16px;
  }
  
  .leads-form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .leads-header-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .leads-kpis {
    grid-template-columns: 1fr;
  }
  
  .leads-filters-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .leads-table-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .leads-pagination {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  .leads-pagination-controls {
    justify-content: center;
  }
  
  .leads-bulk-content {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  
  .leads-bulk-actions {
    justify-content: center;
  }
  
  .leads-modal {
    padding: 10px;
  }
  
  .leads-modal-container {
    max-height: 95vh;
  }
  
  .leads-modal-header,
  .leads-modal-body,
  .leads-modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .leads-preview-content {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .leads-filters-content {
    grid-template-columns: 1fr;
  }
  
  .leads-date-range {
    flex-direction: column;
    align-items: stretch;
  }
  
  .leads-modal-footer {
    flex-direction: column;
  }
  
  .leads-preview-footer {
    flex-direction: column;
  }
}

/* Print Styles */
@media print {
  .leads-bulk-toolbar,
  .leads-filters,
  .leads-modal,
  .leads-preview,
  .leads-toast-container {
    display: none !important;
  }
  
  .leads-container {
    padding: 0;
  }
  
  .leads-table-section {
    border: none;
    box-shadow: none;
  }
}