/* Hemp Museum AI Chatbot Widget Styles - Non-overlapping layout */
#hemp-chat-widget-container {
  position: fixed;
  bottom: 92px;
  right: 24px;
  z-index: 99998;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html[dir="rtl"] #hemp-chat-widget-container {
  right: auto;
  left: 24px;
}

.hemp-chat-toggle-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #10b981, #064e3b);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hemp-chat-toggle-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 32px rgba(16, 185, 129, 0.5);
}

.hemp-chat-window {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 380px;
  height: 520px;
  background: rgba(10, 15, 12, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), 0 0 30px rgba(16, 185, 129, 0.15);
  overflow: hidden;
  animation: hempChatFadeIn 0.25s ease-out;
}

html[dir="rtl"] .hemp-chat-window {
  right: auto;
  left: 0;
}

@media (max-width: 480px) {
  #hemp-chat-widget-container {
    bottom: 84px;
    right: 16px;
  }
  html[dir="rtl"] #hemp-chat-widget-container {
    right: auto;
    left: 16px;
  }
  .hemp-chat-window {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    z-index: 100000;
  }
}

.hemp-chat-header {
  padding: 16px 20px;
  background: rgba(16, 185, 129, 0.08);
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hemp-chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hemp-chat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.hemp-chat-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.hemp-chat-status {
  font-size: 11px;
  color: #9ca3af;
}

.hemp-chat-close-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}
.hemp-chat-close-btn:hover {
  color: #fff;
}

.hemp-chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  word-break: break-word;
}

.hemp-chat-msg {
  display: flex;
  max-width: 90%;
}

.hemp-chat-msg.user {
  align-self: flex-end;
}

.hemp-chat-msg.bot {
  align-self: flex-start;
}

.hemp-chat-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
}

.hemp-chat-msg.user .hemp-chat-bubble {
  background: #10b981;
  color: #040505;
  font-weight: 500;
  border-bottom-right-radius: 4px;
}

.hemp-chat-msg.bot .hemp-chat-bubble {
  background: rgba(255, 255, 255, 0.05);
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 4px;
}

.hemp-chat-input-area {
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(16, 185, 129, 0.15);
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 10;
}

.hemp-chat-input-area input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 10px 16px;
  color: #fff;
  font-size: 13.5px;
  outline: none;
}

.hemp-chat-input-area input:focus {
  border-color: #10b981;
}

.hemp-chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #10b981;
  border: none;
  color: #040505;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.hemp-chat-send-btn:hover {
  transform: scale(1.08);
  background: #34d399;
}

.hemp-chat-send-btn svg {
  pointer-events: none;
}

@keyframes hempChatFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
