/* CSS cho Account Dashboard Menu */
@media (min-width: 900px) {
  #dashboard-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 75vh;
    margin-top: 5px;
    justify-content: center;
  }
}
@media (max-width: 899px) {
  #dashboard-container {
    display: block;
    width: auto;
    height: auto;
    margin: 0 auto;
    padding: 10px 20px;     
  }
  #dashboard-menu {
      display: none; /* Ẩn menu */
  }  
}



#dashboard-menu {
  width: 250px;
  min-width: 250px;
  max-width: 250px;
  background: #fff;
  padding-right: 20px;
  padding-top: 10px;
  flex-shrink: 0; /* Nếu dùng flexbox */
}

#dashboard-menu #avatar-section {
  /*text-align: center;*/
  margin-bottom: 5px;
}

#dashboard-menu #avatar-section img {
  border-radius: 50%;
  width: 140px;
  height: 140px;
  border: 3px solid #ddd;
}

#dashboard-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  text-transform: capitalize;
}

#dashboard-menu ul li {
  margin: 10px 0;
}

#dashboard-menu ul li a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  /*text-transform: uppercase;*/
}

#dashboard-menu ul li.active a {
  font-weight: bold;
  color: #4a7d91;
}

#dashboard-content {
  /*flex-grow: 1;*/
  /*padding: 0 40px;*/
  width: 800px;
  /*margin: 0 auto;*/
}
img.avatar.avatar-96 {
  width: 190px;
  height: 190px;
  object-fit: cover;
}

textarea[name="about_me"] {
  width: 100%;
  height: 80px;
  resize: vertical;
  font-family: Helvetica, sans-serif;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.full-width {
  grid-column: span 3; /* Cho phép mục này chiếm cả 3 cột */
}

input#lostpassword-identifier {
  width: 95%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

/* Tổng thể form */
#profile-form {
  max-width: 900px;
  margin: 0 auto;
  font-family: Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #ddd;
}

/* Khoảng cách giữa các khối */
.form-section {
  margin-bottom: 20px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-top: 20px;  
}

/* Tiêu đề mỗi phần */
.form-section h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #333;
  border-bottom: 2px solid #4a7d91;
  padding-bottom: 5px;
}

/* Grid cho các trường */
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px; /* Khoảng cách giữa các ô */
  margin-bottom: 5px;
}

.form-grid div {
  display: flex;
  flex-direction: column;
}

/* Input và Label */
#profile-form label {
  margin-bottom: 5px;
  font-weight: bold;
}

#profile-form input[type="text"],
#profile-form input[type="email"],
#profile-form input[type="password"],
#profile-form input[type="url"],
#profile-form input[type="date"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  width: 100%;
}

/* Nút Submit */
.button-primary {
  background: #4a7d91;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.button-primary:hover {
  background: #005a99;
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  #profile-form {
    padding: 15px;
  }
}
.profile-form .form-section input[type="text"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
  background: #f9f9f9;
}

.url-input {
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  font-size: 14px;
  width: 95%;
}

.url-input:focus {
  border-color: #4a7d91; /* Màu xanh khi focus */
}

.url-input.error {
  border-color: red; /* Màu đỏ khi có lỗi */
}

.overview-dashboard {
  font-family: Helvetica, sans-serif;
  line-height: 1.5;
  flex-wrap: wrap;
  gap: 10px; /* Khoảng cách giữa các ô */
}

.overview-row {
  display: flex;
  width: 100%;
  gap: 20px;
}


@media (max-width: 899px) {
  #dashboard-content {
    padding: 0;
    width: 100%;
  }  
  .overview-row {
    flex-direction: column;
  }
  .overview-dashboard-col{
    padding: 0!important;
  }
  .form-grid {
      display: flex;
      gap: 15px;
      margin-bottom: 5px;
      flex-direction: column;
  }    
}

 
.overview-dashboard-col {
  flex: 1 1 calc(33.333% - 20px); /* Chiếm 1/3 chiều rộng, trừ khoảng cách */
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.overview-dashboard-col-full {
  flex: 1 1 100%; /* Chiều rộng toàn phần */
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
  line-height: 2;
}
.overview-dashboard-col-full-2 {
  flex: 1 1 100%; /* Chiều rộng toàn phần */
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.overview-pi {
  padding: 10px;
  border-radius: 8px;
  text-align: center;
}

.overview-header {
  font-size: 14px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 10px;
  padding-bottom: 8px;
  color: #333;
}

.overview-body h3 {
  font-size: 1.5em;

  margin: 0;
  color: #333;
}

.nut-hukh {
  background-color: #4a7d91;
  border-color: #007bff;
  color: white !important;
  padding: 5px 10px;
  border-radius: 5px;
  text-decoration: none;
  margin: 5px;
}

.nut-hukh:hover {
  background-color: #0056b3;
  color: white !important;
  border-color: #0056b3;
}

div.wpforms-container-full .wpforms-form .wpforms-field-label {
  display: block;
  font-weight: 400 !important;
  font-size: 14px !important;
  float: none;
  line-height: 1.3;
  margin: 0 0 4px 0;
  padding: 0;
  word-break: break-word;
  word-wrap: break-word;
}

#dashboard-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#dashboard-menu li {
  display: flex;
  align-items: center;
  font-size: 14px;
}

#dashboard-menu li a {
  text-decoration: none;
  color: #333;
  margin-left: 10px;
}

#dashboard-menu li.active {
  color: white;
  font-weight: bold;
}

#dashboard-menu li.active a {
  color: white;
}

#dashboard-menu li i {
  font-size: 14px;
  color: #333;
  margin-right: 10px;
}

.profile-form input[type="email"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  box-sizing: border-box;
}

/* Thêm hiệu ứng khi tập trung vào ô Email */
.profile-form input[type="email"]:focus {
  border-color: #4a7d91;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 115, 170, 0.5);
}

#dashboard-menu .menu-group-title {
  font-weight: bold;
  font-size: 14px;
  color: #4a7d91;
  /*text-transform: uppercase;*/
}

#dashboard-menu .sub-item {
  padding-left: 15px;
}
body.page-id-502383 h1.page-title,
body.page-id-61929 h1.page-title {
  display: none;
}
