/* ================================================================
   KeytoHome Phase 4 — Additional Styles
   Add/merge into assets/css/admin.css and main.css as noted
   ================================================================ */

/* ── KANBAN PIPELINE ────────────────────────────────────────── */
.kanban-board            { padding-bottom: 1rem; }
.kanban-col              { display: flex; flex-direction: column; }
.kanban-col-head         { padding: .5rem .25rem; }
.kanban-cards            { flex: 1; }
.kanban-card             { transition: box-shadow .15s, transform .1s; }
.kanban-card:hover       { box-shadow: 0 6px 18px rgba(0,0,0,.1)!important; }
.kanban-card.dragging    { opacity: .5; transform: rotate(2deg); cursor: grabbing; }
.kanban-col.drag-over .kanban-cards {
  background: #eff6ff !important;
  border-color: #2563eb !important;
}

/* ── LEAD SCORE BAR ─────────────────────────────────────────── */
.score-bar               { height: 5px; border-radius: 3px; }
.score-label             { font-size: 11px; font-weight: 600; }

/* ── CROSS-SELL TASKS ────────────────────────────────────────── */
.cst-card                { border-left: 4px solid; border-radius: 8px; }
.cst-status-pending      { border-left-color: #F59E0B; }
.cst-status-contacted    { border-left-color: #2563EB; }
.cst-status-interested   { border-left-color: #059669; }
.cst-status-converted    { border-left-color: #7C3AED; }
.cst-status-lost         { border-left-color: #9CA3AF; }

/* ── VERIFIED BADGE (frontend property cards) ────────────────── */
.badge-verified {
  background: linear-gradient(135deg, #1B3A6B 0%, #2563EB 100%);
  color: #fff;
  font-size: 10px;
  letter-spacing: .3px;
  padding: 3px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.badge-verified i { font-size: 11px; }

/* Property card verified overlay */
.prop-card .badge-verified {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}

/* ── COMPARE FLOATER BAR ─────────────────────────────────────── */
#compareBar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #1B3A6B;
  color: #fff;
  padding: 10px 16px;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 -4px 16px rgba(0,0,0,.2);
  transform: translateY(0);
  transition: transform .25s;
}
#compareBar.d-none { transform: translateY(100%); display: flex !important; }
#compareBar .compare-count { font-size: 13px; opacity: .85; }

/* ── EMI CALCULATOR ──────────────────────────────────────────── */
#emiCalc .card-header        { border-radius: 12px 12px 0 0!important; }
#emiCalc .form-range          { accent-color: #2563EB; }
#emiCalc .progress-bar        { transition: width .4s ease; }

/* ── CAMPAIGN MANAGER ────────────────────────────────────────── */
.camp-status-draft         { background: #6B7280; }
.camp-status-approved      { background: #2563EB; }
.camp-status-scheduled     { background: #7C3AED; }
.camp-status-sending       { background: #0891B2; }
.camp-status-sent          { background: #059669; }
.camp-status-cancelled     { background: #DC2626; }

.wa-preview-phone {
  background: #1a1a2e;
  border-radius: 20px;
  padding: 12px;
  max-width: 300px;
  margin: 0 auto;
}
.wa-preview-bubble {
  background: #dcf8c6;
  border-radius: 12px 12px 0 12px;
  padding: 10px 14px;
  font-size: 12px;
  font-family: sans-serif;
  white-space: pre-wrap;
  color: #111;
  line-height: 1.5;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}

/* ── LEADERBOARD ─────────────────────────────────────────────── */
.podium-card {
  border-radius: 12px;
  transition: transform .2s;
}
.podium-card:hover { transform: translateY(-3px); }

/* ── FRESHNESS REPORT ────────────────────────────────────────── */
.freshness-critical  { border-left: 4px solid #DC2626; }
.freshness-warning   { border-left: 4px solid #D97706; }
.freshness-ok        { border-left: 4px solid #059669; }

/* ── FOLLOW-UP TIMELINE ──────────────────────────────────────── */
.timeline-step       { position: relative; }
.timeline-step::before {
  content: '';
  position: absolute;
  left: 22px; top: 100%;
  width: 2px; height: 100%;
  background: #e2e8f0;
}
.timeline-step:last-child::before { display: none; }

/* ── MORNING SUMMARY CARD ────────────────────────────────────── */
.morning-card {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
}

/* ── RESPONSIVE ADJUSTMENTS ──────────────────────────────────── */
@media (max-width: 767px) {
  .kanban-board     { flex-direction: column; }
  .kanban-col       { width: 100% !important; margin-bottom: 1rem; }
  #compareBar       { flex-direction: column; gap: 6px; }
  .wa-preview-phone { max-width: 100%; }
}
