body {
  background-color: #f7f7f7;
}

.form-wrapper {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  margin-top: 42px;
  margin-bottom: 42px;
}
@media (max-width: 768px) {
  .form-wrapper {
    grid-template-columns: 1fr;
  }
}

.left-section {
  position: sticky;
  top: 120px;
  height: -moz-fit-content;
  height: fit-content;
}
.left-section .profile-card {
  background-color: #ffffff;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.left-section .profile-card .profile-image {
  width: 100%;
  height: 280px;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  background-color: #fee8e8;
}
.left-section .profile-card .profile-name {
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  padding: 12px 24px;
  border-left: 3px solid #1877f2;
  margin: 0;
  display: none;
}
.left-section .profile-card .profile-links {
  list-style: none;
  padding: 16px;
  padding: 0;
}
.left-section .profile-card .profile-links li {
  border-top: 1px rgb(223, 223, 223) solid;
  padding: 12px 24px;
}
.left-section .profile-card .profile-links li:last-child {
  margin-bottom: 0;
}
.left-section .profile-card .profile-links li button {
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  border: none;
  background: none;
  padding: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  margin: 0;
}
.left-section .profile-card .profile-links li button:hover {
  color: #1877f2;
}
.left-section .profile-card .profile-links li .nav-link.active {
  color: #1777f0;
}

.right-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-section {
  background-color: #ffffff;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-top: 24px;
}
.form-section:first-child {
  margin-top: 0;
}
.form-section .section-title {
  font-size: 18px;
  font-weight: 600;
  color: #1877f2;
  margin-bottom: 16px;
  padding-bottom: 12px;
}

.form-group {
  display: flex;
  gap: 24px;
  margin-bottom: 14px;
  align-items: center;
}
.form-group:last-child {
  margin-bottom: 0;
}
.form-group label {
  display: block;
  width: 30%;
  font-size: 16px;
  font-weight: 500;
  color: #333333;
}
.form-group label.label-required::after {
  content: " *";
  color: #ff781e;
}

.form-control {
  width: 70%;
  padding: 7px 16px;
  font-size: 16px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  background-color: #ffffff;
  transition: all 0.3s ease;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  padding-right: 40px;
}
.form-control:focus {
  outline: none;
  border-color: #1877f2;
  box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.1);
}
.form-control:hover {
  border-color: #ff9500;
}

.textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
.form-row .form-group {
  margin-bottom: 0;
}

