body,
html {
  margin: 0;
  height: 100%;
  overflow: hidden;
  /* padding: 10px; */
  background-color: transparent;
}

.window {
  margin: 0;
  height: calc(100% - 0.2rem);
  background: #2b2815;
}

.title-bar-controls {
  display: flex;
}

.title-bar-btn {
  width: 16px;
  height: 16px;
  margin-left: 2px;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
}

.chat-content {
  overflow-y: auto;
  height: calc(100% - 3rem);
  font-size: 18px;
  scroll-behavior: smooth;
}

.chat-message {
  border: 1px solid #3e4446;
  padding: 10px;
  margin: 10px;
  border-radius: 5px;
  background-color: #1e2021;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  color: #fff;
}

.chat-message.alert {
  border: 4px solid #ff0000;
  background-color: #1e2021;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.999);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
  }
}

.chat-message img.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.chat-message img.message-image {
  max-width: 70%;
  margin-top: 10px;
  display: block;
}

.chat-message img.emoji {
  width: 20px;
  height: 20px;
  vertical-align: -4px;
  margin: 0 0.1rem;
}

.info-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
}

.message-content {
  word-wrap: break-word;
  word-break: break-word;
}

.timestamp {
  color: #8d8d8d;
  font-size: 0.95rem;
  margin: 0 0.3rem;
}

::-webkit-scrollbar-track {
  background: #1e2021;
}

.chat-content::-webkit-scrollbar-track {
  background: #1e2021;
}

code {
  background-color: #2f3136;
  color: #ffffff;
  padding: 2px 4px;
  border-radius: 3px;
}
