/* ==========================================================================
   InamX Digital — CRM & Lead Management Admin Dashboard Stylesheet
   Theme: High-Performance Executive Dashboard
   Palette: Deep Onyx, Crisp Card Whites, Warm Canvas & Electric Neon Green
   Font: Plus Jakarta Sans & Outfit
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  /* Canvas Backgrounds */
  --bg-app: #F4F3EE;
  --bg-header: #0F1117;
  --bg-sidebar: #FFFFFF;
  --bg-main: #F4F3EE;
  --bg-card: #FFFFFF;
  --bg-card-dark: #12141A;
  --bg-card-hover: #FAF9F5;
  --bg-pill: #ECEAE4;
  --bg-pill-active: #12141A;
  --bg-input: #FFFFFF;

  /* Brand Accents */
  --neon-green: #00FF66;
  --neon-green-dark: #00c853;
  --neon-glow: rgba(0, 255, 102, 0.25);
  --neon-subtle: rgba(0, 255, 102, 0.12);
  --neon-border: rgba(0, 255, 102, 0.35);

  /* Primary Dark */
  --color-primary: #12141A;
  --color-primary-light: #20242D;
  --color-primary-hover: #2D3340;

  /* Text Colors */
  --text-dark: #12141A;
  --text-body: #474A54;
  --text-muted: #7D8290;
  --text-light: #A5ABB8;
  --text-white: #FFFFFF;

  /* Borders */
  --border-subtle: #E5E3DC;
  --border-card: #EAE8E1;
  --border-dark: #262A35;

  /* Status Colors */
  --status-new: #3B82F6;
  --status-new-bg: #EFF6FF;
  --status-negotiation: #F59E0B;
  --status-negotiation-bg: #FEF3C7;
  --status-offer: #8B5CF6;
  --status-offer-bg: #F5F3FF;
  --status-closed: #10B981;
  --status-closed-bg: #ECFDF5;
  --status-danger: #EF4444;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.09);
  --shadow-modal: 0 25px 60px rgba(18, 20, 26, 0.25);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-pill: 9999px;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Box Model */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: var(--bg-app);
  font-family: var(--font-main);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ==========================================================================
   1. Executive Top Navigation Bar
   ========================================================================== */
.app-topbar {
  width: 100%;
  height: 68px;
  background-color: var(--bg-header);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.topbar-logo-emblem {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0, 255, 102, 0.15) 0%, rgba(0, 0, 0, 0.5) 100%);
  border: 1.5px solid var(--neon-green);
  border-radius: 10px;
  box-shadow: 0 0 12px var(--neon-glow);
}

.topbar-brand-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #FFFFFF;
}

.topbar-brand-name span {
  color: var(--neon-green);
}

.topbar-badge-tag {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: #B5B9C5;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-return-site {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #B5B9C5;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.btn-return-site:hover {
  color: var(--neon-green);
  background: rgba(0, 255, 102, 0.08);
  border-color: var(--neon-border);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.sync-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem;
  background: rgba(0, 255, 102, 0.1);
  border: 1px solid var(--neon-border);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: #8BFFB5;
}

.sync-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  animation: syncPulse 2s infinite ease-in-out;
}

@keyframes syncPulse {
  0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 4px var(--neon-green); }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px var(--neon-green); }
  100% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 4px var(--neon-green); }
}

.user-profile-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.3rem 0.75rem 0.3rem 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--neon-green);
}

.user-meta-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: #FFFFFF;
}

.user-meta-role {
  font-size: 0.72rem;
  color: #9CA3AF;
  display: block;
  line-height: 1.1;
}

/* ==========================================================================
   2. Full Page Layout: Sidebar + Main Content
   ========================================================================== */
.app-layout-container {
  display: flex;
  width: 100%;
  min-height: calc(100vh - 68px);
}

/* Left Sidebar */
.app-sidebar {
  width: 260px;
  min-width: 260px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 1.25rem 0 0.6rem 0.5rem;
}

.sidebar-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  list-style: none;
}

.sidebar-nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-body);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.sidebar-nav-btn:hover {
  background-color: var(--bg-pill);
  color: var(--text-dark);
}

.sidebar-nav-btn.active {
  background-color: var(--bg-pill-active);
  color: var(--text-white);
  box-shadow: var(--shadow-sm);
}

.sidebar-nav-btn.active svg {
  stroke: var(--neon-green);
}

.nav-btn-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-btn-content svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  flex-shrink: 0;
}

.sidebar-count-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--bg-pill);
  color: var(--text-dark);
}

.sidebar-nav-btn.active .sidebar-count-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

/* Marketing Services List */
.service-track-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.service-track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-body);
  cursor: pointer;
  transition: var(--transition);
}

.service-track-item:hover {
  background-color: var(--bg-pill);
  color: var(--text-dark);
}

.service-track-item.active {
  background: rgba(0, 255, 102, 0.1);
  color: #0c7233;
  font-weight: 700;
}

