:root {
  --brand: #2557a7;
  --brand-dark: #1b3f7a;
}

body {
  background: #f4f6f9;
}

.app-navbar {
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
}

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.login-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 0.25rem;
}

.stat-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-left: 4px solid var(--brand);
  height: 100%;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.stat-card .stat-label {
  color: #6c757d;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.stat-card.warn { border-left-color: #e5a93b; }
.stat-card.danger { border-left-color: #d8432e; }
.stat-card.good { border-left-color: #2e9e5b; }

.card-panel {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 1.5rem;
}

.status-hot { background: #d8432e; }
.status-warm { background: #e5a93b; color: #212529; }
.status-cold { background: #6c8ebf; }
.status-converted { background: #2e9e5b; }
.status-lost { background: #6c757d; }

.table-leads td, .table-leads th {
  vertical-align: middle;
}

.followup-overdue {
  color: #d8432e;
  font-weight: 600;
}

.followup-today {
  color: #b8860b;
  font-weight: 600;
}

/* Funnel view */
.funnel-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.funnel-label {
  width: 140px;
  flex-shrink: 0;
  font-size: 0.85rem;
  color: #495057;
}
.funnel-bar-track {
  flex: 1;
  background: #eef1f5;
  border-radius: 6px;
  height: 28px;
  overflow: hidden;
}
.funnel-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  padding-right: 8px;
  min-width: 2.5rem;
  border-radius: 6px;
  white-space: nowrap;
}

/* Quotation / WhatsApp */
.btn-whatsapp {
  background: #25D366;
  border-color: #25D366;
  color: #fff;
}
.btn-whatsapp:hover {
  background: #1ebe5a;
  border-color: #1ebe5a;
  color: #fff;
}

/* One-tap call-result / quality chips */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  border: 2px solid #dfe4ea;
  background: #fff;
  color: #495057;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s ease;
}
.chip:hover { border-color: var(--brand); }
.chip.selected {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.chip.chip-danger { border-color: #e3b3ac; color: #a83226; }
.chip.chip-danger.selected { background: #d8432e; border-color: #d8432e; color: #fff; }

.script-panel {
  background: #fff8e6;
  border: 1px solid #f0dca0;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: #6b5518;
  white-space: pre-wrap;
}

/* Mobile: bigger tap targets for telecallers working from a phone */
@media (max-width: 767.98px) {
  .card-panel { padding: 1rem; }
  .stat-card { padding: 1rem; }
  .stat-card .stat-value { font-size: 1.5rem; }
  .btn, .form-select, .form-control { font-size: 1rem; }
  .btn { min-height: 44px; }
  .funnel-label { width: 100px; font-size: 0.75rem; }
}
