#ai_avatar {
    background: url(/Content/images/debateimages/chatbot.png) no-repeat top center / cover;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 999;
    aspect-ratio: 1 / 1;
    border-radius: 30px;
    margin-right: 8px;
    padding: 8px;
}
#startChatBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 24px;
  background-color:#276dac;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 1000;
}
#startChatBtn:hover {
  background-color: #0056b3;
}

#chatContainer {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 380px;
  height: 500px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #f0f2f5;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
}

#chatHeader {
  background-color:#276dac;
  color: white;
  padding: 10px 15px;
  border-radius: 10px 10px 0 0;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

#closeChat {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

#chat {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.message-row {
  display: flex;
  margin-bottom: 12px;
}

.bot-row {
  justify-content: flex-start;
}

.user-row {
  justify-content: flex-end;
}

.message-bubble {
  padding: 10px 15px;
  border-radius: 18px;
  max-width: 80%;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.bot-bubble {
  background-color: #ffffff;
  color: #333;
  border: 1px solid #e9e9eb;
  border-top-left-radius: 5px;
}

.user-bubble {
  background-color:#276dac;
  color: white;
  border-bottom-right-radius: 5px;
}

.system-message {
  text-align: center;
  color: #666;
  padding: 10px;
  font-size: 14px;
}
.error-message {
  color: #dc3545;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 10px;
  border-radius: 5px;
  margin: 10px;
}

#inputArea {
  display: flex;
  padding: 10px;
  border-top: 1px solid #ddd;
  background-color: #fff;
  flex-shrink: 0;
}

#input { 
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 20px;
  margin-right: 10px;
  font-size: 14px;
}

#send { 
  width: 70px;
  padding: 10px;
  background-color:#276dac;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
}

#send:hover:not(:disabled) {
  background-color: #0056b3;
}

#send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}