* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'My Font';
  src: url('../lib/font/1FTV-HF-Gesco.ttf') format('truetype');
}

.content {
  position: relative;
  display: flex;
  flex-direction: column;
  font-family: "My Font", serif;
  height: 100vh;
  letter-spacing: 1px;
  font-weight: normal;
}

i {
  margin-right: 10px;
}

.content .back {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.infor-container {
  position: relative;
  width: 98%;
  height: 90%;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgb(255, 255, 255);
  border-radius: 10px;
  padding: 20px 20px 20px 380px;
  color: white;
  box-shadow: 0 4px 30px rgba(255, 255, 255, 0.1);
}

.infor-aside {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 340px;
  height: 90%;
  background: linear-gradient(145deg, #1e1e1e, #2c2c2c);
  color: white;
  font-family: "My Font", serif;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
  transition: transform 0.3s ease;
}

/* Thông tin người dùng */
.infor-user {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
}

.infor-user img {
  width: 5rem;
  height: 5rem;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #FCB92C;
  flex-shrink: 0;
}

.infor-user h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Danh sách */
.list {
  flex: 1;
  width: 100%;
}

.list i {
  margin-right: 20px;
}

.list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.list li {
  display: inline-flex;
  width: 100%;
}

.list a {
  text-decoration: none;
  color: white;
  display: block;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
  font-size: 1.3rem;
  margin: 5px 0;
}

.list a:hover, .list a.active {
  background: rgba(255, 255, 255, 0.15);
  color: #FCB92C;
}

.infor-show {
  flex: 1;
  width: 100%;
  height: 100vh;
  background: linear-gradient(145deg, #1e1e1e, #2c2c2c);
  color: white;
  font-family: "My Font", serif;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  padding: 10px;
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow-y: auto;
  position: relative;
}

.infor-show.active {
  display: flex;
}

.infor-show::-webkit-scrollbar {
  width: 8px;
}

.infor-show::-webkit-scrollbar-track {
  background: #1e1e1e;
  border-radius: 4px;
}

.infor-show::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.infor-show::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.infor-show .information {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  height: auto;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  position: relative;
}

.infor-show .cover {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.infor-show .avatar {
  width: 12rem;
  height: 12rem;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #FCB92C;
  background: #000;
  z-index: 10;
  transform: translateY(-20%);
}

.infor-show .infor-name {
  width: 100%;
  height: 8rem;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  padding-left: 20px;
  position: relative;
}

.img-avt {
  width: auto;
  position: relative;
}

.btn-change-avt {
  position: absolute;
  width: 40px;
  height: 40px;
  right: 10px;
  bottom: 50px;
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.btn-change-avt i {
  margin: 0;
}

.change-link-infor {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.change-link-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#updateForm {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.change-card {
  width: 90%;
  height: 100%;
}

.link-laber {
  display: flex;
  flex-direction: row;
  width: 100%;
  gap: 10px;
}

.link-laber i {
  height: 40px;
  width: 40px;
}

.change-card .btn-change-link {
  width: 100%;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.change-card .btn-change-link:hover {
  background-color: #0A4D3C;
  color: #FCB92C;
  box-shadow: #FCB92C 0 10px 35px 0;
}

.change-card .btn-change-link:active {
  background-color: #0A4D3C;
  color: #FCB92C;
  box-shadow: #FCB92C 0 0 0 0;
  transform: translateY(1px);
  transition: 10ms;
}

.change-card p {
  width: 100%;
  padding: 5px;
  text-align: left;
  font-size: 1rem;
}

.message {
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
}
.message.success {
  background-color: #d4edda;
  color: #155724;
}
.message.error {
  background-color: #f8d7da;
  color: #721c24;
}
/* Modal CSS */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #fff;
  width: 90%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s ease;
}
.modal-header {
  padding: 10px;
  background: #FCB92C;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 10px 10px 0 0;
}
.modal-title {
  margin: 0;
  font-size: 1.2rem;
  color: #0A4D3C;
  font-weight: bold;
}
.close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #333;
}
.close-btn:hover {
  color: #000;
}
.modal-body {
  padding: 15px;
}
.modal-body label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
.modal-body input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}
.modal-footer {
  padding: 15px;
  border-top: 1px solid #dee2e6;
  text-align: right;
}
.modal-footer button {
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-left: 10px;
}
.btn-cancel {
  background: #6c757d;
  color: #fff;
}
.btn-cancel:hover {
  background: #5a6268;
}
.btn-save {
  background: #007bff;
  color: #fff;
}
.btn-save:hover {
  background: #0056b3;
}
/* Hiệu ứng fade-in */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.information .right-infor {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.infor-show .infor-name .text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 80%;
  padding-left: 20px;
}

.infor-show .infor-name h2 {
  width: 100%;
  margin: 20px 0 0 0;
  font-size: 1.8rem;
}

.infor-show .infor-name h3 {
  width: 100%;
  margin: 10px 0 20px 0;
  font-size: 1.2rem;
  font-weight: normal;
}

.btn-change-cover {
  position: absolute;
  right: 10px;
  bottom: 9rem;
}

.infor-show .infor-name .btn-change {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  gap: 20px;
  padding-right: 20px;
}

.infor-show button {
  padding: 10px;
  border-radius: 50px;
  cursor: pointer;
  border: 0;
  background: #FCB92C;
  color: #0A4D3C;
  font-weight: bold;
  box-shadow: rgb(0 0 0 / 5%) 0 0 8px;
  letter-spacing: 1.5px;
  font-size: 1rem;
  transition: all 0.5s ease;
}

.infor-show button:hover {
  letter-spacing: 2px;
  background-color: #0A4D3C;
  color: #FCB92C;
  box-shadow: #FCB92C 0 10px 35px 0;
}

.infor-show button:active {
  letter-spacing: 3px;
  background-color: #0A4D3C;
  color: #FCB92C;
  box-shadow: #FCB92C 0 0 0 0;
  transform: translateY(2px);
  transition: 10ms;
}

.information-under {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  margin-top: 10px;
}

.information-under .more-infor {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  position: relative;
  margin-right: 10px;
  padding: 20px;
}

.more-infor h2, p, a {
  width: fit-content;
  text-align: left;
  margin: 5px 0;
  color: white;
  font-family: "My Font", serif;
  text-decoration: none;
}

.information-under .blog-con {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  position: relative;
}

.blog-con .post-blog {
  border-radius: 10px;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
}

.blog-con .post-avt {
  width: 50px;
  height: 50px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid #FCB92C;
}

.blog-con .post-blog p {
  width: 100%;
  background: #525252;
  margin: 0 10px;
  padding: 13px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.blog-con .post-blog p:hover {
  background: #626262;
}

.blog-con .post-blog a {
  background: #525252;
  padding: 13px;
  border-radius: 50%;
  text-decoration: none;
  color: #FCB92C;
  font-size: 1rem;
  transition: all 0.5s ease;
}

.blog-con .post-blog a:hover {
  background: #626262;
}

.post {
  border-radius: 10px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
}

.post .post-top {
  border-radius: 10px;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 10px;
}

.post .post-top .text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  margin: 0 10px;
}

.post .post-top .text h2 {
  font-size: 1.2rem;
}

.post .post-top .text p {
  font-size: 1rem;
}

.post-top a {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 13px;
  border-radius: 50%;
  text-decoration: none;
  background: #FCB92C;
  color: #0A4D3C;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.post-top a i {
  margin: 0;
}

.post-top .button-more:hover {
  background-color: #0A4D3C;
  color: #FCB92C;
  box-shadow: #FCB92C 0 10px 35px 0;
}

.post-top .button-more:active {
  letter-spacing: 3px;
  background-color: #0A4D3C;
  color: #FCB92C;
  box-shadow: #FCB92C 0 0 0 0;
  transform: translateY(2px);
  transition: 10ms;
}

.post .caption {
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.post-content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #525252;
  border-radius: 10px;
  overflow: hidden;
}

.post-content img {
  max-width: 100%;
  height: auto;
  max-height: 600px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.post .post-like {
  width: 97%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 5px;
  border-top: 1px solid #FCB92C;
  border-bottom: 1px solid #FCB92C;
  gap: 20px;
}

.post .post-like a {
  width: 80%;
  padding: 5px;
  flex: 1;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  margin: 0;
  transition: all 0.2s ease;
}

.post .post-like a:hover {
  background: #525252;
}

/*change*/
.change-infor {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  width: 80%;
}

.infor-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  position: relative;
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.infor-left .img-avt {
  height: 100%;
  cursor: pointer;
}

.infor-left .img-avt .avatar {
  transform: translateY(0);
}

.infor-left .img-avt .btn-change-avt {
  bottom: 10px;
}

.infor-right {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  margin-left: 10px;
}

.user-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 12px;
  color: white;
  font-family: "My Font", serif;
  width: 100%;
}

.user-form label {
  font-weight: bold;
  margin-bottom: 5px;
}

.user-form input,
.user-form select,
.user-form textarea {
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  width: 100%;
}

.user-form input::placeholder,
.user-form textarea::placeholder {
  color: #ccc;
}

.user-form textarea {
  resize: vertical;
}

.gender-options {
  display: flex;
  gap: 20px;
  padding: 5px 0;
}

.gender-options label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: normal;
  cursor: pointer;
}

.gender-options input[type="radio"] {
  accent-color: #FCB92C;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.user-form button {
  padding: 12px;
  background-color: #FCB92C;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.password-group {
  display: flex;
  gap: 20px;
}

.password-group .field {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.user-form a {
  text-decoration: none;
  color: #ff5050;
  width: fit-content;
}

.user-form a:hover {
  text-decoration: underline;
  color: #ff2e2e;
}

.back-button {
  display: none;
  position: absolute;
  top: 10px;
  left: 10px;
  background: #FCB92C;
  color: #0A4D3C;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1000;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.back-button:hover {
  background-color: #0A4D3C;
  color: #FCB92C;
}

@media (max-width: 1020px) {
  .infor-container {
    width: 100%;
    border-radius: 0;
    padding: 0;
    top: 90px;
    height: 100%;
  }

  .infor-aside {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    transform: translateX(-100%);
    border-radius: 0;
  }

  .infor-aside.active {
    transform: translateX(0);
  }

  /*.menu-toggle {*/
  /*  display: block;*/
  /*}*/

  .infor-show {
    display: none;
    height: 100%;
    border-radius: 0;
  }

  .infor-show.active {
    display: flex;
  }

  .back-button {
    display: block;
  }

  .infor-show .cover {
    height: 200px;
  }

  .infor-show .avatar {
    width: 8rem;
    height: 8rem;
  }

  .infor-show .infor-name {
    flex-direction: column;
    height: auto;
    padding: 10px;
  }

  .infor-show .infor-name .text {
    width: 100%;
    align-items: flex-start;
  }

  .infor-show .infor-name .btn-change {
    justify-content: center;
    padding: 0;
  }

  .information-under {
    flex-direction: column;
  }

  .information-under .more-infor {
    margin-right: 0;
    margin-bottom: 10px;
    width: 100%;
  }

  .change-infor {
    flex-direction: column;
    width: 100%;
  }

  .infor-right {
    margin-left: 0;
  }

  .btn-change-cover {
    top: 30%;
    right: 0;
    bottom: unset;
  }

  .infor-show .avatar {
    transform: translateY(-30%);
  }

  .information .right-infor {
    flex-direction: column;
  }

  .change-infor {
    gap: 10px;
  }
}
