/* =========================================================================
   Secura Web Admin Panel — Premium Enterprise Design System
   ========================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Design Tokens ── */
:root {
  /* Primary brand palette */
  --primary: #1a6dff;
  --primary-hover: #0052d4;
  --primary-light: #ebf3ff;
  --primary-50: #f0f6ff;

  /* Surfaces & backgrounds */
  --surface: #f5f7fa;
  --surface-raised: #f9fafb;
  --card: #ffffff;
  --body-bg: #f0f2f5;

  /* Text hierarchy */
  --text-main: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --text-light: #9ca3af;

  /* Borders */
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --border-focus: #93bbfd;

  /* Sidebar / Royal Dark */
  --royal-dark: #0b1929;
  --royal-dark-hover: #142640;
  --royal-dark-active: #1b3352;

  /* Accent Orange */
  --accent-orange: #f97316;
  --accent-orange-hover: #ea580c;
  --accent-orange-light: #fff7ed;
  --accent-orange-50: #fff3e0;

  /* Status palette */
  --status-start: #6366f1;
  --status-inprogress: #f59e0b;
  --status-closed: #10b981;
  --status-inactive: #94a3b8;
  --status-lost: #ef4444;

  --status-start-bg: #eef2ff;
  --status-inprogress-bg: #fef3c7;
  --status-closed-bg: #d1fae5;
  --status-inactive-bg: #f1f5f9;
  --status-lost-bg: #fee2e2;

  /* Elevation system */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 50px -12px rgba(0,0,0,0.15);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: all 0.2s var(--ease-out);
  --transition-slow: all 0.35s var(--ease-out);

  /* Spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  background-color: var(--body-bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Typography ── */
a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--primary-hover);
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  letter-spacing: -0.01em;
}

::selection {
  background-color: var(--primary);
  color: #fff;
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }


/* =========================================================================
   LAYOUT — Shell Framework
   ========================================================================= */

.app-container {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
  width: 260px;
  background: linear-gradient(180deg, #0d1f35 0%, #0b1929 50%, #081420 100%);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: var(--transition-slow);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-brand {
  padding: 20px 20px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.sidebar-brand img {
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  padding: 2px;
}

.sidebar-menu {
  list-style: none;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: rgba(148, 163, 184, 0.9);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  position: relative;
  letter-spacing: 0.01em;
}

.sidebar-link:hover {
  color: #ffffff;
  background-color: rgba(255,255,255,0.06);
}

.sidebar-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(26, 109, 255, 0.2) 0%, rgba(26, 109, 255, 0.1) 100%);
}

.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--primary);
}

.sidebar-link svg {
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: var(--radius-md);
  background-color: rgba(255,255,255,0.04);
  transition: var(--transition);
  flex-shrink: 0;
}

.sidebar-link.active svg,
.sidebar-link:hover svg {
  background-color: var(--accent-orange);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.sidebar-user-name {
  font-weight: 600;
  color: #f1f5f9;
  font-size: 0.9rem;
}

/* ── Main Area ── */
.main-wrapper {
  margin-left: 260px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--body-bg);
}

/* ── Top Header Bar ── */
.header {
  height: 60px;
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg);
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: var(--shadow-xs);
}

.header-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

/* ── Content Body ── */
.content-body {
  padding: var(--space-lg);
  flex-grow: 1;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

/* ── Mobile Bottom Nav ── */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: var(--card);
  border-top: 1px solid var(--border);
  z-index: 100;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -1px 12px rgba(0,0,0,0.06);
  backdrop-filter: blur(12px);
}

.mobile-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 500;
  gap: 3px;
  flex: 1;
  height: 100%;
  transition: var(--transition);
}

.mobile-nav-link.active {
  color: var(--primary);
}

.mobile-nav-link svg {
  width: 20px;
  height: 20px;
}


/* =========================================================================
   RESPONSIVE — Mobile Breakpoints
   ========================================================================= */

@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .main-wrapper {
    margin-left: 0;
    padding-bottom: 60px;
  }
  .mobile-nav {
    display: flex;
  }
}


