/* Chatbot Widget Styles */
.chatbot {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  font-family: 'Lato', sans-serif;
}

.chatbot__button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  box-shadow: 0 4px 20px rgba(225, 170, 125, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.chatbot__button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(225, 170, 125, 0.6);
}

.chatbot__button:active {
  transform: scale(0.95);
}

.chatbot__button-icon {
  width: 28px;
  height: 28px;
  fill: var(--dark-bg);
  transition: transform 0.3s ease;
}

.chatbot__button.is-open .chatbot__button-icon {
  transform: rotate(180deg);
}

.chatbot__window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 2rem);
  height: 600px;
  max-height: calc(100vh - 120px);
  background: rgba(106, 46, 53, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.chatbot__window.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.chatbot__header {
  padding: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(106, 46, 53, 0.8);
  border-radius: 16px 16px 0 0;
}

.chatbot__header-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
}

.chatbot__header-subtitle {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.chatbot__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}

.chatbot__close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.chatbot__messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scroll-behavior: smooth;
}

.chatbot__messages::-webkit-scrollbar {
  width: 6px;
}

.chatbot__messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.chatbot__messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.chatbot__messages::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.chatbot__message {
  display: flex;
  gap: 0.75rem;
  animation: messageSlideIn 0.3s ease;
}

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

.chatbot__message--user {
  flex-direction: row-reverse;
}

.chatbot__message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.chatbot__message--user .chatbot__message-avatar {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--dark-bg);
}

.chatbot__message--assistant .chatbot__message-avatar {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
}

.chatbot__message-content {
  max-width: 75%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  line-height: 1.5;
  font-size: 0.9rem;
  word-wrap: break-word;
}

.chatbot__message--user .chatbot__message-content {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--dark-bg);
  border-bottom-right-radius: 4px;
}

.chatbot__message--assistant .chatbot__message-content {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chatbot__typing {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  max-width: 75px;
}

.chatbot__typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: typingDot 1.4s infinite;
}

.chatbot__typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.chatbot__typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingDot {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

.chatbot__input-container {
  padding: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(106, 46, 53, 0.8);
  border-radius: 0 0 16px 16px;
}

.chatbot__input-form {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.chatbot__input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: var(--text);
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  resize: none;
  min-height: 44px;
  max-height: 120px;
  line-height: 1.5;
}

.chatbot__input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.15);
}

.chatbot__input::placeholder {
  color: var(--muted);
}

.chatbot__send {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  color: var(--dark-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chatbot__send:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(225, 170, 125, 0.4);
}

.chatbot__send:active:not(:disabled) {
  transform: scale(0.95);
}

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

.chatbot__send-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.chatbot__error {
  padding: 0.75rem 1rem;
  background: rgba(231, 76, 60, 0.2);
  border: 1px solid rgba(231, 76, 60, 0.4);
  border-radius: 8px;
  color: #ff6b6b;
  font-size: 0.85rem;
  margin: 0.5rem 1.25rem;
  animation: messageSlideIn 0.3s ease;
}

.chatbot__clear-history {
  padding: 0.5rem 1rem;
  margin: 0 1.25rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.chatbot__clear-history:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text);
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .chatbot {
    bottom: 1rem;
    right: 1rem;
  }

  .chatbot__button {
    width: 56px;
    height: 56px;
  }

  .chatbot__window {
    width: calc(100vw - 2rem);
    height: calc(100vh - 100px);
    max-height: 600px;
    bottom: 70px;
    right: 0;
  }

  .chatbot__header {
    padding: 1rem;
  }

  .chatbot__messages {
    padding: 1rem;
  }

  .chatbot__input-container {
    padding: 1rem;
  }
}

/* Print styles */
@media print {
  .chatbot {
    display: none !important;
  }
}


