/* Components Deferred CSS - SnapLinked
 * 3B.6: Below-the-fold components (async preload)
 * Split from components.css for performance */

/* ============================================
   6. EMPTY STATES
   ============================================ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-12) var(--space-6);
  max-width: 400px;
  margin: 0 auto;
  background: var(--bg-card, #fff);
  border-radius: var(--radius-lg, 12px);
  border: 1px solid var(--border-default, var(--neutral-200));
}

/* Generic child selectors for non-BEM usage */
.empty-state i,
.empty-state .empty-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: var(--space-4, 1rem);
  display: block;
}

.empty-state h4 {
  color: var(--text-primary);
  margin-bottom: var(--space-2, 0.5rem);
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: var(--space-4, 1rem);
}

/* BEM child selectors */
.empty-state-icon {
  width: 80px;
  height: 80px;
  background: var(--bg-muted);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--text-muted);
  font-size: var(--text-3xl);
}

.empty-state-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.empty-state-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  line-height: var(--leading-relaxed);
}

.empty-state-action {
  display: flex;
  gap: var(--space-3);
}

/* L15: Enhanced empty state with subtle illustration */
.empty-state-illustration {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-50, #e8f4fc), var(--primary-100, #cce8f9));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5, 1.25rem);
}

.empty-state-illustration i {
  font-size: 2.5rem;
  color: var(--primary-500, #0a66c2);
  margin-bottom: 0;
}

.empty-state-illustration svg {
  width: 56px;
  height: 56px;
  color: var(--primary-500, #0a66c2);
}




/* ============================================
   8. LOADING STATES
   ============================================ */

/* Spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-default);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  will-change: transform;
}

.spinner-sm { width: 16px; height: 16px; border-width: 2px; }
.spinner-lg { width: 32px; height: 32px; border-width: 3px; }
.spinner-xl { width: 48px; height: 48px; border-width: 3px; }

.spinner-white {
  border-color: rgba(255,255,255,0.3);
  border-top-color: var(--text-inverse);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--neutral-200) 0%,
    var(--neutral-100) 50%,
    var(--neutral-200) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  will-change: transform;
  border-radius: var(--radius-md);
}

.skeleton-text {
  height: 14px;
  width: 100%;
  margin-bottom: var(--space-2);
}

.skeleton-text:last-child {
  width: 60%;
}

.skeleton-title {
  height: 24px;
  width: 70%;
  margin-bottom: var(--space-4);
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.skeleton-card {
  height: 200px;
  border-radius: var(--radius-xl);
}

/* OPT-11: use transform instead of background-position (composited) */
@keyframes skeleton-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Skeleton - variantes extra */
.skeleton-circle {
  border-radius: 50%;
}

.skeleton-image {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg, 12px);
}

.skeleton-btn {
  height: 40px;
  width: 120px;
  border-radius: var(--radius-md, 8px);
}

/* Loading overlay - reutilizável */
.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-overlay, rgba(15, 23, 42, 0.6));
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.loading-overlay.active {
  display: flex;
}