/* =========================================================================
   CARD — Primary Content Container
   ========================================================================= */

.card {
  background-color: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  transition: var(--transition);
}

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

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--text-main);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}


/* =========================================================================
   BUTTONS — Action Elements
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  min-height: 40px;
  font-family: var(--font-sans);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #1a6dff 0%, #0052d4 100%);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(26, 109, 255, 0.2);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #0052d4 0%, #003eb3 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 109, 255, 0.25);
}

.btn-secondary {
  background-color: var(--card);
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-secondary:hover {
  background-color: var(--surface);
  color: var(--text-main);
  border-color: #cbd5e1;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
}
.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-sm {
  min-height: 34px;
  padding: 5px 12px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: none;
}
.btn-ghost:hover {
  background-color: var(--surface);
  color: var(--text-main);
}


/* =========================================================================
   STATUS BADGES
   ========================================================================= */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-start { background-color: var(--status-start-bg); color: var(--status-start); }
.badge-inprogress { background-color: var(--status-inprogress-bg); color: #b45309; }
.badge-closed { background-color: var(--status-closed-bg); color: #047857; }
.badge-inactive { background-color: var(--status-inactive-bg); color: var(--status-inactive); }
.badge-lost { background-color: var(--status-lost-bg); color: var(--status-lost); }


/* =========================================================================
   FORM CONTROLS
   ========================================================================= */

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 6px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form-control {
  width: 100%;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  background-color: var(--card);
  color: var(--text-main);
  transition: var(--transition);
  min-height: 42px;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 109, 255, 0.1);
}

.form-control::placeholder {
  color: var(--text-light);
}

.form-feedback {
  font-size: 0.8rem;
  margin-top: 4px;
  color: var(--status-lost);
  font-weight: 500;
}


/* =========================================================================
   DASHBOARD — Statistics Grid
   ========================================================================= */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.stat-card {
  background-color: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-change {
  font-size: 0.78rem;
  font-weight: 600;
}
.stat-change.up { color: var(--status-closed); }
.stat-change.down { color: var(--status-lost); }


/* =========================================================================
   KANBAN PIPELINE BOARD
   ========================================================================= */

.pipeline-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(240px, 1fr));
  gap: 14px;
  overflow-x: auto;
  align-items: start;
  padding-bottom: var(--space-md);
}

.pipeline-column {
  background-color: var(--surface-raised);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  border: 1px solid var(--border-light);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: var(--transition);
}

.pipeline-column:hover {
  background-color: var(--surface);
}

.column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px;
  margin-bottom: 4px;
}

.column-title {
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.column-count {
  background-color: var(--border);
  color: var(--text-muted);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
  min-width: 22px;
  text-align: center;
}


/* ── Lead Card (Kanban) ── */
.lead-card {
  background-color: var(--card);
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  cursor: grab;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lead-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-focus);
}

.lead-card.dragging {
  opacity: 0.6;
  transform: rotate(2deg);
}

.lead-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.lead-customer-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
  word-break: break-word;
  line-height: 1.3;
}

.lead-product {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.lead-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tag-pill {
  font-size: 0.65rem;
  font-weight: 600;
  background-color: var(--primary-50);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.lead-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 8px;
  margin-top: 2px;
}

.lead-assignee {
  font-weight: 600;
  color: var(--text-secondary);
}


/* =========================================================================
   FILTER BAR
   ========================================================================= */

.filter-bar {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  box-shadow: var(--shadow-xs);
}

.filter-item {
  flex: 1 1 180px;
}


/* =========================================================================
   TIMELINE & ACTIVITY FEED
   ========================================================================= */

.timeline {
  position: relative;
  padding-left: 28px;
  list-style: none;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-light), var(--border));
}

.timeline-item {
  position: relative;
  padding-bottom: 16px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -26px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border);
  border: 2px solid var(--card);
  box-shadow: 0 0 0 2px var(--border);
}

