/* Floating Button */
#chat-toggle-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: orange;
  color: white;
  width: 60px;
  height: 60px;
  font-size: 24px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

/* Chat Container */
#chat-container {
  position: fixed;
  right: 20px;
  bottom: 40px;
  max-width: 33%;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  background: white;
  z-index: 9999;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.4s ease-in-out, opacity 0.3s ease-in-out;
  opacity: 0;
  pointer-events: none;
}

#chat-container.chat-visible {
  transform: translateY(0%);
  opacity: 1;
  pointer-events: all;
}

/* Chat Header */
#chat-header {
  background: black;
  color: white;
  padding: 12px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chat-close {
  cursor: pointer;
  font-size: 18px;
}

/* Chat Box */
#chat-box {
  height: 300px;
  overflow-y: auto;
  padding: 10px;
}

#chat-box div {
  margin-bottom: 12px;
}

#chat-box .user { 
  text-align: right; 
}

#chat-box .bot { 
  text-align: left; 
}

/* Chat Input Area */
#chat-input-container {
  display: flex;
  border-top: 1px solid #ddd;
}

#chat-input {
  flex: 1;
  font-family: Tiempos, serif;
  padding: 10px;
  border: none;
  outline: none;
}

#chat-input::placeholder {
  font-family: Tiempos, serif;
}

#chat-send {
  padding: 10px 16px;
  border: none;
  background: orange;
  color: white;
  cursor: pointer;
  display: inline-block;
  min-width: 140px;
  height: 50px;
  padding: 0 10px;
  outline: 0;
  color: #fff;
  font-family: TradeGothic, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 50px;
  text-align: center;
  text-transform: uppercase;
  transition: all .3s ease 0s;
}

