/* Chat Widget Bubble */
#chat-widget {
  position: fixed;
  bottom: 100px;
  right: 20px;
  background: #007BFF;
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  text-align: center;
  line-height: 50px;
  cursor: pointer;
  z-index: 1000;
  animation: bounce 2s ease infinite;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Bounce animation */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Chat Box */
#chat-box {
  position: fixed;
  bottom: 170px;
  right: 20px;
  width: 320px;
  max-height: 0;
  opacity: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  font-family: system-ui, sans-serif;
  display: none;
  flex-direction: column;
  z-index: 1000;
  transition: all 0.4s ease;
}

#chat-box.open {
  max-height: 400px;
  opacity: 1;
  display: flex !important;
}

/* Chat Header */
#chat-header {
  background: #007BFF;
  color: white;
  padding: 10px;
  text-align: center;
  font-weight: bold;
  position: relative;
}

.close-chat {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: white;
}

/* Chat Body */
#chat-body {
  padding: 10px;
  overflow-y: auto;
  height: 250px;
}

/* Input Box */
#chat-input {
  width: 100%;
  border: none;
  border-top: 1px solid #ccc;
  padding: 10px;
  box-sizing: border-box;
  outline: none;
}
