
/* LEADSBRASIL.APP - Demo UI (static) */
/* Reset & base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Helvetica Neue", sans-serif;
  background: #f5f7fb;
  color: #1f2937;
  -webkit-font-smoothing: antialiased;
}

/* Utilities */
.container { max-width: 1140px; margin: 0 auto; padding: 24px; }
.row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 980px) {
  .row { grid-template-columns: 2fr 1fr; }
}
.card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
  box-shadow: 0 2px 10px rgba(15,23,42,0.04);
}
.card-header { padding: 16px 18px; border-bottom: 1px solid #eef1f5; font-weight: 600; display:flex; align-items:center; gap:10px; }
.card-body { padding: 16px 18px; }
.card-footer { padding: 12px 18px; border-top: 1px solid #eef1f5; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: #ffffffcc; backdrop-filter: blur(8px);
  border-bottom: 1px solid #eceff5;
}
.header .inner { max-width: 1140px; margin: 0 auto; padding: 14px 24px; display:flex; align-items:center; justify-content:space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand .logo {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6); display:inline-flex; align-items:center; justify-content:center; color:#fff;
}
.header .actions { display:flex; align-items:center; gap:8px; }

/* Buttons */
.btn {
  appearance: none; border: 1px solid #e5e7eb; background: #fff; color: #111827;
  padding: 8px 12px; border-radius: 10px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(2,6,23,0.06); }
.btn:disabled { opacity:.6; cursor:not-allowed; transform:none; box-shadow:none; }
.btn-primary { background:#111827; color:#fff; border-color:#111827; }
.btn-green { background:#22c55e; color:#fff; border-color:#16a34a; }
.btn-red { background:#ef4444; color:#fff; border-color:#dc2626; }
.btn-outline { background:#fff; color:#111827; border-color:#cbd5e1; }
.btn-ghost { background:transparent; border-color:transparent; color:#111827; }

/* Inputs */
.input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid #dbe0ea;
  background: #fff; outline: none;
}
.input:focus { border-color:#3b82f6; box-shadow: 0 0 0 4px rgba(59,130,246,0.15); }
.searchbar { display:flex; align-items:center; gap:10px; }
.searchbar .input { flex:1; }
.searchbar .btn { height:42px; }

/* Small comps */
.badge {
  display:inline-flex; align-items:center; gap:6px; padding:3px 8px; border-radius:999px; font-size:12px; font-weight:700;
  border: 1px solid #e5e7eb; background:#f8fafc; color:#111827;
}
.badge.whatsapp { border-color:#22c55e; color:#065f46; background:#ecfdf5; }
.badge.gray { color:#334155; background:#f1f5f9; }

.meta { color:#475569; font-size: 14px; }
.mini { font-size:12px; color:#64748b; }
.small { font-size: 13px; color:#475569; }

/* Leads list */
.lead {
  display:grid; grid-template-columns: 28px 1fr auto; gap:14px; padding:14px 14px; border-bottom:1px solid #f1f5fb;
}
.lead:last-child { border-bottom:0; }
.lead .pic {
  width:56px; height:56px; border-radius:12px; overflow:hidden; background:#f1f5f9; display:flex; align-items:center; justify-content:center; border:2px solid #e5e7eb;
}
.lead .pic.green { border-color:#22c55e; }
.lead .pic img { width:100%; height:100%; object-fit:cover; }
.lead .title { font-weight:700; display:flex; align-items:center; gap:10px; }
.lead .grid { display:grid; gap:4px; }

.lead .right {
  text-align:right; white-space:nowrap; display:flex; align-items:center; gap:10px;
}
.star { color: #f59e0b; }
.link { color:#2563eb; text-decoration:none; }
.link:hover { text-decoration:underline; }

/* Sidebar right */
.stats-grid {
  display:grid; grid-template-columns: repeat(2, 1fr); gap:12px;
}
.stat {
  border:1px solid #e5e7eb; border-radius:14px; padding:12px; text-align:center; background:#fff;
}
.stat h3 { margin:0; font-size:26px; }
.stat p { margin:2px 0 0 0; font-size:12px; color:#64748b; }

/* Enviar para IA box */
.box-ia {
  border:2px dashed #22c55e; border-radius:16px; background:#f0fdf4;
}

/* Campaign controls */
.controls { display:flex; gap:10px; }
.status-pill { padding:6px 10px; background:#f1f5f9; border:1px solid #e5e7eb; border-radius:999px; font-weight:700; font-size:12px; }

/* Pagination */
.pagination { display:flex; justify-content:space-between; align-items:center; padding:10px 0 0; }
.pager { display:flex; gap:8px; align-items:center; }
.pager .btn { height:34px; padding:6px 10px; }

/* Login/Cadastro */
.auth-wrapper { min-height: 100vh; display:flex; align-items:center; justify-content:center; background: linear-gradient(135deg,#eef2ff, #f8fafc); }
.auth-card { width: 380px; background:#fff; border:1px solid #e5e7eb; border-radius:18px; box-shadow:0 20px 50px rgba(2,6,23,.08); padding:24px; }
.auth-title { font-weight:800; font-size:30px; text-align:center; margin-bottom:4px; }
.auth-sub  { text-align:center; color:#6b7280; margin-bottom:20px; }

/* Configs */
.tabs { display:flex; gap:8px; margin-bottom:10px; }
.tab { padding:8px 12px; border-radius:10px; background:#f1f5f9; border:1px solid #e5e7eb; cursor:pointer; font-weight:700; }
.tab.active { background:#111827; color:#fff; border-color:#111827; }
.form-grid { display:grid; gap:14px; }
.form-row { display:grid; gap:8px; }
label { font-size:13px; color:#334155; font-weight:700; }
textarea.input { min-height: 90px; resize: vertical; }

/* Helpers */
.hr { border-top:1px solid #eef1f5; margin:12px 0; }

/* Tiny icons */
.icon { width:16px; height:16px; display:inline-block; }



/* Search Area */
        .search-area {
            display: flex;
            gap: 10px;
            margin-bottom: 30px;
        }
        .search-area input {
            flex-grow: 1;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 16px;
        }
        .search-area button {
            padding: 12px 25px;
            background-color: #28a745;
            color: white;
            border: none;
            border-radius: 5px;
            font-size: 16px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }
        .search-area button:hover {
            background-color: #218838;
        }

/* Main Content Layout */
        .main-content {
            display: flex;
            gap: 20px;
        }
        .leads-section {
            flex: 2;
        }
        .prospect-section {
            flex: 1;
            background-color: #f8f9fa;
            padding: 20px;
            border-radius: 8px;
            box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
        }

        /* Leads List */
        .leads-list .lead-item {
            background-color: #fff;
            border: 1px solid #eee;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 15px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        }
        .leads-list .lead-item .checkbox {
            width: 20px;
            height: 20px;
            border: 1px solid #ccc;
            border-radius: 4px;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
        }
        .leads-list .lead-item .checkbox.checked {
            background-color: #007bff;
            border-color: #007bff;
            color: white;
        }
        .leads-list .lead-item .lead-info {
            flex-grow: 1;
        }
        .leads-list .lead-item .lead-info h3 {
            margin: 0 0 5px 0;
            font-size: 18px;
            color: #333;
        }
        .leads-list .lead-item .lead-info p {
            margin: 0;
            font-size: 14px;
            color: #666;
        }
        .leads-list .lead-item .whatsapp-icon {
            width: 24px;
            height: 24px;
            background-color: #25D366;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
            font-size: 16px;
            font-weight: bold;
        }
        .leads-list .lead-item .whatsapp-icon.fallback {
            background-color: #ccc;
        }
        .leads-list .lead-item .rating {
            font-size: 14px;
            color: #ffc107;
        }

        /* Prospect Section */
        .prospect-section h2 {
            margin-top: 0;
            color: #0056b3;
            font-size: 20px;
            margin-bottom: 20px;
        }
        .stats-panel {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin-bottom: 30px;
        }
        .stat-card {
            background-color: #e9ecef;
            padding: 15px;
            border-radius: 8px;
            text-align: center;
        }
        .stat-card .value {
            font-size: 24px;
            font-weight: bold;
            color: #007bff;
        }
        .stat-card .label {
            font-size: 14px;
            color: #666;
        }
        .send-area {
            border: 2px dashed #28a745;
            padding: 20px;
            border-radius: 8px;
            text-align: center;
            margin-bottom: 20px;
        }
        .send-area h3 {
            margin-top: 0;
            color: #28a745;
        }
        .send-area button {
            width: 100%;
            padding: 12px;
            margin-bottom: 10px;
            border: none;
            border-radius: 5px;
            font-size: 16px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }
        .send-area .btn-send {
            background-color: #007bff;
            color: white;
        }
        .send-area .btn-send:hover {
            background-color: #0056b3;
        }
        .send-area .btn-resume {
            background-color: #28a745;
            color: white;
        }
        .send-area .btn-resume:hover {
            background-color: #218838;
        }
        .send-area .btn-stop {
            background-color: #dc3545;
            color: white;
        }
        .send-area .btn-stop:hover {
            background-color: #c82333;
        }
        .send-area .btn-config {
            background-color: #6c757d;
            color: white;
        }
        .send-area .btn-config:hover {
            background-color: #5a6268;
        }
        .status-message {
            font-size: 14px;
            color: #666;
            margin-top: 15px;
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .main-content {
                flex-direction: column;
            }
            .stats-panel {
                grid-template-columns: 1fr;
            }
        }

        /* Configs Page Styles */
        .configs-container .tab-navigation {
            display: flex;
            margin-bottom: 20px;
            border-bottom: 1px solid #eee;
        }
        .configs-container .tab-button {
            background-color: #f0f2f5;
            border: none;
            padding: 10px 20px;
            cursor: pointer;
            font-size: 16px;
            border-radius: 5px 5px 0 0;
            margin-right: 5px;
            transition: background-color 0.3s ease;
        }
        .configs-container .tab-button.active {
            background-color: #fff;
            border-bottom: 2px solid #007bff;
            color: #007bff;
        }
        .configs-container .tab-button:hover {
            background-color: #e9ecef;
        }
        .configs-container .tab-content {
            display: none;
            padding: 20px 0;
        }
        .configs-container .tab-content.active {
            display: block;
        }
        .configs-container .section {
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }
        .configs-container .section:last-child {
            border-bottom: none;
        }
        .configs-container label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
            color: #555;
        }
        .configs-container input[type="text"], .configs-container textarea {
            width: calc(100% - 22px); /* Account for padding and border */
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 16px;
            margin-bottom: 15px;
            box-sizing: border-box;
        }
        .configs-container textarea {
            resize: vertical;
        }
        .configs-container code {
            background-color: #e9ecef;
            padding: 2px 5px;
            border-radius: 3px;
            font-family: monospace;
        }


.search-area {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.input-wrapper input.input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

#btn-buscar {
  height: 43px;
}

.sugestoes-container {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-top: none;
  z-index: 99;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 6px 6px;
  max-height: 220px;
  overflow-y: auto;
}

.sugestao-busca {
  padding: 12px 16px;
  background-color: #28a745;
  color: white;
  cursor: pointer;
  font-size: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sugestao-busca:hover {
  background-color: #218838;
}

.alerta {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  background: #333;
  color: white;
  font-weight: bold;
  border-radius: 5px;
  z-index: 9999;
  opacity: 0.9;
}

.alerta-info    { background-color: #007bff; }
.alerta-sucesso { background-color: #28a745; }
.alerta-erro    { background-color: #dc3545; }
.alerta-atenção { background-color: #ffc107; color: black; }


.lead {
  /* cuidado: conflito com .lead-card */
  /* use só se for reaproveitar a classe .lead ao invés de .lead-card */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 8px;
  border-radius: 14px;
  transition: background 0.2s ease;
  margin-bottom: 10px;
}


.lead-card {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 6px;
  border-radius: 8px;
  position: relative;
  cursor: pointer;
}

.lead-left {
  display: flex;
  flex-direction: column;
  align-items: center; /* centraliza a estrela horizontalmente */
}

.foto-podegoogle img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
}

.foto-podegoogle {
  width: 80px;
  height: 80px;
  position: relative;
}


.rating {
  font-size: 16px;
  padding: 2px 4px;
}

.rating .mini {
  font-size: 12px;
  color: #555;
}

.rating .star {
  color: gold;
}

.lead-info {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lead-info .title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 16px;
  font-weight: bold;
}

.lead-info .meta {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lead-info .icon {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.link {
  color: #007bff;
  text-decoration: none;
  word-break: break-all;
}

.badge-whatsapp {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.badge-whatsapp.ativo {
  opacity: 1;
}

.badge-whatsapp .circle {
  background-color: #25d366;
  color: #fff;
  font-weight: bold;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  text-align: center;
  line-height: 34px;
  margin-bottom: 4px;
}

.badge-whatsapp .label {
  font-size: 11px;
  color: #333;
}

.lead.clickable {
  cursor: pointer;
  transition: background 0.2s ease;
}

.lead.clickable:hover {
  background: #f2f2f2;
}

.lead .grid {
  display: grid;
  gap: 6px;
  padding: 4px 0;
}

.lead .title {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
}

.lead.selected {
  background: #e0f2fe;
  border-left: 4px solid #3b82f6;
}

.lead .pic {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e5e7eb;
}
.lead .pic.green {
  border-color: #22c55e;
}

.lead .right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #333;
}

.meta .icon {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

.badge-whatsapp-wrapper {
  display: flex;
  align-items: center;
  height: 100%;
}

.badge-whatsapp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #777;
}

.badge-whatsapp .circle {
  background: #d1fae5;
  color: #059669;
  width: 36px;
  height: 36px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-whatsapp .label {
  font-size: 12px;
}

.lead-card .wa {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: #888;
}

.lead-card .wa span {
  background: #e6fff0;
  color: #00c25f;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img_whatsapp{
    width: 80px;
    height: 80px;
}