/* -----------------------------------------------
   PaidFairly Chatbot Styling (Premium Version)
------------------------------------------------ */

/* Chat Bubble (Gradient) */
#pf-chat-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0A0A14 0%, #0057FF 90%);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0px 8px 25px rgba(0,0,0,0.35);
  z-index: 999999;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}

#pf-chat-bubble:hover {
  transform: scale(1.08);
  box-shadow: 0px 12px 30px rgba(0,0,0,0.45);
}

/* Chat Window Container */
#pf-chat-window {
  position: fixed;
  bottom: 110px;
  right: 24px;
  width: 380px;
  height: 540px;
  background: white;
  border-radius: 18px;
  box-shadow: 0px 12px 40px rgba(0,0,0,0.20);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 999999;
  animation: pf-fade-in 0.25s ease-out;
  font-family: "Inter", Arial, sans-serif;
}

/* Header */
#pf-header {
  background: #0A0A14;
  color: white;
  padding: 18px;
  font-size: 20px;
  font-weight: 600;
}

/* Body */
#pf-body {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
}

/* Welcome Message */
#pf-welcome {
  background: #F3F6FF;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 500;
}

/* Buttons */
.pf-btn {
  background: #0057FF;
  color: white;
  padding: 12px;
  margin-top: 12px;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pf-btn:hover {
  background: #0041C2;
  transform: translateY(-2px);
}

/* Inputs */
input, textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border-radius: 10px;
  border: 1px solid #cfcfcf;
  font-size: 14px;
  resize: none;
}

/* AI Messages */
#pf-ai-messages {
  height: 280px;
  overflow-y: auto;
  padding-right: 4px;
  font-size: 14px;
}

/* Typing Indicator */
#pf-typing {
  font-style: italic;
  color: #444;
  margin-top: 10px;
  display: none;
}

/* Fade Animation */
@keyframes pf-fade-in {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile */
@media (max-width: 480px) {
  #pf-chat-window {
    width: 90%;
    right: 5%;
  }
}
