/* 💚 UMIBUDO CHATBOT - STYLING */

/* ===== FLOATING BUTTON ===== */
.chatbot-floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #0b6e3f 0%, #0d8659 100%);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(11, 110, 63, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 999;
  border: none;
}

.chatbot-floating-btn:hover {
  width: 70px;
  height: 70px;
  bottom: 20px;
  right: 20px;
  box-shadow: 0 6px 24px rgba(11, 110, 63, 0.4);
  transform: scale(1.05);
}

.chatbot-btn-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-btn-icon {
  font-size: 28px;
  animation: pulse-chatbot 2s infinite;
}

.chatbot-btn-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #d32f2f;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  border: 2px solid white;
}

@keyframes pulse-chatbot {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* ===== CHATBOT WINDOW ===== */
.chatbot-window {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 380px;
  max-height: 600px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 40px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  z-index: 998;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: all 0.3s ease;
}

.chatbot-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
}

.chatbot-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Mobile responsive */
@media (max-width: 480px) {
  .chatbot-window {
    width: calc(100% - 32px);
    bottom: 90px;
    right: 16px;
    max-height: calc(100vh - 120px);
  }
  
  .chatbot-floating-btn {
    width: 56px;
    height: 56px;
    bottom: 16px;
    right: 16px;
  }
  
  .chatbot-floating-btn:hover {
    width: 56px;
    height: 56px;
    bottom: 16px;
    right: 16px;
  }
}

/* ===== CHATBOT HEADER ===== */
.chatbot-header {
  background: linear-gradient(135deg, #0b6e3f 0%, #0d8659 100%);
  color: white;
  padding: 16px;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.chatbot-header-content h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Quicksand', sans-serif;
  letter-spacing: -0.01em;
}

.chatbot-header-content p {
  margin: 4px 0 0 0;
  font-size: 12px;
  opacity: 0.9;
}

.chatbot-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ===== CHATBOT MESSAGES ===== */
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f7fafc;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 10px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 10px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

/* ===== CHATBOT MESSAGE ===== */
.chatbot-message {
  display: flex;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chatbot-message-bot {
  justify-content: flex-start;
}

.chatbot-message-user {
  justify-content: flex-end;
}

.chatbot-message-text {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  word-wrap: break-word;
}

.chatbot-message-bot .chatbot-message-text {
  background: white;
  color: #2d3748;
  border-left: 3px solid #0b6e3f;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.chatbot-message-user .chatbot-message-text {
  background: #0b6e3f;
  color: white;
  border-radius: 12px;
}

/* ===== QUICK OPTIONS ===== */
.chatbot-quick-options,
.chatbot-faq-options,
.chatbot-followup-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  animation: slideIn 0.3s ease;
}

.chatbot-quick-btn,
.chatbot-faq-btn,
.chatbot-followup-btn {
  background: white;
  border: 2px solid #e2e8f0;
  color: #2d3748;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  font-family: 'Nunito', sans-serif;
}

.chatbot-quick-btn:hover,
.chatbot-faq-btn:hover,
.chatbot-followup-btn:hover {
  border-color: #0b6e3f;
  background: #e6f7f1;
  color: #0b6e3f;
  transform: translateX(4px);
}

.chatbot-faq-buy {
  background: #e6f7f1;
  border-color: #0b6e3f;
  color: #0b6e3f;
  font-weight: 700;
}

.chatbot-faq-buy:hover {
  background: #0b6e3f;
  color: white;
}

/* ===== CTA BUTTONS ===== */
.chatbot-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  animation: slideIn 0.3s ease;
}

.chatbot-cta-btn {
  padding: 12px 14px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Nunito', sans-serif;
}

.chatbot-cta-primary {
  background: #0b6e3f;
  color: white;
  box-shadow: 0 2px 8px rgba(11, 110, 63, 0.2);
}

.chatbot-cta-primary:hover {
  background: #0a5a35;
  box-shadow: 0 4px 12px rgba(11, 110, 63, 0.3);
  transform: translateY(-2px);
}

.chatbot-cta-secondary {
  background: white;
  color: #0b6e3f;
  border: 2px solid #0b6e3f;
}

.chatbot-cta-secondary:hover {
  background: #e6f7f1;
}

/* ===== CHATBOT INPUT ===== */
.chatbot-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: white;
  border-top: 1px solid #e2e8f0;
  border-radius: 0 0 12px 12px;
  flex-shrink: 0;
}

#chatbot-input {
  flex: 1;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  font-family: 'Nunito', sans-serif;
  transition: border-color 0.2s;
}

#chatbot-input:focus {
  outline: none;
  border-color: #0b6e3f;
  box-shadow: 0 0 0 3px rgba(11, 110, 63, 0.1);
}

#chatbot-send-btn {
  background: #0b6e3f;
  color: white;
  border: none;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

#chatbot-send-btn:hover {
  background: #0a5a35;
  transform: scale(1.05);
}

#chatbot-send-btn:active {
  transform: scale(0.95);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  .chatbot-floating-btn,
  .chatbot-window,
  .chatbot-message,
  .chatbot-quick-options,
  .chatbot-faq-options {
    animation: none !important;
  }
}

/* ===== DARK MODE (Optional) ===== */
@media (prefers-color-scheme: dark) {
  .chatbot-window {
    background: #1a202c;
  }

  .chatbot-messages {
    background: #2d3748;
  }

  .chatbot-message-bot .chatbot-message-text {
    background: #4a5568;
    color: #e2e8f0;
  }

  .chatbot-quick-btn,
  .chatbot-faq-btn,
  .chatbot-followup-btn,
  #chatbot-input {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
  }

  .chatbot-quick-btn:hover,
  .chatbot-faq-btn:hover,
  .chatbot-followup-btn:hover {
    background: #4a5568;
    border-color: #0b6e3f;
  }

  #chatbot-input:focus {
    box-shadow: 0 0 0 3px rgba(11, 110, 63, 0.3);
  }

  .chatbot-input {
    background: #2d3748;
    border-top-color: #4a5568;
  }
}
