body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
}

.container {
  display: flex;
  flex-direction: column;
  height: 100vh; /* 100% of the viewport height */
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #333;
  color: white;
  padding: 10px;
}

.top-bar input,
.top-bar button,
.top-bar p {
  margin: 0 10px;
}

.content {
  display: flex;
  flex: 1;
  overflow: hidden; /* Prevent scrolling in the content area */
}

.column {
  flex: 1;
  padding: 20px;
  border: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-left: 10px; /* 줄여진 왼쪽 여백 */
}

.column:nth-child(odd) {
  background-color: #f9f9f9;
}

.column:nth-child(even) {
  background-color: #e9e9e9;
}

.friends {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Prevent scrolling in the chatroom area */
}

.chatroom {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Prevent scrolling in the chatroom area */
}

.messages {
  flex: 1;
  overflow-y: auto; /* Enable scrolling in the messages area */
  padding-left: 5px;
}

.chat-form {
  display: flex;
}

.chat-form input {
  flex: 1;
}

.chatroom-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px;
  border-bottom: 1px solid #ddd;
}

.chatroom-item img {
  border-radius: 50%;
}

.chatroom-info {
  flex: 1;
  margin-left: 5px;
}

.chatroom-info p {
  margin: 0;
}

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

.message-item.mine {
  justify-content: flex-end;
}

.message-content {
  display: flex;
  align-items: center;
}

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

.message-text {
  margin: 0 10px;
}

.message-time {
  font-size: 0.8em;
  color: gray;
}
.online {
  color: red;
  font-size: 14px; /* 텍스트 크기 */
  font-weight: 300; /* 굵기 (400이 기본값, 더 얇게 하려면 숫자를 낮추세요) */
  font-style: italic; /* 이탤릭체 */
  padding-left: 5px; /* 왼쪽 여백 */
}

.offline {
  color: gray;
  font-size: 14px; /* 텍스트 크기 */
  font-weight: 300; /* 굵기 (400이 기본값, 더 얇게 하려면 숫자를 낮추세요) */
  font-style: italic; /* 이탤릭체 */
  padding-left: 5px; /* 왼쪽 여백 */
}

p[data-new-count] {
  color: red; /* 글자 색상 빨간색 */
  font-weight: bold; /* 굵기 */
  text-align: right; /* 오른쪽 정렬 */
}

#chatroomList {
  padding-left: 5px;
  flex: 1;
  overflow-y: auto;
}
#chatroomsList li {
  display: flex; /* Use flexbox for alignment */
  align-items: center; /* Center items vertically */
}

#friendsList {
  list-style-type: none; /* Remove default bullet points */
  padding: 5px; /* Remove default padding */
  flex: 1;
  overflow-y: auto; /* Enable scrolling in the messages area */
  padding-left: 5px;
}

#friendsList li {
  display: flex; /* Use flexbox for alignment */
  align-items: center; /* Center items vertically */
  padding: 20px 0; /* Add vertical padding for spacing */
  border-bottom: 1px solid #ccc; /* Add a bottom border */
}

#friendsList li:last-child {
  border-bottom: none; /* Remove border from the last item */
}

#loginStatus {
  color: white;
}

/* 알림 창 관련 */
.notification-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  margin-left: 10px;
  position: relative;
}

.notifications {
  display: none;
  position: absolute;
  top: 30px;
  right: 0;
  background-color: white;
  border: 1px solid #ccc;
  width: 350px;
  max-height: 400px;
  min-height: 400px;
  overflow-y: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px;
  border-radius: 10px;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.notification-header h2 {
  margin: 0;
  color: black;
}

.tabs {
  display: flex;
  border-bottom: 2px solid #eee;
  margin-bottom: 15px;
}

.tab {
  padding: 10px 20px;
  cursor: pointer;
  color: black;
}

.tab.active {
  border-bottom: 2px solid #6200ea;
  color: #6200ea;
}

.notification-items {
  max-height: 300px; /* 고정된 높이 */
  overflow-y: auto; /* 스크롤 생성 */
}

.notification-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 15px;
}

.notification-text {
  flex-grow: 1;
}

.notification-time {
  font-size: 12px;
  color: #888;
}

.notification-item.read .notification-text p {
  color: black;
}

