:root {
  --primary-color: #0d6efd;
  --sidebar-width: 250px;
  --bg-light: #f4f6f9;
  --card-radius: 12px;
}

body {
  background-color: var(--bg-light);
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #333;
}

/* Mobile Friendly Cards & Elements */
.card {
  border: none;
  border-radius: var(--card-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card {
  border-left: 4px solid var(--primary-color);
}

.metric-card.urgent {
  border-left-color: #dc3545;
  background-color: #fff5f5;
}

.metric-card.success {
  border-left-color: #198754;
}

.metric-card.warning {
  border-left-color: #ffc107;
}

/* Quick Action Buttons for Mobile */
.action-btn-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.1rem;
}

.btn-whatsapp {
  background-color: #25d366;
  color: #fff;
}
.btn-whatsapp:hover {
  background-color: #1eb956;
  color: #fff;
}

.btn-call {
  background-color: #0d6efd;
  color: #fff;
}
.btn-call:hover {
  background-color: #0b5ed7;
  color: #fff;
}

/* Timeline Layout */
.timeline-list {
  position: relative;
  list-style: none;
  padding-left: 20px;
}

.timeline-list::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 6px;
  width: 2px;
  background: #dee2e6;
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 2px solid #fff;
}

/* Responsive Table Wrapper */
.table-responsive {
  border-radius: var(--card-radius);
  background: #fff;
}

/* Mobile Bottom Navigation Bar */
@media (max-width: 768px) {
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1040;
  }
  
  .mobile-bottom-nav a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .mobile-bottom-nav a i {
    font-size: 1.25rem;
    margin-bottom: 2px;
  }

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

  body {
    padding-bottom: 75px;
  }
}
/* ====================================================
   PIPELINE COLORFUL & CLICKABLE CARDS
   ==================================================== */
.pipeline-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.pipeline-card {
  position: relative;
  border-radius: 12px;
  padding: 16px 12px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 105px;
}

.pipeline-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.pipeline-card .icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 8px;
  transition: transform 0.2s ease;
}

.pipeline-card:hover .icon-box {
  transform: scale(1.15);
}

.pipeline-card .count-badge {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.pipeline-card .stage-name {
  font-size: 0.82rem;
  font-weight: 650;
  color: #495057;
  text-align: center;
  white-space: nowrap;
}

/* Individual Stage Color Palettes (Border + Icon + Text Accents) */
.stage-new-lead {
  border-bottom: 4px solid #0d6efd;
}
.stage-new-lead .icon-box { background: rgba(13, 110, 253, 0.12); color: #0d6efd; }
.stage-new-lead .count-badge { color: #0d6efd; }

.stage-contacted {
  border-bottom: 4px solid #6f42c1;
}
.stage-contacted .icon-box { background: rgba(111, 66, 193, 0.12); color: #6f42c1; }
.stage-contacted .count-badge { color: #6f42c1; }

.stage-interested {
  border-bottom: 4px solid #fd7e14;
}
.stage-interested .icon-box { background: rgba(253, 126, 20, 0.12); color: #fd7e14; }
.stage-interested .count-badge { color: #fd7e14; }

.stage-property-shared {
  border-bottom: 4px solid #0dcaf0;
}
.stage-property-shared .icon-box { background: rgba(13, 202, 240, 0.15); color: #0aa2c0; }
.stage-property-shared .count-badge { color: #0aa2c0; }

.stage-site-visit {
  border-bottom: 4px solid #d63384;
}
.stage-site-visit .icon-box { background: rgba(214, 51, 132, 0.12); color: #d63384; }
.stage-site-visit .count-badge { color: #d63384; }

.stage-negotiation {
  border-bottom: 4px solid #ffc107;
}
.stage-negotiation .icon-box { background: rgba(255, 193, 7, 0.18); color: #b78103; }
.stage-negotiation .count-badge { color: #b78103; }

.stage-booking {
  border-bottom: 4px solid #20c997;
}
.stage-booking .icon-box { background: rgba(32, 201, 151, 0.15); color: #198754; }
.stage-booking .count-badge { color: #198754; }

.stage-closed {
  border-bottom: 4px solid #198754;
}
.stage-closed .icon-box { background: rgba(25, 135, 84, 0.15); color: #198754; }
.stage-closed .count-badge { color: #198754; }