body {
  background-color: #f0f2f5;
}
#rightSidebar {
  max-height: 80vh; /* Giới hạn chiều cao, có thể điều chỉnh */
  overflow-y: auto; /* Cho phép cuộn theo chiều dọc */
  position: sticky;
  top: 15px; /* Giữ cố định khi cuộn trang */
}

.sidebar {
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  position: relative;
  z-index: 2;
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
}

.friend {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.friend img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.friend-list {
  background-color: white;
  border-radius: 8px;
  padding: 15px;
}

.edit-info-container {
  display: flex;
  justify-content: center;
  margin: 15px 0;
}

input.form-control.rounded-pill {
  background-color: #f0f2f5;
  border: none;
  padding-left: 15px;
}

.post {
  margin-bottom: 20px; /* Khoảng cách giữa các bài viết */
}

.post-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.post-images img {
  width: calc(50% - 5px); /* 2 ảnh mỗi dòng, cách nhau 10px */
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.post .d-flex {
  display: flex;
  align-items: center;
}

.post .d-flex img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}
@media (max-width: 768px) {
  .menu {
    gap: 10px;
    padding: 6px 8px;
  }

  .menu a {
    font-size: 13px;
    padding: 5px 8px;
  }

  .login-icon {
    width: 18px;
    height: 18px;
  }
  .menu {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 8px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }

  .menu::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }

  .menu a {
    flex-shrink: 0;
    padding: 6px 10px;
    font-size: 14px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
  }

  /* Định dạng icon đăng nhập */
  .login-icon {
    width: 20px;
    height: 20px;
  }
}
/* cách với header */
.sidebar {
  padding-top: 80px;
}
.friend-list {
  padding-top: 80px;
}
.thanhtrangthai {
  padding-top: 80px;
}