.notification-item.unread .notification-text p {
  color: gray;
}

/* 채팅방 내부 메뉴 버튼 */
.column {
  position: relative;
}

/* h2 요소 스타일 */
.column h2 {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
}

/* 점 세개 버튼 스타일 */
#menuButton {
  position: absolute;
  right: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px; /* 텍스트 크기 설정 */
  font-weight: bold; /* 텍스트 굵게 처리 */
}

/* 새로고침 버튼 스타일 */
#fetchChatroomsButton {
  position: absolute;
  right: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 30px; /* 텍스트 크기 설정 */
}

#fetchFriendsButton {
  position: absolute;
  right: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 30px; /* 텍스트 크기 설정 */
}

/* 팝업 메뉴 스타일 */
.popup-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background-color: white;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  width: 150px;
  z-index: 1000;
}

/* 팝업 메뉴 리스트 스타일 */
.popup-menu ul {
  padding: 0;
  margin: 0;
}

.popup-menu li {
  list-style: none;
}

/* 메뉴 아이템 스타일 */
.menu-item {
  width: 100%;
  padding: 10px;
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 16px;
  color: #333;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s;
}

.menu-item:hover {
  background-color: #f1f1f1;
}

.menu-item:last-child {
  border-bottom: none;
}

/* 친구 목록 즐겨찾기 */
.star {
  font-size: 24px;
  color: gray;
  cursor: pointer;
  margin-left: auto;
  font-weight: bold;
}

.star.liked {
  color: #6200ea; /* 보라색 */
}

.user-info {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.user-info img {
  margin-right: 10px;
}

/* 시스템 메시지 */
.system-message {
  text-align: center;
  padding: 10px 0;
  background-color: #5d5d5d;
  color: white;
  border-radius: 10px;
  margin: 10px 0;
}

.system-message .message-content {
  width: 100%;
  display: flex;
  justify-content: center; /* 수평 가운데 정렬 */
  align-items: center; /* 수직 가운데 정렬 */
  height: 100%; /* 부모 요소의 높이를 채우도록 설정 */
}

.system-message .message-content .message-text {
  font-size: small;
}

/* 차단 팝업 */
#blockPopup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  border-radius: 10px;
}

#blockPopup .popup-content {
  text-align: center;
}

#blockPopup button {
  margin: 10px;
  padding: 10px 20px;
  cursor: pointer;
}

/* 게시판 말걸어보기 테스트 팝업 스타일 */
#boardIdPopup {
  display: none;
  position: fixed;
  position: absolute;
  top: 50%;
  left: 50%;
  /*transform: translate(-50%, -50%); */
  background-color: white;
  padding: 20px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border-radius: 10px;
}

#boardIdPopup .popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#boardIdPopup .popup-content form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#boardIdPopup .popup-content label {
  color: black;
}

#boardIdPopup .popup-content input {
  padding: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

#boardIdPopup .popup-content button {
  padding: 10px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
}

#boardIdPopup .popup-content button[type="submit"] {
  background-color: #6200ea;
  color: white;
}

#boardIdPopup .popup-content button[type="button"] {
  background-color: #ccc;
  color: black;
}

/* 매칭 채팅방 테스트 팝업 스타일 */
#matchingMemberIdPopup {
  display: none;
  position: fixed;
  position: absolute;
  top: 50%;
  left: 50%;
  /*transform: translate(-50%, -50%); */
  background-color: white;
  padding: 20px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border-radius: 10px;
}

#matchingMemberIdPopup .popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#matchingMemberIdPopup .popup-content form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#matchingMemberIdPopup .popup-content label {
  color: black;
}

#matchingMemberIdPopup .popup-content input {
  padding: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

#matchingMemberIdPopup .popup-content button {
  padding: 10px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
}

#matchingMemberIdPopup .popup-content button[type="submit"] {
  background-color: #6200ea;
  color: white;
}

label {
  display: block;
  margin-bottom: 10px;
  margin-left: 10px;
  color: #5c5c5c;
}
input[type="text"],
input[type="number"],
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  box-sizing: border-box;
  margin-bottom: 20px;
}
.input-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 5px;
}
.input-group input,
.input-group select {
  margin: 5px;
  width: 48%;
}
