/* ── MIRA — Estilos globais ─────────────────────────────── */

:root {
  --mira-gold:   #f5a623;
  --mira-dark:   #1a1a2e;
  --mira-card:   #ffffff;
  --mira-bg:     #f4f6f9;
}

body {
  background: var(--mira-bg);
  font-size: 0.9rem;
  overflow-x: hidden;
}

/* ── Navbar ─────────────────────────────────────── */
.navbar-brand .text-warning {
  font-size: 1.3rem;
  letter-spacing: 2px;
}

/* ── Cards ──────────────────────────────────────── */
.card {
  border-radius: 10px;
}

.card-header {
  border-bottom: 1px solid #f0f0f0;
  border-radius: 10px 10px 0 0 !important;
  font-size: 0.85rem;
}

/* ── Score badge ─────────────────────────────────── */
.badge.fs-6 {
  font-size: 0.85rem !important;
  padding: 0.35em 0.65em;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ── Tabela de leads ─────────────────────────────── */
.table th {
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.table td {
  vertical-align: middle;
}

/* ── Progress bar ───────────────────────────────── */
.progress {
  border-radius: 10px;
  background: #e9ecef;
}

.progress-bar {
  border-radius: 10px;
  transition: width 0.6s ease;
}

/* ── Timeline (histórico) ────────────────────────── */
.timeline {
  position: relative;
  padding-left: 0;
}

.timeline .badge.rounded-circle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* ── Pre (mensagens) ─────────────────────────────── */
pre {
  font-size: 0.82rem;
  line-height: 1.6;
  max-height: 300px;
  overflow-y: auto;
}

/* ── Stat cards ──────────────────────────────────── */
.display-6 {
  font-size: 1.8rem;
  font-weight: 900;
}

/* ── Breakpoint extra para tabelas ───────────────── */
@media (max-width: 768px) {
  .table-responsive table {
    font-size: 0.78rem;
  }
  .navbar-brand small {
    display: none;
  }
}

/* ── Login page ──────────────────────────────────── */
.fw-black { font-weight: 900; }

/* ── Score breakdown chips ───────────────────────── */
.bg-light.rounded.px-2.py-1 {
  border: 1px solid #dee2e6;
  font-size: 0.78rem;
}

/* ── MiraTask — toast de progresso de tarefa background ── */
.mira-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: #1a1a2e;
  color: #fff;
  border-radius: 14px;
  padding: 16px 18px;
  width: 300px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  animation: miraToastIn 0.45s cubic-bezier(.34,1.56,.64,1) both;
}

.mira-toast.mira-toast-done {
  background: #0f5132;
}

@keyframes miraToastIn {
  from { opacity: 0; transform: translateY(24px) scale(0.93); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.mira-toast-icon {
  font-size: 1.2rem;
  line-height: 1;
  padding-top: 2px;
  flex-shrink: 0;
  color: var(--mira-gold);
}

.mira-toast-body {
  flex: 1;
  min-width: 0;
}

.mira-toast-title {
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.3;
}

.mira-toast-sub {
  font-size: 0.76rem;
  opacity: 0.65;
  margin-top: 3px;
}

.mira-toast-bar {
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  margin-top: 10px;
  overflow: hidden;
}

.mira-toast-fill {
  height: 100%;
  background: var(--mira-gold);
  border-radius: 3px;
  width: 0%;
}

.mira-toast-done .mira-toast-fill {
  background: #75b798;
}

.mira-toast-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.mira-toast-close:hover {
  color: rgba(255,255,255,0.8);
}