.timeline-item.status-change .timeline-marker {
  background-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.timeline-item.note-added .timeline-marker {
  background-color: var(--accent-orange);
  box-shadow: 0 0 0 2px var(--accent-orange-light);
}

.timeline-content {
  background-color: var(--surface-raised);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.timeline-actor {
  font-weight: 700;
  color: var(--text-secondary);
}

.timeline-body {
  font-size: 0.85rem;
  line-height: 1.5;
}


/* =========================================================================
   MODAL SYSTEM
   ========================================================================= */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(11, 25, 41, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  padding: var(--space-md);
}

.modal-card {
  background-color: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 480px;
  animation: modalReveal 0.3s var(--ease-out);
  overflow: hidden;
}

.modal-header {
  padding: 18px var(--space-lg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background-color: var(--surface);
  color: var(--text-main);
}

.modal-body {
  padding: var(--space-lg);
}

.modal-footer {
  padding: 14px var(--space-lg);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background-color: var(--surface-raised);
}

@keyframes modalReveal {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Mobile bottom-sheet */
@media (max-width: 768px) {
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .modal-card {
    max-width: 100%;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    animation: slideUp 0.35s var(--ease-out);
  }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ── Status Comment Modal ── */
#statusCommentModal .modal-card {
  max-width: 440px;
}

#statusCommentModal .status-change-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  font-size: 0.85rem;
  font-weight: 600;
}

#statusCommentModal .status-arrow {
  color: var(--text-light);
  font-size: 1.1rem;
}


/* =========================================================================
   TOAST NOTIFICATIONS
   ========================================================================= */

.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background-color: var(--card);
  color: var(--text-main);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  font-weight: 500;
  min-width: 260px;
  max-width: 380px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: toastIn 0.35s var(--ease-out);
  transition: var(--transition);
}

.toast-success { border-left-color: var(--status-closed); }
.toast-error { border-left-color: var(--status-lost); }
.toast-info { border-left-color: var(--primary); }

@keyframes toastIn {
  from { transform: translateX(100%) scale(0.95); opacity: 0; }
  to { transform: translateX(0) scale(1); opacity: 1; }
}


/* =========================================================================
   TAG INPUT COMPONENT
   ========================================================================= */

.tags-input-container {
  display: flex;
  flex-wrap: wrap;
  border: 1.5px solid var(--border);
  padding: 6px;
  border-radius: var(--radius-md);
  gap: 6px;
  background-color: var(--card);
  min-height: 44px;
  align-items: center;
  transition: var(--transition);
}

.tags-input-container:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 109, 255, 0.1);
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  gap: 6px;
}

.tag-chip-remove {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.tags-input-field {
  border: none;
  outline: none;
  flex: 1;
  min-width: 120px;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 4px 6px;
  background: transparent;
}


/* =========================================================================
   DEALER ROWS
   ========================================================================= */

.dealer-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: center;
}

.dealer-row .form-control {
  margin-bottom: 0;
  flex: 1;
}

.btn-remove-dealer {
  padding: 8px 12px;
  min-height: 44px;
  color: var(--status-lost);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.btn-remove-dealer:hover {
  background-color: var(--status-lost-bg);
  border-color: var(--status-lost);
}


/* =========================================================================
   TABLES
   ========================================================================= */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--card);
  margin-bottom: var(--space-lg);
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.table th, .table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-light);
}

.table th {
  background-color: var(--surface-raised);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.table tr:hover td {
  background-color: var(--primary-50);
}


/* =========================================================================
   LOGIN PAGE
   ========================================================================= */

.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: linear-gradient(135deg, #0b1929 0%, #142640 50%, #0d1f35 100%);
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 40px;
  background-color: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  animation: modalReveal 0.5s var(--ease-out);
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.01em;
}


/* =========================================================================
   SKELETON LOADERS
   ========================================================================= */

.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s ease infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-title { height: 22px; margin-bottom: 12px; width: 60%; }
.skeleton-card { height: 120px; border-radius: var(--radius-md); }

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


/* =========================================================================
   STICKY NOTES
   ========================================================================= */

.sticky-notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.sticky-note {
  color: #1e293b;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  min-height: 140px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
}

.sticky-note:hover {
  transform: translateY(-3px) rotate(-0.5deg);
  box-shadow: var(--shadow-lg);
}

.sticky-note-content {
  font-family: inherit;
  font-size: 0.9rem;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.45;
}

.sticky-note-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: #475569;
  margin-top: 8px;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 6px;
}

