/* Radio Lake Victoria - AI WhatsApp Chatbot Widget Styles */
:root {
  --wa-green: #25D366;
  --wa-dark-green: #128C7E;
  --wa-teal: #075E54;
  --wa-bg: #EFEAE2;
  --wa-chat-bg: #ECE5DD;
  --wa-msg-out: #D9FDD3;
  --wa-msg-in: #FFFFFF;
  --wa-navy: #0B192C;
  --wa-gold: #F5A623;
}

/* Floating WhatsApp Launcher */
.rlv-wa-launcher {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.rlv-wa-pulse {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rlv-wa-pulse:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.rlv-wa-pulse::before {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: rlv-wa-ripple 2s infinite ease-out;
  opacity: 0.8;
}

@keyframes rlv-wa-ripple {
  0% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}

.rlv-wa-icon {
  width: 32px;
  height: 32px;
  fill: #FFFFFF;
}

.rlv-wa-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #E53E3E;
  color: #FFF;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  padding: 2px 6px;
  border: 2px solid #FFF;
  animation: rlv-bounce 2s infinite;
}

@keyframes rlv-bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
  60% { transform: translateY(-3px); }
}

.rlv-wa-pill {
  background: #0B192C;
  color: #FFFFFF;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(37, 211, 102, 0.4);
  transition: all 0.2s ease;
}

.rlv-wa-pill .online-dot {
  width: 8px;
  height: 8px;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 0 8px #25D366;
}

/* Chat Popup Window */
.rlv-wa-modal {
  position: fixed;
  bottom: 95px;
  right: 25px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 120px);
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 99999;
  border: 1px solid rgba(0,0,0,0.1);
  animation: rlv-slide-up 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes rlv-slide-up {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.rlv-wa-modal.open {
  display: flex;
}

/* Header */
.rlv-wa-header {
  background: linear-gradient(135deg, #075E54, #128C7E);
  color: #FFFFFF;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.rlv-wa-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rlv-wa-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #FFFFFF;
  padding: 2px;
  border: 2px solid #25D366;
  object-fit: cover;
}

.rlv-wa-header-info h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 4px;
}

.rlv-wa-verified {
  color: #25D366;
  font-size: 14px;
}

.rlv-wa-header-info p {
  margin: 2px 0 0;
  font-size: 11px;
  color: #E2E8F0;
}

.rlv-wa-close-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #FFFFFF;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.2s;
}

.rlv-wa-close-btn:hover {
  background: rgba(255,255,255,0.3);
}

/* Chat Body */
.rlv-wa-body {
  flex: 1;
  background-color: #ECE5DD;
  background-image: radial-gradient(rgba(0,0,0,0.04) 1px, transparent 0);
  background-size: 16px 16px;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Message Bubbles */
.rlv-wa-msg {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
  position: relative;
  word-wrap: break-word;
}

.rlv-wa-msg.in {
  align-self: flex-start;
  background: #FFFFFF;
  color: #1A202C;
  border-top-left-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.rlv-wa-msg.out {
  align-self: flex-end;
  background: #D9FDD3;
  color: #1A202C;
  border-top-right-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.rlv-wa-time {
  font-size: 10px;
  color: #718096;
  text-align: right;
  margin-top: 4px;
}

/* Quick Actions Ribbon */
.rlv-wa-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.rlv-wa-chip {
  background: #FFFFFF;
  border: 1px solid #CBD5E0;
  border-radius: 14px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #075E54;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.rlv-wa-chip:hover {
  background: #075E54;
  color: #FFFFFF;
  border-color: #075E54;
}

/* WhatsApp Autonomous App Sync Bar */
.rlv-wa-sync-bar {
  background: #F0FDF4;
  border-top: 1px solid #BBF7D0;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rlv-wa-sync-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25D366;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s, transform 0.1s;
}

.rlv-wa-sync-btn:hover {
  background: #128C7E;
  color: #FFF;
  transform: translateY(-1px);
}

.rlv-wa-sync-text {
  font-size: 11px;
  color: #166534;
  font-weight: 600;
}

/* Input Area */
.rlv-wa-footer {
  background: #F0F2F5;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #E2E8F0;
}

.rlv-wa-input {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid #CBD5E0;
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 13px;
  outline: none;
  color: #2D3748;
}

.rlv-wa-input:focus {
  border-color: #25D366;
}

.rlv-wa-send-btn {
  background: #128C7E;
  border: none;
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.1s;
}

.rlv-wa-send-btn:hover {
  background: #075E54;
  transform: scale(1.05);
}

/* Typing Indicator */
.rlv-wa-typing {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 6px 10px;
  background: #FFF;
  border-radius: 12px;
  font-size: 11px;
  color: #718096;
  align-self: flex-start;
}

.rlv-wa-typing-dot {
  width: 5px;
  height: 5px;
  background: #718096;
  border-radius: 50%;
  animation: rlv-typing 1.4s infinite ease-in-out both;
}

.rlv-wa-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.rlv-wa-typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes rlv-typing {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}