.loading-overlay-content {
  background: var(--bg-surface, #fff);
  border-radius: var(--radius-2xl, 16px);
  box-shadow: var(--shadow-xl, 0 10px 40px rgba(0,0,0,0.3));
  padding: 32px 48px;
  text-align: center;
  max-width: 360px;
}

.loading-overlay-content .spinner-xl {
  margin: 0 auto 16px;
}

.loading-overlay-content .loading-message {
  color: var(--text-secondary, #475569);
  font-size: 0.95rem;
  margin-top: 12px;
}

/* Render/AI progress  */
.render-progress {
  text-align: center;
  padding: 32px 24px;
}

.render-progress .progress-spinner {
  width: 56px;
  height: 56px;
  border: 4px solid var(--neutral-200, #e2e8f0);
  border-top-color: var(--primary, #0a66c2);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  will-change: transform;
  margin: 0 auto 16px;
}

.render-progress .progress-pulse-ring {
  position: relative;
  display: inline-block;
}

.render-progress .progress-pulse-ring::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--primary-200, #99d1f3);
}

.render-progress .progress-message {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary, #0f172a);
  margin-bottom: 8px;
}

.render-progress .progress-submessage {
  font-size: 0.85rem;
  color: var(--text-muted, #64748b);
}

.render-progress .progress-bar-track {
  height: 6px;
  background: var(--neutral-200, #e2e8f0);
  border-radius: var(--radius-full, 9999px);
  overflow: hidden;
  margin-top: 16px;
}

.render-progress .progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary, #0a66c2), var(--primary-400, #33a3e7));
  border-radius: var(--radius-full, 9999px);
  transition: width 0.5s ease;
}

.render-progress .progress-percentage {
  font-size: 0.8rem;
  color: var(--text-muted, #64748b);
  margin-top: 6px;
}

/* Progress Bar */
.progress {
  height: 8px;
  background: var(--neutral-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width var(--duration-slow) var(--ease-out);
}

.progress-bar-striped {
  background-image: linear-gradient(
    45deg,
    rgba(255,255,255,0.15) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255,255,255,0.15) 50%,
    rgba(255,255,255,0.15) 75%,
    transparent 75%,
    transparent
  );
  background-size: 1rem 1rem;
}

.progress-bar-animated {
  animation: progress-bar-stripes 1s linear infinite;
  will-change: transform;
}

/* OPT-11: use transform instead of background-position (composited) */
@keyframes progress-bar-stripes {
  0% { transform: translateX(-1rem); }
  100% { transform: translateX(0); }
}


/* ============================================
   9. MODALS
   ============================================ */

/* Custom modal backdrop - only for non-Bootstrap modals */
.custom-modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  z-index: var(--z-modal);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.custom-modal-backdrop.show {
  opacity: 1;
}

/* Custom modal container - only for non-Bootstrap modals */
.custom-modal-container {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  z-index: var(--z-modal);
  overflow-y: auto;
  pointer-events: none;
}

/* Custom modal - only for non-Bootstrap modals */
.custom-modal {
  background: var(--bg-surface);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  transform: scale(0.95) translateY(20px);
  opacity: 0;
  transition: all var(--duration-normal) var(--ease-spring);
}

.custom-modal.show {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.custom-modal-sm { max-width: 400px; }
.custom-modal-lg { max-width: 700px; }
.custom-modal-xl { max-width: 900px; }
.custom-modal-full { max-width: 95vw; max-height: 95vh; }

/* Bootstrap Modal Enhancements - do not override core functionality */
.modal-content {
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
}

.modal-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.modal-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin: 0;
}

.modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.modal-body {
  padding: var(--space-6);
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  background: var(--bg-muted);
}


/* ============================================
   10. TOOLTIPS
   ============================================ */

.tooltip {
  position: absolute;
  z-index: var(--z-tooltip);
  max-width: 300px;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: var(--text-inverse);
  background: var(--neutral-800);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: all var(--duration-fast) var(--ease-out);
}

.tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

.tooltip-arrow {
  position: absolute;
  width: 8px;
  height: 8px;
  background: inherit;
  transform: rotate(45deg);
}

.tooltip[data-placement="top"] .tooltip-arrow {
  bottom: -4px;
  left: 50%;
  margin-left: -4px;
}

.tooltip[data-placement="bottom"] .tooltip-arrow {
  top: -4px;
  left: 50%;
  margin-left: -4px;
}


/* ============================================
   11. STAT CARDS
   ============================================ */

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  transition: all var(--duration-normal) var(--ease-in-out);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--duration-normal);
}

.stat-card:hover {
  box-shadow: var(--shadow-card-hover);
}

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

.stat-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.stat-card-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-muted);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: var(--text-xl);
}

.stat-card-icon.success { color: var(--success); background: var(--success-50); }
.stat-card-icon.warning { color: var(--warning); background: var(--warning-50); }
.stat-card-icon.danger { color: var(--danger); background: var(--danger-50); }
.stat-card-icon.info { color: var(--info); background: var(--info-50); }

.stat-card-label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  margin-bottom: var(--space-1);
}

