/* ================================================================
   app-botwa.css — Módulo Bot WhatsApp
   ================================================================ */

/* ── Dashboard grid ──────────────────────────────────────────── */
.bot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.bot-card { padding: 24px; }

/* ── Status card ─────────────────────────────────────────────── */
.bot-status-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.bot-wa-icon {
  width: 48px;
  height: 48px;
  background: #25D3661a;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #25D366;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.bot-status-info { flex: 1; }

.bot-status-title {
  font-weight: 700;
  font-family: Outfit, sans-serif;
  font-size: 0.95rem;
  color: var(--text-main);
}

.bot-status-badge {
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 3px;
}

.bot-status-badge .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
  animation: bot-pulse 2s ease infinite;
}

@keyframes bot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.bot-status-badge.active { color: #10B981; }
.bot-status-badge.active .dot { background: #10B981; }
.bot-status-badge.inactive { color: #EF4444; }
.bot-status-badge.inactive .dot { background: #EF4444; animation: none; }

.bot-toggle-btn {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid var(--border-color);
}

.bot-toggle-btn.activate {
  background: #25D3661a;
  color: #25D366;
  border-color: #25D36640;
}

.bot-toggle-btn.activate:hover {
  background: #25D366;
  color: #fff;
}

.bot-toggle-btn.deactivate {
  background: #EF44441a;
  color: #EF4444;
  border-color: #EF444440;
}

.bot-toggle-btn.deactivate:hover {
  background: #EF4444;
  color: #fff;
}

/* ── Webhook card ────────────────────────────────────────────── */
.bot-webhook-title {
  font-weight: 700;
  font-family: Outfit, sans-serif;
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: var(--text-main);
}

.bot-webhook-url {
  font-size: 0.82rem;
  color: var(--text-muted);
  word-break: break-all;
  margin-bottom: 14px;
  padding: 10px;
  background: var(--bg-main);
  border-radius: var(--radius-sm);
  font-family: 'Courier New', monospace;
  line-height: 1.4;
}

.bot-webhook-url.empty {
  color: #EF4444;
  font-family: inherit;
  font-style: italic;
}

/* ── Welcome message card ────────────────────────────────────── */
.bot-welcome-card { padding: 24px; }

.bot-welcome-title {
  font-family: Outfit, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}

.bot-welcome-title i { color: #25D366; opacity: 0.7; }

.bot-welcome-textarea {
  width: 100%;
  font-size: 0.88rem;
  line-height: 1.6;
  resize: vertical;
  min-height: 100px;
}

.bot-welcome-save {
  margin-top: 12px;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .bot-grid { grid-template-columns: 1fr; }
  .bot-card { padding: 18px; }
}