.sticky-note-delete {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.sticky-note-delete:hover {
  background-color: rgba(239, 68, 68, 0.1);
}


/* =========================================================================
   CHAT WORKSPACE
   ========================================================================= */

.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 150px);
  min-height: 500px;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.chat-header {
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--royal-dark) 0%, var(--royal-dark-hover) 100%);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.chat-messages {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background-color: var(--surface-raised);
}

.chat-message-item {
  display: flex;
  flex-direction: column;
  max-width: 68%;
}

.chat-message-item.self {
  align-self: flex-end;
}

.chat-message-item.other {
  align-self: flex-start;
}

.chat-message-bubble {
  padding: 10px 16px;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
}

.chat-message-item.self .chat-message-bubble {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

.chat-message-item.other .chat-message-bubble {
  background-color: var(--card);
  color: var(--text-main);
  border-bottom-left-radius: 2px;
  border: 1px solid var(--border);
}

.chat-message-meta {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 4px;
  display: flex;
  gap: 8px;
}

.chat-message-item.self .chat-message-meta {
  justify-content: flex-end;
}

.chat-message-input-area {
  padding: 14px var(--space-md);
  border-top: 1px solid var(--border);
  background-color: var(--card);
}

.chat-message-form {
  display: flex;
  gap: 10px;
}

.chat-mention-highlight {
  background-color: var(--accent-orange-light);
  color: var(--accent-orange);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85em;
}


/* =========================================================================
   NOTIFICATION BELL & DROPDOWN
   ========================================================================= */

.notification-wrapper {
  position: relative;
  display: inline-flex;
}

.notification-bell-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 8px;
  border-radius: var(--radius-md);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.notification-bell-btn:hover {
  background-color: var(--surface);
  color: var(--primary);
}

.notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: linear-gradient(135deg, var(--accent-orange) 0%, #ea580c 100%);
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--card);
  animation: pulse-badge 2s infinite ease-in-out;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.notification-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 6px;
  width: 340px;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  display: none;
  overflow: hidden;
  animation: dropdownReveal 0.2s var(--ease-out);
}

.notification-dropdown.show {
  display: block;
}

@keyframes dropdownReveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.notification-dropdown-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--surface-raised);
}

.notification-list {
  max-height: 300px;
  overflow-y: auto;
}

.notification-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: var(--transition);
  cursor: pointer;
  font-size: 0.82rem;
}

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

.notification-item.unread {
  background-color: var(--accent-orange-50);
  border-left: 3px solid var(--accent-orange);
}

.notification-item-text {
  color: var(--text-main);
  line-height: 1.4;
  font-weight: 500;
}

.notification-item-time {
  font-size: 0.7rem;
  color: var(--text-light);
  font-weight: 500;
}


/* =========================================================================
   SLIDING DRAWER (Lead Preview)
   ========================================================================= */

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(11, 25, 41, 0.45);
  backdrop-filter: blur(6px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  right: -560px;
  width: 520px;
  height: 100vh;
  background-color: var(--card);
  box-shadow: -8px 0 40px rgba(11, 25, 41, 0.15);
  z-index: 1100;
  transition: right 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
}

.drawer-overlay.open {
  right: 0;
}

@media (max-width: 576px) {
  .drawer-overlay {
    width: 100%;
    right: -100%;
  }
}

.drawer-header {
  padding: 16px var(--space-lg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--surface-raised) 0%, var(--surface) 100%);
  flex-shrink: 0;
}

.drawer-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  letter-spacing: -0.01em;
}