.stat-card-value {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
}

.stat-card-change {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  margin-top: var(--space-2);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
}

.stat-card-change.positive {
  background: var(--success-50);
  color: var(--success-600);
}

.stat-card-change.negative {
  background: var(--danger-50);
  color: var(--danger-600);
}


/* ============================================
   12. DATA TABLES
   ============================================ */

.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.table thead {
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border-default);
}

.table th {
  padding: var(--space-3) var(--space-4);
  font-weight: var(--font-semibold);
  color: var(--text-secondary);
  text-align: left;
  white-space: nowrap;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.table td {
  padding: var(--space-4);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover {
  background: var(--bg-hover);
}

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

.table-sortable th:hover {
  color: var(--text-primary);
}


/* ============================================
   13. NAVIGATION TABS
   ============================================ */

.tabs {
  display: flex;
  gap: var(--space-1);
  border-bottom: 1px solid var(--border-default);
  overflow-x: auto;
}

.tab {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
  margin-bottom: -1px;
}

.tab:hover {
  color: var(--text-primary);
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Pills Tabs */
.tabs-pills {
  gap: var(--space-2);
  border-bottom: none;
  padding: var(--space-1);
  background: var(--bg-muted);
  border-radius: var(--radius-lg);
}

.tabs-pills .tab {
  border-radius: var(--radius-md);
  border-bottom: none;
  margin-bottom: 0;
  padding: var(--space-2) var(--space-4);
}

.tabs-pills .tab.active {
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}


/* ============================================
   14. NOTIFICATIONS & TOASTS
   ============================================ */

.notification-dropdown {
  width: 380px;
  max-height: 480px;
  padding: 0;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.notification-item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition-fast);
}

.notification-item:hover {
  background: var(--bg-hover);
}

.notification-item.unread {
  background: var(--primary-50);
}

.notification-item.unread:hover {
  background: var(--primary-100);
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bg-muted);
  color: var(--text-secondary);
}

.notification-icon.success { background: var(--success-50); color: var(--success); }
.notification-icon.warning { background: var(--warning-50); color: var(--warning); }
.notification-icon.danger { background: var(--danger-50); color: var(--danger); }
.notification-icon.info { background: var(--info-50); color: var(--info); }

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.notification-message {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.notification-time {
  font-size: var(--text-2xs);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.notification-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: var(--space-2);
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column-reverse;
  gap: var(--space-3);
  pointer-events: none;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-4) var(--space-5);
  min-width: 320px;
  max-width: 420px;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  pointer-events: auto;
  transform: translateX(120%);
  opacity: 0;
  transition: all var(--duration-slow) var(--ease-spring);
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-success {
  border-left: 4px solid var(--success);
}

.toast-error {
  border-left: 4px solid var(--danger);
}

.toast-warning {
  border-left: 4px solid var(--warning);
}

.toast-info {
  border-left: 4px solid var(--info);
}

/* M7: Undo toast (bottom center, with timer) */
.undo-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  opacity: 0;
  z-index: var(--z-toast, 1090);
  pointer-events: auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.undo-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.undo-toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--neutral-800, #1e293b);
  color: var(--neutral-100, #f3f2ef);
  border-radius: var(--radius-xl, 12px);
  padding: 12px 20px;
  box-shadow: var(--shadow-xl, 0 10px 40px rgba(0,0,0,0.3));
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 280px;
  position: relative;
  overflow: hidden;
}

.undo-toast-btn {
  background: none;
  border: none;
  color: var(--primary-300, #66baed);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-md, 8px);
  margin-left: auto;
  white-space: nowrap;
  transition: background 0.15s;
}

.undo-toast-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.undo-toast-timer {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--primary, #0a66c2);
  border-radius: 0 0 var(--radius-xl, 12px) var(--radius-xl, 12px);
}


/* ============================================
   DIVIDERS
   ============================================ */

.divider {
  height: 1px;
  background: var(--border-default);
  margin: var(--space-6) 0;
}

.divider-vertical {
  width: 1px;
  height: 100%;
  background: var(--border-default);
  margin: 0 var(--space-4);
}

.divider-text {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-default);
}


/* ============================================
   RESPONSIVE UTILITIES - Extended Breakpoints
   ============================================ */

/* Extra small devices (320px and below) */
@media (max-width: 320px) {
  .btn {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
  }

  .btn-lg {
    padding: var(--space-2-5) var(--space-4);
    font-size: var(--text-sm);
  }

  .card {
    padding: var(--space-3);
  }

  .modal-content {
    margin: var(--space-2);
    max-width: calc(100vw - var(--space-4));
  }
}

/* Ultra-wide screens (1920px and above) */
@media (min-width: 1920px) {
  .container-xl {
    max-width: 1600px;
  }
}


/* ============================================
   CONFIRM DIALOG (Custom overlay - substitui alert/confirm nativos)
   ============================================ */

.confirm-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-max, 9999);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  transition: background 0.25s ease, backdrop-filter 0.25s ease;
  padding: var(--space-4);
}

