/*
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/ClientSide/css.css to edit this template
*/
/* 
    Created on : 20/05/2026, 3:16:44 p. m.
    Author     : Gabyn
*/

/* ============================================
   ENIGMA — Chatbot Styles
   ============================================ */

/* FAB Wrapper */
#chat-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9000;
}

/* Toggle button */
.chat-toggle-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 28px rgba(201,137,42,0.45);
  transition: all var(--dur-med) var(--ease-out);
  position: relative;
  z-index: 2;
}

.chat-toggle-btn::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(201,137,42,0.3);
  animation: ring-pulse 2.5s ease-out infinite;
}

@keyframes ring-pulse {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(1.7); opacity: 0;   }
}

.chat-toggle-btn:hover {
  transform: scale(1.1);
  background: var(--gold-light);
  box-shadow: 0 12px 40px rgba(201,137,42,0.55);
}

/* Chat window */
.chat-window {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 360px;
  background: var(--dark2);
  border: 1px solid rgba(201,137,42,0.22);
  box-shadow: 0 30px 80px rgba(0,0,0,0.65);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.97);
  transform-origin: bottom right;
  transition: opacity 0.3s var(--ease-out),
              transform 0.3s var(--ease-out);
}

.chat-window.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

/* Header */
.chat-header {
  background: linear-gradient(135deg, rgba(201,137,42,0.14), rgba(201,137,42,0.04));
  padding: 18px 20px;
  border-bottom: 1px solid rgba(201,137,42,0.12);
  display: flex;
  align-items: center;
  gap: 14px;
}

.chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(201,137,42,0.3);
  flex-shrink: 0;
  background: rgba(201,137,42,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.chat-avatar-fallback {
  font-size: 1.4rem;
}

.chat-header-text h4 {
  font-family: var(--font-title);
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.chat-header-text p {
  font-size: 0.74rem;
  color: var(--cream-muted);
  margin-top: 2px;
}

.chat-online {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
}

.online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #25D366;
  animation: blink-dot 2.5s ease-in-out infinite;
}

@keyframes blink-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

.chat-online span {
  font-size: 0.68rem;
  color: rgba(37,211,102,0.8);
  letter-spacing: 0.05em;
}

/* Messages area */
.chat-messages {
  padding: 18px;
  height: 250px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-messages::-webkit-scrollbar { width: 3px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(201,137,42,0.3); border-radius: 2px; }

/* Message bubbles */
.msg { max-width: 82%; }
.msg.bot { align-self: flex-start; }
.msg.user { align-self: flex-end; }

.msg-bubble {
  padding: 11px 15px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.6;
}

.bot .msg-bubble {
  background: rgba(201,137,42,0.07);
  border: 1px solid rgba(201,137,42,0.14);
  color: var(--cream);
}

.user .msg-bubble {
  background: var(--gold);
  color: var(--black);
  font-weight: 600;
}

/* Quick options */
.chat-opts {
  padding: 0 14px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.opt-btn {
  padding: 6px 13px;
  border: 1px solid rgba(201,137,42,0.28);
  background: none;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  cursor: none;
  transition: all var(--dur-fast);
}

.opt-btn:hover {
  background: rgba(201,137,42,0.1);
  border-color: var(--gold);
}

/* WhatsApp quick action */
.chat-wa {
  margin: 0 14px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px;
  background: #25D366;
  color: white;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity var(--dur-fast);
}

.chat-wa:hover { opacity: 0.9; }

.chat-wa svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Input area */
.chat-input-row {
  padding: 12px 14px;
  border-top: 1px solid rgba(201,137,42,0.09);
  display: flex;
  gap: 8px;
}

.chat-input {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,137,42,0.14);
  color: var(--cream);
  padding: 10px 13px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--dur-fast);
}

.chat-input:focus {
  border-color: rgba(201,137,42,0.45);
}

.chat-input::placeholder { color: var(--cream-muted); }

.chat-send {
  width: 40px;
  height: 40px;
  background: var(--gold);
  border: none;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: background var(--dur-fast);
}

.chat-send:hover { background: var(--gold-light); }

/* Mobile adjustments */
@media (max-width: 420px) {
  #chat-fab { bottom: 20px; right: 16px; }
  .chat-window { width: 300px; }
}