/* Chatbot Widget Styles */

.chatbot-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
  z-index: 999;
  user-select: none;
  font-size: 12px;
  font-weight: 600;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  text-align: center;
  line-height: 1.2;
}

.chatbot-trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
}

.chatbot-trigger svg {
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
}

.chatbot-window {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 380px;
  height: 500px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 40px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  z-index: 998;
  transition: all 0.3s ease;
  overflow: hidden;
}

.chatbot-window.hidden {
  display: none;
  opacity: 0;
  transform: translateY(20px);
}

.chatbot-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.chatbot-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.chatbot-close {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  transition: transform 0.2s;
}

.chatbot-close:hover {
  transform: scale(1.2);
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f5f5f5;
}

.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 p {
  margin: 0;
  padding: 10px 14px;
  border-radius: 8px;
  line-height: 1.4;
  font-size: 14px;
  max-width: 85%;
  word-wrap: break-word;
}

.user-message {
  justify-content: flex-end;
}

.user-message p {
  background: #667eea;
  color: white;
  border-radius: 8px 2px 8px 8px;
}

.bot-message {
  justify-content: flex-start;
}

.bot-message p {
  background: white;
  color: #333;
  border: 1px solid #e0e0e0;
  border-radius: 2px 8px 8px 8px;
}

.chatbot-input-area {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e0e0e0;
  background: white;
}

.chatbot-input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.chatbot-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.chatbot-send {
  background: #667eea;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  white-space: nowrap;
}

.chatbot-send:hover {
  background: #764ba2;
  transform: translateY(-1px);
}

.chatbot-send:active {
  transform: translateY(0);
}

/* Mobile responsive */
@media (max-width: 480px) {
  .chatbot-trigger {
    bottom: 16px;
    right: 16px;
    width: 56px;
    height: 56px;
    font-size: 11px;
  }

  .chatbot-window {
    bottom: 80px;
    right: 16px;
    width: calc(100vw - 32px);
    max-width: 380px;
    height: 400px;
  }

  .chatbot-message p {
    max-width: 90%;
  }
}

@media (max-width: 360px) {
  .chatbot-window {
    width: calc(100vw - 16px);
    height: 350px;
  }

  .chatbot-header h3 {
    font-size: 14px;
  }

  .chatbot-input {
    font-size: 12px;
  }

  .chatbot-send {
    font-size: 12px;
    padding: 8px 12px;
  }
}
