/* 공개 채팅 영역을 좀 더 예쁘게 */
.public-chat {
  border: 2px solid #ffbbcc;
  border-radius: 10px;
  padding: 10px;
  margin: 40px 0;
  background: linear-gradient(135deg, #fff0f6, #f0ffff);
  box-shadow: 0 4px 10px rgba(255, 187, 204, 0.3);
  max-height: 420px; /* 높이 */
  overflow: hidden;
}

/* 메시지 목록 영역 */
.chat-messages {
  height: 260px;
  overflow-y: auto;
  background: #fff;
  padding: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 5px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

/* 메시지 한 줄씩 */
.chat-message {
  margin-bottom: 8px;
  font-family: "맑은 고딕", sans-serif; /* 예시 */
}

/* 닉네임 부분 + 이모티콘 */
.chat-message .nick {
  font-weight: bold;
  margin-right: 5px;
  color: #ff5e6c; /* 기존 #007bff → 핑크 계열로 */
}

/* 이모티콘을 살짝 더 눈에 띄게 */
.chat-message .emoticon {
  display: inline-block;
  margin-right: 4px;
  font-size: 16px; /* 글자보다 조금 크게 */
}

/* 채팅 입력 폼 */
#chat-form {
  display: flex;
  margin-top: 10px;
}

/* 입력창 */
#chat-input {
  flex: 1;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
}

/* 전송 버튼 */
#chat-form button {
  padding: 8px 15px;
  font-size: 14px;
  background: #ff69b4; /* 핑크 */
  color: #fff;
  border: none;
  margin-left: 5px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
#chat-form button:hover {
  background: #ff86c8;
}

/* 현재 접속자 수 표시 */
.chat-users {
  text-align: center;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}
