
body {
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#chat-container {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  max-height: 70vh;
  scroll-behavior: smooth;
}

.message {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  margin-right: 10px;
  flex-shrink: 0;
}

.bubble {
  background-color: white;
  border-radius: 15px;
  padding: 10px 15px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  max-width: 70%;
}

.username {
  font-weight: bold;
  margin-bottom: 5px;
}

#message-form {
  display: flex;
  border-top: 1px solid #ddd;
  padding: 4px;
  background: white;
}

#message-input {
  flex: 1;
  border: none;
  padding: 10px;
  outline: none;
}

#send-btn {
  background:  #0D4A7A;
  border: none;
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  margin-left: 10px;
  cursor: pointer;
}

#send-btn:hover {
  background: #218838;
}

.loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #007bff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 30px auto;
  display: none;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

footer {
  text-align: center;
  padding: 5px 0;
  background: #222;
  color: #fff;
  font-size: 14px;
}

a {
  color: #007bff;
  text-decoration: underline;
  word-break: break-all;
}

.scroll-btn {
  position: fixed;
  bottom: 120px;
  right: 20px;
  background: #0D4A7A;
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 20px;
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: opacity 0.3s ease;
}

.scroll-btn:hover {
  background:  #0D4A7A;
}


/*
.reply-box {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: #e6f0ff;
  border-left: 4px solid #0D4A7A;
  padding: 8px 12px;
  margin: 0 10px 5px 10px;
  border-radius: 8px;
}

.reply-box span {
  flex: 1;
  font-size: 14px;
  color: #0D4A7A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reply-box button {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #555;
}

.reply-ref {
  background: #f1f1f1;
  border-left: 3px solid #0D4A7A;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 13px;
  color: #0D4A7A;
  cursor: pointer;
  margin-bottom: 5px;
  display: inline-block;
}

.reply-ref:hover {
  background: #e6f0ff;
}

*/