.confirm-dialog-overlay.confirm-dialog-visible {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.confirm-dialog-overlay.confirm-dialog-exit {
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
}

.confirm-dialog-box {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-light, #e5e7eb);
  border-radius: var(--radius-2xl, 16px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
  padding: var(--space-8, 2rem) var(--space-6, 1.5rem) var(--space-6, 1.5rem);
  max-width: 420px;
  width: 100%;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.confirm-dialog-visible .confirm-dialog-box {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.confirm-dialog-exit .confirm-dialog-box {
  transform: scale(0.9) translateY(20px);
  opacity: 0;
}

.confirm-dialog-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-3, 0.75rem);
  line-height: 1;
}

.confirm-dialog-title {
  font-size: var(--text-lg, 1.125rem);
  font-weight: var(--font-semibold, 600);
  color: var(--text-primary);
  margin: 0 0 var(--space-2, 0.5rem);
}

.confirm-dialog-message {
  font-size: var(--text-sm, 0.875rem);
  color: var(--text-secondary);
  margin: 0 0 var(--space-6, 1.5rem);
  line-height: 1.6;
}

.confirm-dialog-actions {
  display: flex;
  gap: var(--space-3, 0.75rem);
  justify-content: center;
}

.confirm-dialog-btn {
  padding: var(--space-2-5, 0.625rem) var(--space-5, 1.25rem);
  border-radius: var(--radius-lg, 10px);
  font-size: var(--text-sm, 0.875rem);
  font-weight: var(--font-medium, 500);
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  min-width: 100px;
}

.confirm-dialog-btn-cancel {
  background: var(--bg-hover, #f0f0f0);
  color: var(--text-secondary);
  border-color: var(--border-default, #ddd);
}

.confirm-dialog-btn-cancel:hover {
  background: var(--bg-hover, #e5e5e5);
}

.confirm-dialog-btn-confirm {
  color: var(--text-inverse);
  border: none;
}

.confirm-dialog-btn-confirm:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.confirm-dialog-btn:focus-visible {
  outline: 2px solid var(--primary, #0d6efd);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .confirm-dialog-box {
    padding: var(--space-6, 1.5rem) var(--space-4, 1rem);
  }

  .confirm-dialog-actions {
    flex-direction: column-reverse;
  }

  .confirm-dialog-btn {
    width: 100%;
  }
}

/* ============================================
   LINKEDIN BRANDED COMPONENTS
   ============================================
   Centralized LinkedIn-branded buttons and
   backgrounds. Replaces inline definitions
   scattered across templates.
   ============================================ */

.btn-linkedin {
  background: var(--li-blue, var(--primary));
  color: var(--text-inverse, #fff);
  border: none;
  padding: var(--space-2, 0.5rem) var(--space-4, 1rem);
  border-radius: var(--radius-full, 20px);
  font-weight: var(--font-semibold, 600);
  font-size: var(--text-sm, 0.875rem);
  font-family: var(--font-sans, inherit);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1, 0.25rem);
  transition: var(--transition-colors);
  text-decoration: none;
  line-height: var(--leading-normal, 1.5);
}

.btn-linkedin:hover {
  background: var(--li-blue-hover, var(--primary-600));
  color: var(--text-inverse, #fff);
  text-decoration: none;
}

.btn-linkedin:active {
  background: var(--primary-700);
  transform: translateY(0);
}

.btn-linkedin:disabled,
.btn-linkedin.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-linkedin:focus-visible {
  outline: var(--focus-outline, 2px solid var(--primary));
  outline-offset: var(--focus-offset, 2px);
}

.btn-linkedin-outline {
  background: transparent;
  color: var(--li-blue, var(--primary));
  border: 1px solid var(--li-blue, var(--primary));
  padding: var(--space-2, 0.5rem) var(--space-4, 1rem);
  border-radius: var(--radius-full, 20px);
  font-weight: var(--font-semibold, 600);
  font-size: var(--text-sm, 0.875rem);
  font-family: var(--font-sans, inherit);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1, 0.25rem);
  transition: var(--transition-colors);
  text-decoration: none;
  line-height: var(--leading-normal, 1.5);
}

.btn-linkedin-outline:hover {
  background: var(--li-blue, var(--primary));
  color: var(--text-inverse, #fff);
  text-decoration: none;
}

.btn-linkedin-outline:focus-visible {
  outline: var(--focus-outline, 2px solid var(--primary));
  outline-offset: var(--focus-offset, 2px);
}

/* LinkedIn background utility */
.bg-linkedin {
  background: var(--gradient-primary, var(--li-blue)) !important;
  color: var(--text-inverse, #fff) !important;
}

.bg-linkedin h1, .bg-linkedin h2, .bg-linkedin h3,
.bg-linkedin h4, .bg-linkedin h5, .bg-linkedin h6,
.bg-linkedin p, .bg-linkedin span, .bg-linkedin label {
  color: var(--text-inverse, #fff) !important;
}

/* ============================================
   LEAD STATUS BADGES — Global
   ============================================ */

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1, 0.25rem) var(--space-3, 0.75rem);
  border-radius: var(--radius-full, 20px);
  font-size: var(--text-xs, 0.75rem);
  font-weight: var(--font-semibold, 600);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.status-badge.new { background: var(--primary-50, rgba(10,102,194,0.1)); color: var(--primary, #0a66c2); }
.status-badge.contacted { background: var(--warning-50, rgba(245,158,11,0.1)); color: var(--warning-700, #b45309); }
.status-badge.replied { background: var(--info-50, rgba(59,130,246,0.1)); color: var(--info-700, #1d4ed8); }
.status-badge.qualified { background: var(--success-50, rgba(16,185,129,0.1)); color: var(--success-700, #047857); }
.status-badge.opportunity { background: var(--primary-100, rgba(10,102,194,0.15)); color: var(--primary-700, #004182); }
.status-badge.converted,
.status-badge.customer { background: var(--success-700, #047857); color: var(--text-inverse, #fff); }
.status-badge.lost { background: var(--danger-50, rgba(239,68,68,0.1)); color: var(--danger-700, #b91c1c); }

/* ============================================
   COMPANY CLASSIFICATION TAGS — Global
   ============================================ */

.company-tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1, 0.25rem) var(--space-2, 0.5rem);
  border-radius: var(--radius-full, 20px);
  font-size: var(--text-xs, 0.75rem);
  font-weight: var(--font-semibold, 600);
  background: var(--bg-muted, var(--neutral-100));
  color: var(--text-tertiary, var(--neutral-500));
}

.company-tag.target {
  background: var(--primary-50, rgba(10,102,194,0.1));
  color: var(--primary, #0a66c2);
}

.company-tag.competitor {
  background: var(--danger-50, rgba(239,68,68,0.1));
  color: var(--danger-700, #b91c1c);
}

.company-tag.partner {
  background: var(--info-50, rgba(59,130,246,0.1));
  color: var(--info-700, #1d4ed8);
}

/* [REMOVED] Duplicate .empty-state — already defined at line ~975.
   Icon/h4/p sub-rules merged into the main definition. */
