.chat-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(#3d6aff, #5c82ffa9);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.chat-button img {
  width: 60%;
}

.chat-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(26, 79, 255, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(26, 79, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(26, 79, 255, 0);
  }
}

.chat-button {
  animation: pulse 2s infinite;
}

.chat-modal {
  position: fixed;
  bottom: 5rem;
  right: 2rem;
  width: 350px;
  height: 500px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 999;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  padding: 1rem;
  background: #f7fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.ai-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1a4fff;

  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.ai-avatar img {
  width: 60%;
}
.ai-info p {
  font-size: 18px;
  color: #23364d;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ai-badge {
  background: #1a4fff;
  color: white;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
}

.chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: auto;
}

.message {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  position: relative;
  height: auto;
}

.message.user {
  background: #1a4fff;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
  height: auto;
  min-height: auto !important;
  max-height: 1000px !important;
}

.message.bot {
  background: #f0f9ff;
  color: #2d3748;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  height: auto;
  min-height: auto !important;
  max-height: 1000px !important;
}

.chat-input {
  padding: 1rem;
  background: #f7fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 1rem;
}

.chat-input input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.95rem;
  outline: none;
}

.chat-input input:focus {
  border-color: #1a4fff;
}

.send-button {
  background: #1a4fff;
  color: white;
  border: none;
  padding: 0 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 18px;
}

.send-button:hover {
  background: #1a4fff;
}

.ai-notice {
  background: #f8f4ff;
  border: 1px solid #e9d8fd;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  color: #553c9a;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ai-notice i {
  color: #1a4fff;
}

@media (max-width: 768px) {
  .chat-modal {
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    border-radius: 0;
  }
}

.chat-close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #718096;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.chat-close:hover {
  color: #2d3748;
}
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: #1a4fff;
  border-radius: 50%;
  animation: typing 1.5s infinite ease-in-out;
}

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

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

@keyframes typing {
  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}
