/* Elit Mobilya Chatbot Styles */

.chatbot-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af37 0%, #1a1a1a 100%);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
  color: white;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.6);
}

.chatbot-toggle.active {
  display: none;
}

.chatbot-container {
  display: none;
  width: 420px;
  height: 600px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 40px rgba(0, 0, 0, 0.16);
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

.chatbot-container.active {
  display: flex;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chatbot-header {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  padding: 20px;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.chatbot-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.chatbot-close:hover {
  transform: rotate(90deg);
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #f9f9f9;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: #d4af37;
  border-radius: 10px;
}

.message {
  padding: 12px 16px;
  border-radius: 8px;
  max-width: 85%;
  word-wrap: break-word;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bot-message {
  align-self: flex-start;
  background: white;
  border: 1px solid #e0e0e0;
  color: #1a1a1a;
  line-height: 1.4;
}

.bot-message strong {
  color: #d4af37;
  font-weight: 600;
}

.user-message {
  align-self: flex-end;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  border: none;
}

.message-buttons,
.message-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: flex-start;
  width: 100%;
}

.chat-button {
  background: white;
  border: 2px solid #d4af37;
  color: #1a1a1a;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 14px;
  text-align: left;
}

.chat-button:hover {
  background: #d4af37;
  color: white;
  transform: translateX(4px);
}

.chat-button small {
  display: block;
  font-size: 12px;
  opacity: 0.7;
  margin-top: 4px;
  font-weight: 400;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 14px;
  user-select: none;
}

.checkbox-label:hover {
  background: #f5f5f5;
}

.checkbox-label input[type="checkbox"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
}

.message-input {
  display: flex;
  gap: 8px;
  align-self: flex-start;
  width: 100%;
}

.chat-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.chat-input:focus {
  border-color: #d4af37;
}

.chat-button-send {
  background: linear-gradient(135deg, #d4af37 0%, #b8941d 100%);
  color: white;
  border: none;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  transition: transform 0.2s;
}

.chat-button-send:hover {
  transform: scale(1.05);
}

.chatbot-input-area {
  padding: 15px;
  background: white;
  border-top: 1px solid #e0e0e0;
  border-radius: 0 0 12px 12px;
}

.chatbot-input-area input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
}

.chatbot-input-area input:focus {
  border-color: #d4af37;
}

/* Responsive */
@media (max-width: 768px) {
  .chatbot-container {
    width: 100vw;
    height: 100vh;
    max-width: 100%;
    border-radius: 0;
  }

  .message {
    max-width: 95%;
  }
}
