

/* Чат икона */
#chat-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: white;
  color: black;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#chat-toggle svg {
  width: 28px;
  height: 28px;
  fill: black;
}

/* Прозорец */
#chat-window {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 360px;
  height: 500px;
  background-color: #0f172a;
  color: white;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: none;
  flex-direction: column;
  z-index: 1001;
}

#chat-header {
  background-color: #1e293b;
  color: white;
  padding: 12px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

#chat-body {
  padding: 12px;
  flex: 1;
  overflow-y: auto;
  background-color: #1e1e2f;
}

#chat-body .message {
  margin-bottom: 10px;
}

#chat-body .user {
  font-weight: bold;
  color: #ffffff;
}

#chat-body .bot {
  background-color: #2c2c40;
  padding: 8px;
  border-radius: 8px;
  color: white;
}

#chat-input {
  display: flex;
  border-top: 1px solid #444;
  padding: 10px;
  background-color: #0f172a;
}

#chat-input input {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #444;
  background-color: #2c2c40;
  color: white;
  margin-right: 8px;
}

#chat-input input::placeholder {
  color: #ccc;
}

#chat-input button {
  padding: 8px 12px;
  background-color: white;
  color: black;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

img {
  max-width: 100%;
  border-radius: 8px;
  margin-top: 5px;
}

#typing-indicator::after {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  background: #ccc;
  margin-left: 5px;
  animation: bounce 1s infinite ease-in-out alternate;
}

@keyframes bounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}