.service-track-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-dot-badge {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Sidebar Footer */
.sidebar-footer-box {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  margin-top: 1.5rem;
}

.sidebar-contact-card {
  background: #FAF9F5;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sidebar-contact-title {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sidebar-contact-card a {
  color: #0f853e;
  text-decoration: none;
  font-weight: 600;
}

/* ==========================================================================
   3. Main Content Area
   ========================================================================== */
.app-main-content {
  flex: 1;
  padding: 1.75rem 2.25rem;
  overflow-y: auto;
  max-width: 1600px;
}

/* Top Controls & Action Bar */
.controls-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.search-container {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 420px;
}

.search-icon-svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-main-input {
  width: 100%;
  height: 44px;
  padding: 0 1rem 0 2.6rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text-dark);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.search-main-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(18, 20, 26, 0.08);
}

.controls-actions-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* Dropdown Filters */
.filter-dropdown-select {
  height: 42px;
  padding: 0 1rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  outline: none;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.filter-dropdown-select:hover {
  background-color: var(--bg-pill);
  border-color: #D6D3C8;
}

.filter-dropdown-select:focus {
  border-color: var(--color-primary);
}

/* Buttons and Filter Pills */
.btn-control-pill {
  height: 42px;
  padding: 0 1.1rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.btn-control-pill:hover {
  background-color: var(--bg-pill);
  border-color: #D6D3C8;
}

.btn-control-pill.active {
  background-color: var(--color-primary);
  color: var(--text-white);
  border-color: var(--color-primary);
}

.btn-control-pill.active svg {
  stroke: var(--neon-green);
}

/* View Switcher */
.view-toggle-group {
  display: flex;
  background: #EAE8E1;
  padding: 3px;
  border-radius: var(--radius-pill);
}

.btn-view-toggle {
  height: 36px;
  padding: 0 0.85rem;
  border: none;
  background: transparent;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.btn-view-toggle.active {
  background-color: var(--bg-card);
  color: var(--text-dark);
  box-shadow: var(--shadow-xs);
}

/* Primary Action Button (+ Add Lead) */
.btn-primary-action {
  height: 42px;
  padding: 0 1.25rem;
  background-color: var(--color-primary);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(18, 20, 26, 0.2);
  transition: var(--transition);
}

.btn-primary-action:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(18, 20, 26, 0.25);
}

.btn-primary-action .plus-icon {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--neon-green);
}

/* ==========================================================================
   4. Marketing Analytics & KPI Row
   ========================================================================== */
.analytics-grid-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (max-width: 1200px) {
  .analytics-grid-row {
    grid-template-columns: 1fr 1fr;
  }
}

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

.metric-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  padding: 1.25rem;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.metric-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: #D6D3C8;
}

/* Chart Box: Inquiries Inflow */
.chart-box-inquiries {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  padding: 1.25rem;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chart-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.chart-title-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
}

.chart-badge-total {
  font-size: 0.76rem;
  font-weight: 700;
  color: #0f853e;
  background: var(--neon-subtle);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
}

.bar-chart-container {
  display: flex;
  align-items: flex-end;
  height: 100px;
  gap: 1rem;
  padding-top: 0.5rem;
}

.bar-chart-y-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-light);
  padding-bottom: 1.4rem;
}

.bar-columns-track {
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: flex-end;
  height: 100%;
}

.bar-group-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.bar-pillars-stack {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 80px;
}

.bar-pillar {
  width: 9px;
  border-radius: 4px 4px 0 0;
  transition: height 0.5s ease-out;
}

.pillar-dark {
  background-color: var(--color-primary);
}

.pillar-green {
  background-color: var(--neon-green-dark);
}

.pillar-striped {
  background: repeating-linear-gradient(
    45deg,
    #D2CFC7,
    #D2CFC7 2px,
    #E8E6DF 2px,
    #E8E6DF 5px
  );
}

.bar-day-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Gauge Box: Strategy Call Win Rate */
.gauge-metric-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.radial-gauge-svg {
  width: 150px;
  height: 85px;
  overflow: visible;
}

.gauge-pct-display {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  fill: var(--text-dark);
  text-anchor: middle;
}

.gauge-caption-text {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 0.25rem;
}

.gauge-sub-caption {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Big Stat Boxes */
.stat-box-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.stat-box-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-trend-up {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #0f853e;
  background: var(--neon-subtle);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   5. Kanban Pipeline Board View
   ========================================================================== */
.kanban-board-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 1200px) {
  .kanban-board-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .kanban-board-container {
    grid-template-columns: 1fr;
  }
}

.kanban-column {
  background-color: transparent;
  display: flex;
  flex-direction: column;
}

.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.25rem 0.85rem 0.25rem;
}

.kanban-col-title {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kanban-count-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-body);
  background: var(--bg-pill);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.col-cards-track {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  padding: 0.25rem;
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease;
}

.col-cards-track.drag-over {
  background-color: rgba(229, 227, 220, 0.7);
  outline: 2px dashed #B8B4A8;
}

/* Lead Cards */
.lead-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  box-shadow: var(--shadow-xs);
  cursor: grab;
  position: relative;
  transition: var(--transition);
}

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

