/* Hebra website assistant — shared widget chrome */
.chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  font-family: var(--font-body, 'Source Sans Pro', Helvetica, Arial, sans-serif);
}

.chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f17522, #BF7AB4);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(241, 117, 34, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(241, 117, 34, 0.4);
}

.chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 500px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.chatbot-window.open {
  display: flex;
  animation: hebraAssistantSlideUp 0.3s ease;
}

@keyframes hebraAssistantSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.chatbot-header {
  background: linear-gradient(135deg, #f17522, #BF7AB4);
  color: white;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
}

.chatbot-close {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #fafafa;
}

.chatbot-container .message {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.chatbot-container .message.user { justify-content: flex-end; }
.chatbot-container .message.bot { justify-content: flex-start; }

.chatbot-container .message-content {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.chatbot-container .message.user .message-content {
  background: linear-gradient(135deg, #f17522, #BF7AB4);
  color: white;
  border-bottom-right-radius: 4px;
}

.chatbot-container .message.bot .message-content {
  background: #ffffff;
  color: #111827;
  border: 1px solid #e5e7eb;
  border-bottom-left-radius: 4px;
}

.chatbot-input-container {
  padding: 15px 20px;
  background: white;
  border-top: 1px solid #e0e0e0;
}

.chatbot-input-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
}

.chatbot-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 25px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
  color: #111827;
  background: #fff;
}

.chatbot-input::placeholder { color: #6B7280; }
.chatbot-input:focus { border-color: #f17522; }

.chatbot-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f17522, #BF7AB4);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.chatbot-send:hover { transform: scale(1.1); }

.chatbot-container .quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chatbot-container .quick-action-btn {
  padding: 8px 12px;
  background: #f8f9fa;
  border: 1px solid #d1d5db;
  border-radius: 15px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s;
  color: #374151;
  font-weight: 500;
}

.chatbot-container .quick-action-btn:hover {
  background: #f17522;
  color: #fff !important;
  border-color: #f17522;
}

/*
  Home / About set global span/button color to #F9FAFB for the dark site.
  Lock assistant chrome so bot copy stays dark on the white panel.
*/
.chatbot-container,
.chatbot-container .chatbot-window,
.chatbot-container .chatbot-messages,
.chatbot-container .message.bot .message-content,
.chatbot-container .message.bot .message-content span,
.chatbot-container .message.bot .message-content p,
.chatbot-container .assistant-greeting {
  color: #111827 !important;
}

.chatbot-container .quick-action-btn {
  color: #374151 !important;
  background: #f8f9fa !important;
  border-color: #d1d5db !important;
}

.chatbot-container .quick-action-btn:hover {
  color: #ffffff !important;
  background: #f17522 !important;
  border-color: #f17522 !important;
}

.chatbot-container .chatbot-input {
  color: #111827 !important;
  background: #fff !important;
}

.chatbot-container .chatbot-input::placeholder {
  color: #6B7280 !important;
}

.chatbot-container .chatbot-header,
.chatbot-container .chatbot-header h3,
.chatbot-container .chatbot-close,
.chatbot-container .chatbot-toggle,
.chatbot-container .chatbot-send,
.chatbot-container .message.user .message-content {
  color: #ffffff !important;
}

.chatbot-container .typing-indicator {
  display: none;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  max-width: 80px;
}

.chatbot-container .typing-dot {
  width: 6px;
  height: 6px;
  background: #9CA3AF;
  border-radius: 50%;
  animation: hebraAssistantTyping 1.4s infinite;
}

.chatbot-container .typing-dot:nth-child(2) { animation-delay: 0.2s; }
.chatbot-container .typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes hebraAssistantTyping {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-10px); }
}

@media (max-width: 768px) {
  .chatbot-window {
    width: calc(100vw - 40px);
    height: calc(100vh - 120px);
    bottom: 100px;
    right: 20px;
    left: 20px;
  }

  .chatbot-container {
    bottom: 15px;
    right: 15px;
  }
}
