/* ==========================================================================
   BarberAI OS - WhatsApp Simulator & AI Chat Interface
   ========================================================================== */

.chat-simulator-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 992px) {
  .chat-simulator-container {
    grid-template-columns: 1fr;
  }
}

/* Painel Central do WhatsApp */
.wa-device-frame {
  background: #0c1317;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  height: 720px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  position: relative;
}

.wa-top-bar {
  background: #202c33;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 10;
}

.wa-profile-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-bot-avatar {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-hover));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-gold);
  position: relative;
}

.wa-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  background: var(--emerald);
  border: 2px solid #202c33;
  border-radius: 50%;
}

.wa-title-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.wa-subtitle-status {
  font-size: 12px;
  color: var(--emerald);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Área de Mensagens */
.wa-messages-area {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: #0b141a;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 24px 24px;
}

.chat-message {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 80%;
}

.chat-message.msg-bot {
  align-self: flex-start;
}

.chat-message.msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.bot-avatar-badge {
  font-size: 16px;
  margin-bottom: 4px;
}

.msg-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
  position: relative;
  word-break: break-word;
}

.msg-bot .msg-bubble {
  background: #202c33;
  color: #e9edef;
  border-bottom-left-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.msg-user .msg-bubble {
  background: #005c4b;
  color: #e9edef;
  border-bottom-right-radius: 2px;
}

.msg-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 4px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.5);
}

.msg-tick {
  color: #53bdeb;
}

/* Indicador de Digitando... */
.wa-typing-box {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #202c33;
  border-radius: 14px;
  border-bottom-left-radius: 2px;
  align-self: flex-start;
  color: var(--text-muted);
  font-size: 12px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--gold-primary);
  border-radius: 50%;
  animation: wave 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes wave {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

/* Input Form */
.wa-input-container {
  background: #202c33;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.wa-input-box {
  flex: 1;
  background: #2a3942;
  border: none;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 22px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.wa-input-box:focus {
  box-shadow: 0 0 0 1px var(--gold-primary);
}

.wa-send-btn {
  background: var(--gold-primary);
  border: none;
  color: #0b0f17;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: transform var(--transition-fast);
}
.wa-send-btn:hover {
  transform: scale(1.08);
  background: var(--gold-hover);
}

/* Painel Lateral de Simulação & Prompts Rápidos */
.chat-helper-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.helper-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.helper-card h3 {
  font-size: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-prompts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-prompt-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-prompt-btn:hover {
  border-color: var(--gold-primary);
  background: rgba(245, 158, 11, 0.08);
  transform: translateX(3px);
}
