#share-btn:hover {
  color: #4a7d91;
}

.follow-button-wrapper {
  padding: 0px 10px;
}

@media only screen and (min-width: 520px) {
  .author-title {
    font-size: 16px;
    max-width: 400px;
    height: 30px;
    white-space: nowrap; /* Không cho phép văn bản xuống dòng */
    overflow: hidden; /* Ẩn phần vượt quá khung */
    text-overflow: ellipsis; /* Thêm dấu "..." vào cuối */
  }
}

@media only screen and (max-width: 520px) {
  .author-title {
    font-size: 14px;
    height: 30px;
    max-width: 230px;
    white-space: nowrap; /* Không cho phép văn bản xuống dòng */
    overflow: hidden; /* Ẩn phần vượt quá khung */
    text-overflow: ellipsis; /* Thêm dấu "..." vào cuối */
  }
}

.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  border: none;
  line-height: 0;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.following-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.following-item {
  display: flex;
  align-items: center; /* Căn chỉnh các mục theo trục dọc */
  width: 180px;
  height: 50px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);  
}

a.follower-link {
  padding-left: 8px;
}

.follower-link {
  display: flex;
  align-items: center;
  text-decoration: none; /* Xóa gạch chân của liên kết */
  color: inherit; /* Màu chữ kế thừa từ phần tử cha */
}

.follower-avatar {
  overflow: hidden;
  width: revert-layer;
  object-fit: cover !important; /* Đảm bảo ảnh không bị méo */
  width: 35px !important;
  height: 35px !important;
  border-radius: 50% !important; /* Tạo hình tròn */
  margin-right: 10px; /* Khoảng cách giữa ảnh và tên */
}

.follower-name {
  font-size: 14px;
  overflow: hidden; /* Ẩn các phần của văn bản không vừa với không gian */
  white-space: nowrap; /* Ngăn văn bản từ việc xuống dòng */
  text-overflow: ellipsis; /* Thêm dấu ba chấm khi văn bản bị cắt */
  font-weight: bold;
  color: #4a7d91;
}

.author-container {
  display: flex;
  width: 520px;
  height: 120px;
  margin: 20px auto;
  justify-content: center;
}

@media only screen and (min-width: 520px) {
  .author-container {
    width: 520px;
  }
}

@media only screen and (max-width: 520px) {
  .author-container {
    width: 370px;
  }
}

.author-details {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Căn tên tác giả lên trên và nút follow xuống dưới */
  align-items: flex-start; /* Đảm bảo tên tác giả và nút follow nằm sát lề trái */
  margin-left: 20px; /* Khoảng cách giữa avatar và chi tiết */
  height: 100%; /* Chiều cao đầy đủ */
}

@media only screen and (max-width: 520px) {
  .author-name {
    max-width: 250px;
  }
}

.author-name {
  font-size: 20px;
  text-transform: capitalize;
  margin: 0;
  padding: 0;
  height: 35px;
  align-self: flex-start;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  word-break: break-word;
  margin-bottom: 0px;
  white-space: nowrap;
}

.follow-btn {
  margin: 0;
  padding: 0;
  align-self: flex-start; /* Đảm bảo nút follow nằm sát lề dưới bên trái */
}

@media only screen and (min-width: 520px) {
  .follow-info {
    font-size: 14px;
    width: 290px;
  }
}

@media only screen and (max-width: 520px) {
  .follow-info {
    font-size: 14px;
    width: 290px;
  }
}

.follow-info {
  color: #000;
  padding-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
}

.avatar-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
}



.close-btn {
  position: absolute;
  top: 0;
  right: 0;
  padding: 5px 10px;
  background-color: #f44336; /* Màu đỏ để nút nổi bật */
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
@media only screen and (min-width: 520px) {
  .follow-btn {
    width: 120px;
  }
}

@media only screen and (max-width: 520px) {
  .follow-btn {
    width: 120px;
  }
}

.follow-btn {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #5b92af, #3d5f73);
  color: white;
  border-radius: var(--border-radius-regular);
  height: 35px;
  border: none;
  font-family: Helvetica, sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition:
    background 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.3s ease;
  padding: 5px 15px;
  overflow: hidden;
  box-shadow:
    inset 0 3px 5px rgba(255, 255, 255, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Hiệu ứng bóng loáng */
.follow-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 135%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: skewX(-30deg);
  transition: all 0.5s ease-in-out;
}

/* Hover tạo hiệu ứng ánh sáng và phản chiếu */
.follow-btn:hover {
  background: linear-gradient(135deg, #6aa5c5, #4a6f84);
  box-shadow:
    inset 0 5px 8px rgba(255, 255, 255, 0.4),
    0 4px 6px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.follow-btn:hover::after {
  left: 100%;
}

.modal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
}
.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  width: 400px;
  overflow-y: auto; /* Cho phép cuộn dọc khi cần */
  max-height: 800px; /* Giới hạn chiều cao tối đa của nội dung modal */
  border-radius: 12px;
}
.modal-footer {
  text-align: center;
  padding: 10px 20px;
}
.modal-trigger {
  cursor: pointer;
}
.follower-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-title {
  margin-bottom: 10px;
}

.follower-name {
  display: inline-block;
  vertical-align: super;
}
#followers-list,
#following-list {
  list-style-type: none;
  padding: 10px;  /* Thêm padding cho toàn bộ danh sách */
  margin: 0;
}

#followers-list li,
#following-list li {
  padding: 10px;
  margin-bottom: 5px;  /* Thêm khoảng cách giữa các mục */
  border-bottom: 1px solid #ddd;  /* Thêm đường viền dưới mỗi mục để dễ phân biệt */
}
.special-popup {
    display: none; /* Ẩn modal mặc định */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Nền tối cho popup */
    z-index: 9999; /* Đảm bảo popup luôn hiển thị trên các phần tử khác */
    overflow-y: auto;
}

.special-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.special-popup-title {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: bold;
}

.special-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
    color: #888;
}

.special-close:hover {
    color: #333;
}
#data-output {
    display: block !important;
    background-color: lightgray;  /* Dễ dàng nhận diện */
    padding: 10px;
    margin-top: 20px;
}
.user-info {
    display: flex;           /* Sử dụng Flexbox */
    align-items: center;     /* Căn giữa theo chiều dọc */
    gap: 10px;
margin-bottom: 10px;    /* Khoảng cách giữa ảnh và tên */
}
