/* ================================================================
   Rentvala Phase 4 — Additional Styles (fully tokenized)
   All colours come from tokens.css.
   ================================================================ */

/* ── 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; background: var(--surface); }
.kanban-card:hover       { box-shadow: var(--sh-2)!important; }
.kanban-card.dragging    { opacity: .5; transform: rotate(2deg); cursor: grabbing; }
.kanban-col.drag-over .kanban-cards {
  background: var(--primary-l) !important;
  border-color: var(--primary) !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: var(--warning); }
.cst-status-contacted    { border-left-color: var(--primary); }
.cst-status-interested   { border-left-color: var(--success); }
.cst-status-converted    { border-left-color: var(--premium); }
.cst-status-lost         { border-left-color: var(--muted-2); }

/* ── VERIFIED BADGE (frontend property cards) ────────────────── */
.badge-verified {
  background: linear-gradient(135deg, var(--primary-dd) 0%, var(--primary-d) 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 (admin variant) ─────────────────────── */
#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: var(--primary-d); }
#emiCalc .progress-bar        { transition: width .4s ease; }

/* ── CAMPAIGN MANAGER ────────────────────────────────────────── */
.camp-status-draft         { background: var(--muted); }
.camp-status-approved      { background: var(--primary-d); }
.camp-status-scheduled     { background: var(--premium); }
.camp-status-sending       { background: var(--warning); }
.camp-status-sent          { background: var(--success); }
.camp-status-cancelled     { background: var(--muted-2); }

/* WhatsApp preview keeps its real-world colours in both themes */
.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 var(--danger); }
.freshness-warning   { border-left: 4px solid var(--warning); }
.freshness-ok        { border-left: 4px solid var(--success); }

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

/* ── MORNING SUMMARY CARD ────────────────────────────────────── */
.morning-card {
  background: linear-gradient(135deg, var(--primary-ll) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--primary-l);
  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%; }
}
