/* ==========================================================================
   LISTA DE TRANSMISSÃO WHATSAPP - DESIGN POP-UP PREMIUM BENTO UI
   Design idêntico ao "Novo Prospect" com Bento Grid e Apple HIG
   ========================================================================== */

/* Bento Container & Layout */
.bcast-bento-wrapper {
  background: #f5f5f7;
  padding: 4px;
  border-radius: 20px;
}

body.dark-mode .bcast-bento-wrapper {
  background: #0f172a;
}

.bcast-bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 768px) {
  .bcast-bento-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.bcast-bento-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bcast-bento-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

body.dark-mode .bcast-bento-card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.3);
}

.bcast-bento-title {
  font-size: 12px;
  font-weight: 700;
  color: #8e8e93;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 0;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.dark-mode .bcast-bento-title {
  color: #94a3b8;
}

/* Inputs Bento */
.bcast-input {
  width: 100%;
  background: #f5f5f7;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #1c1c1e;
  transition: all 0.2s ease;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
}

body.dark-mode .bcast-input {
  background: #0f172a;
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.1);
}

.bcast-input:focus {
  background: #ffffff;
  border-color: #25D366;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}

body.dark-mode .bcast-input:focus {
  background: #1e293b;
}

/* Lista de Contatos Bento */
.bcast-contacts-box {
  background: #f5f5f7;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 8px;
  overflow-y: auto;
  max-height: 240px;
}

body.dark-mode .bcast-contacts-box {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.08);
}

.bcast-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  margin-bottom: 4px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.12s ease;
}

body.dark-mode .bcast-contact-item {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.06);
}

.bcast-contact-item:hover {
  border-color: #25D366;
}

.bcast-contact-item.selected {
  background: rgba(37, 211, 102, 0.12) !important;
  border-color: #25D366 !important;
}

.bcast-contact-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1E4BFF 0%, #1032CC 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Tags de Variáveis */
.bcast-tag-btn {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.bcast-tag-btn:hover {
  background: #25D366;
  color: #ffffff;
  border-color: #25D366;
  transform: translateY(-1px);
}

body.dark-mode .bcast-tag-btn {
  background: rgba(37, 211, 102, 0.15);
  color: #4ade80;
  border-color: rgba(37, 211, 102, 0.3);
}

/* Preview WhatsApp */
.bcast-preview-card {
  background: #efeae2;
  border-radius: 14px;
  padding: 12px;
  border: 1px solid #d1d5db;
}

body.dark-mode .bcast-preview-card {
  background: #111b21;
  border-color: #374151;
}

.bcast-preview-bubble {
  background: #d9fdd3;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  color: #111b21;
  max-width: 92%;
  margin-left: auto;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

body.dark-mode .bcast-preview-bubble {
  background: #005c4b;
  color: #e9edef;
}