.drawer-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.drawer-close-btn:hover {
  background-color: var(--border);
  color: var(--text-main);
}

.drawer-body {
  padding: var(--space-lg);
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}


/* =========================================================================
   PROGRESS STEPS (Horizontal Pipeline Stepper)
   ========================================================================= */

.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 32px;
  position: relative;
  padding: 0 14px;
}

.progress-steps::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  height: 3px;
  background-color: var(--border);
  z-index: 1;
  border-radius: 2px;
}

.step-item {
  position: relative;
  z-index: 2;
  background-color: var(--card);
  border: 2.5px solid var(--border);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.7rem;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}

.step-item:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.1);
}

.step-item.active {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(26, 109, 255, 0.15);
}

.step-item.completed {
  border-color: var(--status-closed);
  background: linear-gradient(135deg, var(--status-closed) 0%, #059669 100%);
  color: #fff;
}

.step-item::after {
  content: attr(data-label);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text-light);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.step-item.active::after {
  color: var(--primary);
}

.step-item.completed::after {
  color: var(--status-closed);
}


/* =========================================================================
   AVATAR CIRCLE
   ========================================================================= */

.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-50) 100%);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  flex-shrink: 0;
}


/* =========================================================================
   MOBILE LIST VIEW (replaces Kanban on mobile)
   ========================================================================= */

.mobile-card-list {
  display: none;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 1024px) {
  .pipeline-board {
    display: none;
  }
  .mobile-card-list {
    display: flex;
  }
}


/* =========================================================================
   UTILITY & MICRO-ANIMATION HELPERS
   ========================================================================= */

/* Fade-in animation for page loads */
.content-body {
  animation: fadeInUp 0.4s var(--ease-out);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pulse animation for loading states */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Spin animation for spinners */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Focus ring utility */
.focus-ring:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 109, 255, 0.15);
}

/* =========================================================================
   SALESFORCE PATH (Chevron Pipeline Stepper)
   ========================================================================= */
.salesforce-path {
  display: flex;
  width: 100%;
  background-color: var(--border-light);
  border-radius: var(--radius-md);
  overflow-x: auto;
  overflow-y: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
}

.salesforce-path::-webkit-scrollbar {
  height: 4px;
}

