/* ═══════════════════════════════════════════════════
   MPleads — style.css  v2.0
   ═══════════════════════════════════════════════════ */

/* ── BRAND ─────────────────────────────────────────── */
.brand-logo {
  display: flex;
  align-items: baseline;
  gap: 2px;
  width: fit-content;
}
.logo-mp {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #1a56db, #0e9f6e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}
.logo-leads {
  font-size: 1.5rem;
  font-weight: 300;
  color: #6b7280;
  letter-spacing: 1px;
}
.brand-logo-sm {
  display: flex;
  align-items: baseline;
  gap: 1px;
}
.logo-mp-sm {
  font-size: 1.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #1a56db, #0e9f6e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-leads-sm {
  font-size: 0.9rem;
  font-weight: 300;
  color: #6b7280;
}

/* ── LOGIN ─────────────────────────────────────────── */
.login-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #1a56db 0%, #0e9f6e 50%, #1a56db 100%);
  background-size: 400% 400%;
  animation: gradShift 10s ease infinite;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
@keyframes gradShift {
  0%  { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.login-card {
  background: rgba(255,255,255,0.97);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 440px;
  backdrop-filter: blur(10px);
}
[data-bs-theme="dark"] .login-card {
  background: rgba(17, 24, 39, 0.97);
  color: #f9fafb;
}

/* ── RESULT CARDS ──────────────────────────────────── */
.result-card {
  background: var(--bs-card-bg, #fff);
  border: 1.5px solid var(--bs-border-color, #e5e7eb);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.18s ease;
}
.result-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  border-color: #1a56db;
}
.result-card.selected {
  border-color: #1a56db;
  background: rgba(26, 86, 219, 0.06);
}
[data-bs-theme="dark"] .result-card {
  background: rgba(31, 41, 55, 0.8);
  border-color: rgba(75, 85, 99, 0.6);
}
[data-bs-theme="dark"] .result-card.selected {
  background: rgba(26, 86, 219, 0.15);
  border-color: #3b82f6;
}

/* ── STAT BOX ──────────────────────────────────────── */
.stat-box {
  background: var(--bs-tertiary-bg, #f8f9fa);
  border-radius: 10px;
  padding: 0.6rem 0.5rem;
  border: 1px solid var(--bs-border-color-translucent, #e5e7eb);
}
.stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}
.stat-label {
  font-size: 0.7rem;
  color: #6b7280;
  margin-top: 2px;
}

/* ── EXPORT BOX ────────────────────────────────────── */
.export-box {
  background: linear-gradient(135deg, rgba(14,159,110,0.08), rgba(26,86,219,0.08));
  border: 2px dashed #0e9f6e;
  border-radius: 14px;
}

/* ── MAP ───────────────────────────────────────────── */
#minimap {
  height: 260px;
  border-radius: 0 0 8px 8px;
}

/* ── MINI BOTÕES ───────────────────────────────────── */
.btn-xs {
  padding: 0.1rem 0.4rem;
  font-size: 0.75rem;
  border-radius: 5px;
}

/* ── SCROLLBAR SLIM ────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #9ca3af; border-radius: 3px; }

/* ── ANIMATIONS ────────────────────────────────────── */
.result-card {
  animation: fadeUp 0.25s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── TABLE ─────────────────────────────────────────── */
.table > :not(caption) > * > * {
  padding: 0.4rem 0.6rem;
}

/* ── BADGES NAVBAR ─────────────────────────────────── */
.bg-primary-subtle {
  background-color: rgba(26, 86, 219, 0.12) !important;
}
.bg-success-subtle {
  background-color: rgba(14, 159, 110, 0.12) !important;
}

/* ── DARK TWEAKS ───────────────────────────────────── */
[data-bs-theme="dark"] .export-box {
  background: linear-gradient(135deg, rgba(14,159,110,0.12), rgba(26,86,219,0.12));
}
[data-bs-theme="dark"] .stat-box {
  background: rgba(31, 41, 55, 0.6);
  border-color: rgba(75, 85, 99, 0.4);
}

/* ── QUICK TYPE BUTTONS ────────────────────────────── */
.btn-outline-secondary.btn-xs {
  border-color: var(--bs-border-color);
  font-size: 0.72rem;
}
.btn-outline-secondary.btn-xs:hover {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff;
}

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 576px) {
  .login-card { margin: 1rem; padding: 1.5rem 1rem; }
  #minimap    { height: 200px; }
  .stat-num   { font-size: 1.3rem; }
}
