/* Floating chat button */
#dv-chat-button {
  position: fixed;
  bottom: 25px;
  left: 25px;
  background: #111;
  color: white;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 9999;
}
#dv-chat-button:hover {
  background: #0af;
  transform: scale(1.05);
}

/* Chat box container */
#dv-chat-box {
  position: fixed;
  bottom: 100px;
  left: 25px;
  width: 340px;
  height: 480px;
  background: #1a1a1a;
  color: #f1f1f1;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 9998;
}

/* Opened state */
#dv-chat-box.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* Header */
#dv-chat-header {
  background: #0af;
  color: white;
  padding: 12px 15px;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#dv-close {
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: #fff;
  opacity: 0.8;
}
#dv-close:hover {
  opacity: 1;
}

/* Chat body */
#dv-body {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Chat messages */
.msg {
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 80%;
  line-height: 1.4;
  font-size: 14px;
  word-wrap: break-word;
  animation: fadeIn 0.2s ease;
}
.msg.user {
  align-self: flex-end;
  background: #0af;
  color: white;
}
.msg.bot {
  align-self: flex-start;
  background: #333;
  color: #f1f1f1;
}

/* Typing effect */
.msg.typing {
  opacity: 0.7;
  font-style: italic;
  animation: blink 1.5s infinite;
}

/* Input area */
#dv-input {
  display: flex;
  padding: 10px;
  border-top: 1px solid #222;
  background: #111;
}
#dv-msg {
  flex: 1;
  border: none;
  background: #222;
  color: #fff;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
  outline: none;
}
#dv-send {
  background: #0af;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 12px;
  margin-left: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.25s ease;
}
#dv-send:hover {
  background: #09f;
}

/* Animations */
@keyframes blink {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
