#chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #000000;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
}

/* Chat widget container */
#chat-widget {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 420px;
  max-height: 500px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  font-family: "Segoe UI", Roboto, sans-serif;
}

/* Header */
#chat-header {
  background: #fff;
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

#chat-header::before {
  content: "AI";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e5e7eb;
  font-size: 13px;
  font-weight: bold;
  color: #444;
}

/* Chat messages area */
#chat-box {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f9fafb;
}

/* Generic message bubble */
.msg {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

/* Bot message */
.bot-msg {
  align-self: flex-start;
  background: #f0f0f0;
  color: #000;
  border-top-left-radius: 4px;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.bot-msg::before {
  content: "AI";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e5e7eb;
  font-size: 12px;
  font-weight: bold;
  color: #444;
  flex-shrink: 0;
}

/* User message */
.user-msg {
  align-self: flex-end;
  background: #0d6efd;
  color: #fff;
  border-top-right-radius: 4px;
}

/* Input area */
#chat-input {
  display: flex;
  align-items: center;
  padding: 8px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

#chat-input input {
  flex: 1;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
}

#chat-input button {
  margin-left: 8px;
  background: #111827;
  border: none;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 16px;
}
