/* Chatbot Styles */
.chatbot-button {
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8b833;
  color: #000;
  border: none;
  border-radius: 50px;
  padding: 15px 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(248, 184, 51, 0.4);
  transition: all 0.3s ease;
}

.chatbot-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(248, 184, 51, 0.6);
}

.chatbot-button svg {
  width: 24px;
  height: 24px;
}

.chatbot-window {
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 9999;
  width: 400px;
  max-width: calc(100vw - 60px);
  height: 600px;
  max-height: calc(100vh - 200px);
  background: #1a1a1a;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #343434;
}

.chatbot-header {
  background: #f8b833;
  color: #000;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #343434;
}

.chatbot-header-content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
}

.chatbot-close {
  background: none;
  border: none;
  color: #000;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.chatbot-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #1a1a1a;
}

.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: #2a2a2a;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: #f8b833;
  border-radius: 3px;
}

.chatbot-message {
  display: flex;
  animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chatbot-message-user {
  justify-content: flex-end;
}

.chatbot-message-assistant {
  justify-content: flex-start;
}

.chatbot-message-content {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 12px;
  line-height: 1.5;
  font-size: 14px;
}

.chatbot-message-user .chatbot-message-content {
  background: #f8b833;
  color: #000;
  border-bottom-right-radius: 4px;
}

.chatbot-message-assistant .chatbot-message-content {
  background: #2a2a2a;
  color: #fff;
  border-bottom-left-radius: 4px;
}

.chatbot-message-content p {
  margin: 0;
  margin-bottom: 8px;
}

.chatbot-message-content p:last-child {
  margin-bottom: 0;
}

.chatbot-typing {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: #2a2a2a;
  border-radius: 12px;
  border-bottom-left-radius: 4px;
}

.chatbot-typing span {
  width: 8px;
  height: 8px;
  background: #f8b833;
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.chatbot-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.chatbot-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

.chatbot-input-container {
  display: flex;
  gap: 10px;
  padding: 20px;
  background: #2a2a2a;
  border-top: 1px solid #343434;
}

.chatbot-input {
  flex: 1;
  background: #1a1a1a;
  border: 1px solid #343434;
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.chatbot-input:focus {
  border-color: #f8b833;
}

.chatbot-input::placeholder {
  color: #666;
}

.chatbot-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chatbot-send {
  background: #f8b833;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  color: #000;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-send:hover:not(:disabled) {
  background: #ffc94d;
  transform: translateY(-1px);
}

.chatbot-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .chatbot-button {
    bottom: 80px;
    right: 20px;
    padding: 12px 20px;
    font-size: 14px;
  }

  .chatbot-button span {
    display: none;
  }

  .chatbot-window {
    bottom: 80px;
    right: 20px;
    left: 20px;
    width: auto;
    height: 500px;
  }

  .chatbot-message-content {
    max-width: 85%;
    font-size: 13px;
  }
}
