/* Chat Container */
.chat-widget-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99999;
  font-family: "Inter", sans-serif;
}

/* Floating Action Button */
.chat-fab {
  width: 60px;
  height: 60px;
  background-color: #0b0d17; /* Dark background from design */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  outline: none;
}

.chat-fab:hover {
  transform: scale(1.1);
}

.chat-fab img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* Chat Window */
.chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  height: 600px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  transform: scale(0);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid #e0e0e0;
}

.chat-window.active {
  transform: scale(1);
  opacity: 1;
  visibility: visible;
}

/* Chat Header */
.chat-header {
  padding: 16px 20px;
  background-color: #fff;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo {
  height: 30px;
}

.close-chat-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #666;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Chat Body */
.chat-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background-color: #fff;
  background-color: #fff;
}

.chat-date {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin-bottom: 20px;
}

.message-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.bot-message-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.bot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #ffeef0; /* Light pinkish bg */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d90a2c; /* Theme red/pink */
  font-weight: bold;
  font-size: 16px;
  flex-shrink: 0;
}

.message-bubble {
  background-color: #f7f7f8;
  padding: 16px;
  border-radius: 12px;
  border-top-left-radius: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #0b0d17;
  max-width: 85%;
}

.highlight-text {
  font-weight: 600;
}

.message-actions {
  display: flex;
  gap: 16px;
  margin-left: 48px;
  margin-top: 5px;
}

.action-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #666;
  font-size: 14px;
  padding: 0;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.action-btn:hover {
  opacity: 1;
  color: #0b0d17;
}

/* Chat Footer */
.chat-footer {
  padding: 16px 20px;
  border-top: 1px solid #f0f0f0;
  background-color: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.input-container {
  display: flex;
  align-items: center;
  width: 100%;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 50px;
  padding: 8px 16px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.chat-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: #333;
  background: transparent;
  padding: 8px 0;
}

.chat-input::placeholder {
  color: #aaa;
}

.input-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mic-btn,
.send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.mic-btn {
  background-color: #3f51b5; /* Purple/Blue */
  color: white;
}

.send-btn {
  background-color: #3f51b5; /* Purple/Blue */
  color: white;
}

.mic-btn:hover,
.send-btn:hover {
  opacity: 0.9;
}

.powered-by {
  font-size: 11px;
  color: #999;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.powered-by img {
  height: 12px;
  opacity: 0.8;
}

/* Scrollbar Style */
.chat-body::-webkit-scrollbar {
  width: 6px;
}

.chat-body::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.chat-body::-webkit-scrollbar-thumb {
  background: #d1d1d1;
  border-radius: 3px;
}

.chat-body::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .chat-window {
    bottom: 0px;
    right: 0px;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .chat-widget-container {
    bottom: 20px;
    right: 20px;
  }
}
