body,
html {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background: #000;
  color: #ccc;
}

.dark-background {
  background: #000;
  color: #ccc;
}

.center-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  flex-direction: column;
}

.two-btn-container {
  display: flex;
  gap: 10px !important;
}

.capsule-btn {
  background: #555;
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  text-align: center;
  cursor: pointer;
  width: 200px;
  height: 13px;
  display: flex;
  align-items: center; /* 垂直居中 */
  justify-content: center; /* 水平居中 */
}

.capsule-btn:hover {
  background: #777;
}

.form-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.capsule-input {
  background: #333;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  color: #fff;
  outline: none;
  width: 200px;
}

.chat-list-container {
  padding: 20px;
}

.chat-capsule {
  background: #333;
  border-radius: 999px;
  padding: 10px 20px;
  color: #fff;
  margin: 10px 0;
  cursor: pointer;
  transition: background 0.3s ease;
}

.chat-capsule:hover {
  background: #444;
}

.plus-sign {
  font-size: 20px;
  margin-right: 10px;
}

.chat-room-header {
  display: flex;
  align-items: center;
  background: #111;
  padding: 10px;
}

.user-icon {
  width: 30px;
  height: 30px;
  background: #666;
  border-radius: 50%;
  margin-right: 10px;
}

.message-container {
  height: calc(100vh - 100px);
  overflow-y: auto;
  padding: 10px;
  box-sizing: border-box;
}

.message-bubble {
  max-width: 70%;
  margin: 5px 0;
  padding: 10px;
  border-radius: 20px;
  color: #fff;
}

.left-bubble {
  background: #444;
  text-align: left;
  align-self: flex-start;
}

.right-bubble {
  background: #555;
  text-align: right;
  align-self: flex-end;
  margin-left: auto;
}

.input-bar {
  display: flex;
  align-items: center;
  padding: 10px;
  background: #111;
  position: fixed;
  bottom: 0;
  width: 100%;
  box-sizing: border-box;
}

.input-bar .capsule-input {
  flex: 1;
  margin-right: 10px;
}

/* 额外可以在index或登录页增加网站Logo文本示例 */
.logo-text {
  font-size: 30px;
  color: #fff;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* 将index页面的按钮上下排列 */
.two-btn-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-bar {
  display: flex;
  align-items: center;
  padding: 10px;
  background: #111;
  position: fixed;
  bottom: 0;
  width: 100%;
  box-sizing: border-box;
}

.capsule-input {
  flex: 1;
  margin-right: 10px;
}

/* 新增的圆形加号按钮 */
.circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #333;
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s;
  position: relative;
}

.circle-btn:hover {
  background: #555;
}

/* plus-menu 弹出框 */
.plus-menu {
  display: none;
  position: absolute;
  bottom: 50px; /* 位于+按钮的上方 */
  right: 0;
  background: #222;
  padding: 10px;
  border-radius: 10px;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.icon-btn {
  width: 40px;
  height: 40px;
  background: #333;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 20px;
}

.icon-btn:hover {
  background: #555;
}
