/* Chatbot Styles */
:root {
  --chatbot-primary: #c5a059;
  --chatbot-dark: #1a1a1a;
  --chatbot-light: #f5f5f5;
  --chatbot-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Chatbot Button */
.chatbot-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--chatbot-primary), #d4b06a);
  border: none;
  cursor: pointer;
  box-shadow: var(--chatbot-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.chatbot-button:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 50px rgba(197, 160, 89, 0.4);
}

.chatbot-button i {
  font-size: 28px;
  color: white;
}

.chatbot-button.active {
  background: #e74c3c;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 10px 40px rgba(197, 160, 89, 0.3);
  }
  50% {
    box-shadow: 0 10px 40px rgba(197, 160, 89, 0.6);
  }
}

/* Chatbot Container */
.chatbot-container {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 380px;
  height: 600px;
  background: white;
  border-radius: 20px;
  box-shadow: var(--chatbot-shadow);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  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 */
.chatbot-header {
  background: linear-gradient(135deg, var(--chatbot-primary), #d4b06a);
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.chatbot-title h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.chatbot-title p {
  margin: 0;
  font-size: 12px;
  opacity: 0.9;
}

.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;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Chatbot Messages */
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #f9f9f9;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: var(--chatbot-primary);
  border-radius: 3px;
}

.message {
  display: flex;
  gap: 10px;
  animation: fadeIn 0.3s ease;
}

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

.message.bot {
  align-self: flex-start;
}

.message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--chatbot-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.message.user .message-avatar {
  background: #3498db;
}

.message-content {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
}

.message.bot .message-content {
  background: white;
  color: var(--chatbot-dark);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message.user .message-content {
  background: var(--chatbot-primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.message-time {
  font-size: 11px;
  opacity: 0.6;
  margin-top: 4px;
}

/* Typing Indicator */
.typing-indicator {
  display: none;
  padding: 12px 16px;
  background: white;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.typing-indicator.active {
  display: block;
}

.typing-indicator span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--chatbot-primary);
  margin: 0 2px;
  animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator 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;
  }
}

/* Quick Replies */
.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.quick-reply-btn {
  background: white;
  border: 2px solid var(--chatbot-primary);
  color: var(--chatbot-primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.quick-reply-btn:hover {
  background: var(--chatbot-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3);
}

/* Chatbot Input */
.chatbot-input-container {
  padding: 15px 20px;
  background: white;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.chatbot-input {
  flex: 1;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  padding: 12px 20px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
  font-family: 'Lato', sans-serif;
}

.chatbot-input:focus {
  border-color: var(--chatbot-primary);
}

.chatbot-send {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--chatbot-primary);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.chatbot-send:hover:not(:disabled) {
  background: #d4b06a;
  transform: scale(1.05);
}

.chatbot-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chatbot-send i {
  font-size: 18px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .chatbot-container {
    width: calc(100vw - 20px);
    height: calc(100vh - 120px);
    right: 10px;
    bottom: 90px;
    border-radius: 15px;
  }

  .chatbot-button {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }

  .chatbot-button i {
    font-size: 24px;
  }
}

/* Welcome Message Styling */
.welcome-message {
  background: linear-gradient(135deg, #f5f5f5, #ffffff);
  padding: 15px;
  border-radius: 12px;
  border-left: 4px solid var(--chatbot-primary);
}

.welcome-message h4 {
  margin: 0 0 8px 0;
  color: var(--chatbot-primary);
  font-size: 15px;
}

.welcome-message p {
  margin: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}