.salary-group {
  display: flex;
  align-items: center;
  gap: 16px;
}
.salary-group .salary-input {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.salary-group .salary-input .form-control {
  width: 100%;
  padding-right: 50px;
}
.salary-group .salary-input .salary-unit {
  position: absolute;
  right: 16px;
  font-size: 12px;
  color: #666666;
  pointer-events: none;
}
.salary-group .salary-dash {
  color: #666666;
  font-size: 18px;
}

.date-group {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  width: 70%;
}
.date-group .date-select {
  flex: 1;
}

.radio-group {
  display: flex;
  gap: 24px;
  margin-top: 12px;
  width: 70%;
}
.radio-group .radio-label {
  display: flex;
  align-items: center;
  font-size: 16px;
  color: #333333;
  cursor: pointer;
  font-weight: normal;
  margin: 0;
}
.radio-group .radio-label.small {
  gap: 8px;
}
.radio-group .radio-label input[type=radio] {
  margin-right: 12px;
  cursor: pointer;
  accent-color: #1877f2;
}
.radio-group .radio-label span {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.height-weight-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 70%;
}

.input-with-unit {
  position: relative;
  display: flex;
  align-items: center;
}
.input-with-unit .form-control {
  width: 100%;
  padding-right: 45px;
}
.input-with-unit .unit {
  position: absolute;
  right: 16px;
  font-size: 12px;
  color: #666666;
  pointer-events: none;
  font-weight: 500;
}

.location-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 70%;
}
@media (min-width: 769px) {
  .location-group {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}
.location-group .form-control {
  width: 100%;
}

.btn-add-wrapper {
  width: 70%;
  display: flex;
  justify-content: flex-start;
}

.btn-add {
  background-color: #ff9500;
  color: #ffffff;
  border: none;
  padding: 8px 80px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
  width: -moz-fit-content;
  width: fit-content;
}
.btn-add:hover {
  background-color: #ff9500;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
}
.btn-add:active {
  transform: translateY(0);
}

.btn-submit {
  background-color: #ff9500;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 200px;
}
.btn-submit:hover {
  background-color: #ff9500;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
}
.btn-submit:active {
  transform: translateY(0);
}

.form-footer {
  display: flex;
  justify-content: center;
  padding: 24px 0;
  margin-top: 42px;
}

#list-follow,
#list-apply {
  background-color: #fff;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.content-wrapper .content-item-wrapper {
  border: 1px solid #e5e7eb;
  padding: 24px;
}
.content-wrapper .list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.content-wrapper .list-header h1 {
  font-size: 18px;
  font-weight: 400;
  color: #1777f0;
  margin: 0;
}
.content-wrapper .list-header .btn-action {
  background-color: #1696ef;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}
.content-wrapper .list-header .btn-action:hover {
  background-color: #1777f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.content-wrapper .list-header .btn-action svg {
  width: 20px;
  height: 20px;
}
.content-wrapper .data-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 4px;
}
.content-wrapper .data-table thead tr {
  background-color: #f3f4f6;
}
.content-wrapper .data-table thead tr th {
  border: 1px solid #d1d5db;
  padding: 12px 24px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #1777f0;
}
.content-wrapper .data-table thead tr th.text-gray {
  color: #1777f0;
}
.content-wrapper .data-table tbody tr {
  transition: background-color 0.2s ease;
}
.content-wrapper .data-table tbody tr:hover {
  background-color: #f9fafb;
}
.content-wrapper .data-table tbody tr td {
  border: 1px solid #d1d5db;
  padding: 16px 24px;
  font-size: 16px;
  color: #374151;
}
.content-wrapper .data-table tbody tr td.empty-state {
  text-align: center;
  padding: 48px;
  color: #000000;
}
.content-wrapper .data-table tbody tr td .status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
}
.content-wrapper .data-table tbody tr td .status-badge.status-pending {
  background-color: #fef3c7;
  color: #92400e;
}
.content-wrapper .data-table tbody tr td .status-badge.status-approved {
  background-color: #d1fae5;
  color: #065f46;
}
.content-wrapper .data-table tbody tr td .status-badge.status-rejected {
  background-color: #fee2e2;
  color: #991b1b;
}
.content-wrapper .data-table tbody tr td .btn-view-detail {
  background: none;
  border: none;
  color: #1777f0;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}
.content-wrapper .data-table tbody tr td .btn-view-detail:hover {
  color: #1e40af;
  text-decoration: underline;
}

@media screen and (max-width: 768px) {
  .form-wrapper {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .left-section {
    position: relative;
    top: 0;
  }
  .left-section .profile-card .profile-image {
    height: 200px;
  }
  .left-section .profile-card .profile-name {
    font-size: 16px;
    padding: 10px 16px;
  }
  .left-section .profile-card .profile-links {
    padding: 0;
  }
  .left-section .profile-card .profile-links li {
    padding: 10px 16px;
  }
  .left-section .profile-card .profile-links li button {
    font-size: 16px;
  }
  .right-section {
    gap: 16px;
  }
  .form-section {
    padding: 16px;
    border-radius: 4px;
  }
  .form-section .section-title {
    font-size: 16px;
    margin-bottom: 12px;
  }
  .form-group {
    margin-bottom: 16px;
  }
  .form-group label {
    font-size: 12px;
    margin-bottom: 8px;
  }
  .form-control {
    padding: 10px 12px;
    font-size: 12px;
    background-size: 18px;
    padding-right: 35px;
  }
  .textarea {
    min-height: 80px;
    font-size: 12px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .form-row .form-group {
    margin-bottom: 12px;
  }
  .salary-group {
    flex-direction: column;
    gap: 12px;
    width: 70%;
  }
  .salary-group .salary-input {
    width: 100%;
  }
  .salary-group .salary-input .form-control {
    padding-right: 45px;
  }
  .salary-group .salary-input .salary-unit {
    right: 12px;
    font-size: 11px;
  }
  .salary-group .salary-dash {
    display: none;
  }
  .date-group {
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 8px;
  }
  .radio-group {
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
  }
  .radio-group .radio-label {
    font-size: 12px;
  }
  .radio-group .radio-label input[type=radio] {
    margin-right: 8px;
  }
  .height-weight-group {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .input-with-unit .form-control {
    padding-right: 40px;
  }
  .input-with-unit .unit {
    right: 12px;
    font-size: 11px;
  }
  .location-group {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .location-group .form-control {
    width: 100%;
  }
  .btn-add {
    padding: 10px 16px;
    font-size: 12px;
    width: 100%;
  }
  .btn-submit {
    padding: 10px 20px;
    font-size: 12px;
    width: 100%;
  }
  .form-footer {
    padding: 16px 0;
  }
  .content-wrapper {
    gap: 16px;
  }
  .content-wrapper .content-item-wrapper {
    padding: 16px;
    overflow-x: auto;
  }
  .content-wrapper .list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
  }
  .content-wrapper .list-header h1 {
    font-size: 16px;
  }
  .content-wrapper .list-header .btn-action {
    padding: 10px 16px;
    font-size: 12px;
    width: 100%;
    justify-content: center;
  }
  .content-wrapper .list-header .btn-action svg {
    width: 18px;
    height: 18px;
  }
  .content-wrapper .data-table {
    font-size: 12px;
    display: table;
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
  }
  .content-wrapper .data-table thead tr th {
    padding: 8px 12px;
    font-size: 12px;
    word-wrap: break-word;
  }
  .content-wrapper .data-table thead tr th:nth-child(1) {
    width: 35%;
  }
  .content-wrapper .data-table thead tr th:nth-child(2) {
    width: 25%;
  }
  .content-wrapper .data-table thead tr th:nth-child(3) {
    width: 20%;
  }
  .content-wrapper .data-table thead tr th:nth-child(4) {
    width: 20%;
  }
  .content-wrapper .data-table tbody tr td {
    padding: 8px 12px;
    font-size: 12px;
    word-wrap: break-word;
    vertical-align: middle;
  }
  .content-wrapper .data-table tbody tr td.empty-state {
    padding: 24px 12px;
    font-size: 12px;
    text-align: center;
  }
  .content-wrapper .data-table tbody tr td .status-badge {
    padding: 4px 8px;
    font-size: 10px;
    white-space: normal;
    line-height: 1.3;
    display: inline-block;
  }
  .content-wrapper .data-table tbody tr td .btn-view-detail {
    padding: 5px 10px;
    font-size: 10px;
    white-space: normal;
    line-height: 1.3;
    width: 100%;
    max-width: 100%;
  }
}
