@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

:root {
  --title-font: 'Inter', sans-serif;
  --message-font: 'Inter', sans-serif;
  --input-font: 'Inter', sans-serif;
}

.chat-bubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #294d51;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(41,72,75,0.1);
  z-index: 1000;
  transition: transform 0.2s ease-in-out;
}

.chat-bubble:hover {
  transform: scale(1.1);
}

.chat-bubble::before {
  content: '';
  display: block;
  width: 24px;
  height: 24px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2"><path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z"/></svg>') no-repeat center;
  background-size: contain;
}

.chat-window {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 320px;
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(41,72,75,0.1);
  display: none;
  z-index: 1000;
}

.chat-window.active {
  display: block;
  animation: slideIn 0.3s ease-in-out;
}

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

.chat-header {
  background: #294d51;
  color: white;
  padding: 12px 10px;
  min-height: 40px;
  border: 1px solid #294d51;
  border-radius: 10px 10px 0px 0px;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  font-family: poppins;
}

.chat-logo {
  width: 30px;
  height: 30px;
  background: #ffffff;
  border-radius: 50%;
  margin-right: 10px;
  margin-left: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#29484b" stroke-width="2"><circle cx="12" cy="12" r="10"/><text x="12" y="16" font-size="10" text-anchor="middle" fill="#29484b">B</text></svg>') no-repeat center;
  background-size: cover;
}

.chat-title {
  flex: 1;
  text-align: left;
  margin-left: 2px;
}

.chat-body {
  max-height: 300px;
  overflow-wrap: break-word;
  overflow-y: auto;
  padding: 10px;
  background: #ffffff;
  font-family: poppins;
}

.chat-input-wrapper {
  background: #ffffff;
  padding-bottom: 10px;
  border-radius: 0px 0px 10px 10px;
}

.chat-input-container {
  display: flex;
  border-top: 1px solid #eee;
  background: #ffffff;
  padding: 10px;
}

.chat-input {
  flex: 1;
  padding: 10px;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: poppins;
  background: #ffffff;
}

.chat-input::placeholder {
  color: #999;
  font-family: poppins;
}

.chat-send {
  padding: 10px;
  background: #ffffff;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
}

.chat-send.active {
  display: flex;
}

.chat-send svg {
  width: 20px;
  height: 20px;
}

.chat-send:hover svg {
  stroke: #DBF4E9;
}

.message {
  background: #f1f2f8;
  color: #333;
  margin-right: 18%;
  margin-bottom: 15px;
  margin-top: 10px;
  margin-left: 5px;
  padding: 12px 14px;
  border-radius: 8px;
  border-bottom-left-radius: 2px;
  font-size: 14px;
  line-height: 1.4;
  font-family: poppins;
}

.message.user {
  background: #294d51 !important;
  color: white !important;
  margin-top: 10px !important;
  margin-right: 5px !important;
  margin-left: 18% !important;
  margin-bottom: 15px !important;
  border-bottom-right-radius: 0px !important;
  border-bottom-left-radius: 8px !important;
}

.message.bot {
  background: #f1f2f8;
  color: #294d51;
  margin-right: 18%;
  margin-bottom: 15px;
  border-bottom-left-radius: 2px;
}

.message.bot ul, .message.bot ol {
  margin: 8px 0;
  padding-left: 20px;
}

.message.bot ul {
  list-style-type: disc;
}

.message.bot ol {
  list-style-type: decimal;
}

.message.bot li {
  margin-bottom: 4px;
}

.message.bot p {
  margin: 8px 0;
}

.message.bot h1, .message.bot h2, .message.bot h3 {
  margin: 8px 0;
  font-weight: 500;
}

.message.bot h1 {
  font-size: 16px;
}

.message.bot h2 {
  font-size: 14px;
}

.message.bot h3 {
  font-size: 12px;
}

.message.bot strong {
  font-weight: 500;
}

.chat-body::-webkit-scrollbar {
  width: 6px;
}

.chat-body::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.chat-body::-webkit-scrollbar-thumb {
  background: #294d51;
  border-radius: 3px;
}

@media (max-width: 480px) {
  .chat-window {
    width: 90%;
    right: 5%;
  }
}
