/* Chatbot Toggle Button */
.chatbot-toggle {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: var(--color-accent, #e1ec3c);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  z-index: 9999;
  transition: transform 0.3s ease;
}

.chatbot-toggle:hover {
  transform: scale(1.08);
}

/* Chatbot Window */
.chatbot-window {
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 350px;
  height: 500px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s ease;
  font-family: inherit;
}

.chatbot-window.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* Header */
.chatbot-header {
  background-color: var(--color-primary, #018079);
  color: #fff;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header-info h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.chatbot-header-info p {
  margin: 0;
  font-size: 0.75rem;
  opacity: 0.8;
  margin-top: 3px;
}

.chatbot-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px;
}

/* Body */
.chatbot-body {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Messages */
.chat-message {
  max-width: 80%;
  font-size: 0.9rem;
  line-height: 1.4;
  animation: fadeIn 0.3s ease;
}

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

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

.chat-message.bot .msg-content {
  background-color: #e5e7eb;
  color: #1f2937;
  padding: 10px 14px;
  border-radius: 12px 12px 12px 0;
}

.chat-message.user {
  align-self: flex-end;
}

.chat-message.user .msg-content {
  background-color: var(--color-primary, #018079);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px 12px 0 12px;
}

/* Footer */
.chatbot-footer {
  padding: 1rem;
  background-color: #fff;
  border-top: 1px solid #eee;
  display: flex;
  gap: 8px;
}

.chatbot-footer input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 20px;
  outline: none;
  font-size: 0.9rem;
  transition: border 0.3s;
}

.chatbot-footer input:focus {
  border-color: var(--color-primary, #018079);
}

.chatbot-footer button {
  background-color: var(--color-accent, #e1ec3c);
  color: #000;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.2s;
}

.chatbot-footer button:hover {
  transform: scale(1.1);
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .chatbot-window {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    border-radius: 0;
    z-index: 99999;
  }
  .chatbot-toggle {
    bottom: 20px;
    right: 20px;
  }
}
