/* Floating Chat Button (like screenshot) */
.chat-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0d6efd; /* your platform blue */
  color: white;
  border: none;
  border-radius: 12px;   /* small rounded corners */
  width: 55px;
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
}
.chat-btn:hover {
  background: #0b5ed7;
  transform: scale(1.05);
}

/* Chat Box */
.chat-box {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 320px;
  max-height: 420px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  display: none; /* hidden by default */
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
}

/* Open state */
.chat-open {
  display: flex !important;
  animation: fadeInUp 0.3s ease;
}

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

/* Header */
.chat-header {
  background: #0d6efd;
  color: white;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.chat-header .close-chat {
  position: absolute;
  right: 10px;
  top: 8px;
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

/* Body */
.chat-body {
  flex: 1;
  padding: 12px;
  font-size: 14px;
  color: #333;
  overflow-y: auto;
}

/* Footer */
.chat-footer {
  display: flex;
  border-top: 1px solid #eee;
}
.chat-footer input {
  flex: 1;
  padding: 10px;
  border: none;
  outline: none;
  font-size: 14px;
}
.chat-footer button {
  background: #0d6efd;
  border: none;
  color: white;
  padding: 10px 15px;
  cursor: pointer;
}
.chat-footer button:hover {
  background: #0b5ed7;
}