.lead-card:active {
  cursor: grabbing;
}

.badge-live-website {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #0c7233;
  background: var(--neon-subtle);
  border: 1px solid var(--neon-border);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.65rem;
}

.badge-live-website .pulse {
  width: 6px;
  height: 6px;
  background-color: var(--neon-green-dark);
  border-radius: 50%;
  display: inline-block;
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.card-customer-name {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
}

.card-action-dot-btn {
  background: transparent;
  border: none;
  font-size: 1.15rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 0.25rem;
  border-radius: var(--radius-xs);
  line-height: 1;
}

.card-action-dot-btn:hover {
  color: var(--text-dark);
  background: var(--bg-pill);
}

.card-service-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  color: #1E40AF;
  background: #EFF6FF;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
  margin-bottom: 0.65rem;
}

.card-desc-notes {
  font-size: 0.84rem;
  color: var(--text-body);
  line-height: 1.45;
  margin-bottom: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-contact-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.btn-card-quick-contact {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-xs);
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.btn-quick-wa {
  background: #DCFCE7;
  color: #166534;
}

.btn-quick-wa:hover {
  background: #BBF7D0;
}

.btn-quick-call {
  background: var(--bg-pill);
  color: var(--text-dark);
}

.btn-quick-call:hover {
  background: #DCD9D0;
}

.card-footer-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.card-budget-tag {
  font-weight: 700;
  color: var(--text-dark);
}

/* Dark Highlight Card (Featured / High Priority) */
.lead-card-highlight {
  background-color: var(--bg-card-dark);
  color: #FFFFFF;
  border-color: #2D3340;
  box-shadow: var(--shadow-md);
}

.lead-card-highlight .card-customer-name {
  color: #FFFFFF;
}

.lead-card-highlight .card-desc-notes {
  color: #C1C6D4;
}

.lead-card-highlight .card-action-dot-btn {
  color: #8E94A5;
}

.lead-card-highlight .card-action-dot-btn:hover {
  color: #FFFFFF;
  background: #232733;
}

.lead-card-highlight .card-budget-tag {
  color: var(--neon-green);
}

.lead-card-highlight .card-contact-strip {
  border-color: #262B37;
}

.lead-card-highlight .btn-quick-call {
  background: #232733;
  color: #FFFFFF;
}

/* ==========================================================================
   6. Data Table View (Full CRM List)
   ========================================================================== */
.table-view-container {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  display: none;
}

.table-view-container.active {
  display: block;
}

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

.leads-table th {
  background-color: #FAF9F5;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.leads-table td {
  padding: 1.05rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-body);
  vertical-align: middle;
}

.leads-table tr:hover td {
  background-color: #FCFBF8;
}

.table-client-title {
  font-weight: 700;
  color: var(--text-dark);
  display: block;
}

.table-client-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.status-dropdown-pill {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  outline: none;
  font-family: inherit;
}

.stage-contacted {
  background: var(--status-new-bg);
  color: var(--status-new);
  border-color: #BFDBFE;
}

.stage-negotiation {
  background: var(--status-negotiation-bg);
  color: var(--status-negotiation);
  border-color: #FDE68A;
}

.stage-offer-sent {
  background: var(--status-offer-bg);
  color: var(--status-offer);
  border-color: #DDD6FE;
}

.stage-deal-closed {
  background: var(--status-closed-bg);
  color: var(--status-closed);
  border-color: #A7F3D0;
}

/* ==========================================================================
   7. Modals & Dialogs
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(18, 20, 26, 0.65);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.modal-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  box-shadow: var(--shadow-modal);
  border: 1px solid var(--border-card);
  overflow: hidden;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  background: #FAF9F5;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
}

.btn-close-modal {
  background: transparent;
  border: none;
  font-size: 1.3rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  border-radius: var(--radius-xs);
}

.btn-close-modal:hover {
  color: var(--text-dark);
}

.modal-body {
  padding: 1.75rem;
  max-height: 80vh;
  overflow-y: auto;
}

.form-grid-modal {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-group-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label-field {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
}

.form-control-input, .form-control-select, .form-control-textarea {
  width: 100%;
  padding: 0.65rem 0.95rem;
  background-color: #FAF9F5;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.form-control-input:focus, .form-control-select:focus, .form-control-textarea:focus {
  outline: none;
  background-color: #FFFFFF;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(18, 20, 26, 0.08);
}

.modal-footer {
  padding: 1.15rem 1.75rem;
  border-top: 1px solid var(--border-subtle);
  background: #FAF9F5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.btn-modal-cancel {
  padding: 0.6rem 1.15rem;
  border: 1px solid var(--border-card);
  background: #FFFFFF;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
}

.btn-modal-submit {
  padding: 0.6rem 1.35rem;
  background: var(--color-primary);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.btn-modal-submit:hover {
  background: var(--color-primary-light);
}

/* ==========================================================================
   8. Toast Notification System
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast-item {
  background: #12141A;
  color: #FFFFFF;
  padding: 0.95rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--neon-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  font-size: 0.86rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: auto;
  animation: toastSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastSlideUp {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