.path-step {
  flex: 1;
  flex-shrink: 0;
  min-width: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 10px 12px 24px;
  background-color: #f1f5f9;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.8rem;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
  /* Chevron styling using clip-path */
  clip-path: polygon(calc(100% - 12px) 0%, 100% 50%, calc(100% - 12px) 100%, 0% 100%, 12px 50%, 0% 0%);
  margin-right: -10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.path-step:first-child {
  clip-path: polygon(calc(100% - 12px) 0%, 100% 50%, calc(100% - 12px) 100%, 0% 100%, 0% 0%);
  padding-left: 16px;
}

.path-step:last-child {
  clip-path: polygon(100% 0%, 100% 100%, 0% 100%, 12px 50%, 0% 0%);
  margin-right: 0;
}

/* Default state (uncompleted) */
.path-step-check {
  display: none;
  font-size: 0.95rem;
}

/* Completed state */
.path-step.completed {
  background-color: #d1fae5; /* soft green bg */
  color: #065f46; /* dark green text */
}

.path-step.completed .path-step-check {
  display: inline-block;
}

/* Active/Current state */
.path-step.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.path-step:hover {
  background-color: #e2e8f0;
}
.path-step.completed:hover {
  background-color: #a7f3d0;
}
.path-step.active:hover {
  opacity: 0.95;
}

/* =========================================================================
   PERSONAL WORKSPACE GRID
   ========================================================================= */
.personal-workspace-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

@media (max-width: 1024px) {
  .personal-workspace-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

/* Personal Note Cards */
.personal-note-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Payment Status Badges */
.badge-pending {
  background-color: var(--status-inactive-bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.badge-advance_paid {
  background-color: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.badge-fully_paid {
  background-color: var(--status-closed-bg);
  color: var(--status-closed);
  border: 1px solid #a7f3d0;
}

/* =========================================================================
   PREMIUM MEETALO & SALESFORCE UI EXTENSIONS
   ========================================================================= */

/* Top Metrics Cards Grid */
.crm-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.crm-metric-card {
  background-color: var(--card);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.crm-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.crm-metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--border);
}

.crm-metric-card.metric-primary::before { background-color: var(--primary); }
.crm-metric-card.metric-warning::before { background-color: var(--status-inprogress); }
.crm-metric-card.metric-success::before { background-color: var(--status-closed); }
.crm-metric-card.metric-danger::before { background-color: var(--status-lost); }

.crm-metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.crm-metric-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.crm-metric-trend {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.crm-metric-trend.up {
  color: #10b981;
  background-color: #d1fae5;
}

.crm-metric-trend.down {
  color: #ef4444;
  background-color: #fee2e2;
}

.crm-metric-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 4px;
}

.crm-metric-subtext {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 6px;
}

/* View switcher Tabs */
.crm-view-switch-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.view-tabs {
  display: flex;
  background-color: var(--border-light);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.view-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: none;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

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

.view-tab.active {
  background-color: var(--card);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.tab-icon {
  width: 15px;
  height: 15px;
}

/* Meetalo Table styling */
.meetalo-table-container {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  margin-bottom: 24px;
}

.meetalo-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.meetalo-table th {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background-color: var(--surface-raised);
}

.meetalo-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-secondary);
  vertical-align: middle;
}

.meetalo-table tbody tr {
  transition: var(--transition);
}

.meetalo-table tbody tr:hover {
  background-color: var(--surface-raised);
}

.meetalo-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary);
}

.meetalo-customer-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.meetalo-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(26, 109, 255, 0.1);
  text-transform: uppercase;
}

.meetalo-customer-details {
  display: flex;
  flex-direction: column;
}

.meetalo-customer-name {
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
}

.meetalo-customer-name:hover {
  color: var(--primary);
}

.meetalo-customer-email {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.meetalo-deal-size {
  font-weight: 700;
  color: var(--text-main);
}

.meetalo-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.meetalo-badge.badge-start {
  background-color: var(--status-start-bg);
  color: var(--status-start);
}

.meetalo-badge.badge-inprogress {
  background-color: var(--status-inprogress-bg);
  color: var(--status-inprogress);
}

.meetalo-badge.badge-closed {
  background-color: var(--status-closed-bg);
  color: var(--status-closed);
}

.meetalo-badge.badge-inactive {
  background-color: var(--status-inactive-bg);
  color: var(--status-inactive);
}

.meetalo-badge.badge-lost {
  background-color: var(--status-lost-bg);
  color: var(--status-lost);
}

/* Bottom Bulk actions toolbar (sleek black bar) */
.meetalo-bulk-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: #0b1929; /* Royal dark blue/black */
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s;
  opacity: 0;
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  font-weight: 500;
}

.meetalo-bulk-bar.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.bulk-count {
  background-color: var(--primary);
  color: white;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.bulk-divider {
  width: 1px;
  height: 18px;
  background-color: rgba(255, 255, 255, 0.2);
}

.bulk-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.bulk-btn:hover {
  color: #ffffff;
}

.bulk-btn-danger {
  color: #f87171;
}

.bulk-btn-danger:hover {
  color: #ef4444;
}

/* Kanban Cards Details updates */
.lead-card {
  position: relative;
  overflow: hidden;
  border-left: 3px solid transparent;
}

.lead-card[data-status-val="start"] { border-left-color: var(--status-start); }
.lead-card[data-status-val="inprogress"] { border-left-color: var(--status-inprogress); }
.lead-card[data-status-val="closed"] { border-left-color: var(--status-closed); }
.lead-card[data-status-val="inactive"] { border-left-color: var(--status-inactive); }
.lead-card[data-status-val="lost"] { border-left-color: var(--status-lost); }

/* Chevron paths on full lead page */
.path-step-label {
  white-space: nowrap;
}

