.emp-profile1 {
  padding: 0.5%;
  margin-top: 3%;
  margin-bottom: 3%;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 0 5px #fff;
  display: flex;
  height: 85vh;
  overflow: hidden;
  transition: all 0.3s ease;
}

.sidebar {
  background: #222;
  color: white;
  width: 20%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 5px;
}

.sidebar-header {
  margin-bottom: 20px;
  text-align: center;
  margin-top: 40px;
}

.sidebar-header h2 {
  font-size: 18px;
  margin: 0;
  color: white;
  font-weight: bold;
}

.sidebar-menu {
  flex: 1;
}

.menu-item {
  margin-bottom: 10px;
}

.menu-item.active button {
  background: #444;
}

.menu-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: white;
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
}

.menu-item button:hover {
  background: #444;
}

.main-content {
  flex-grow: 1;
  margin-left: 10px;
  overflow-y: auto;
  width: 80%;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #eee;
  box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
}

.main-view {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.main-view p {
  margin: 0;
  line-height: 1.6;
  color: #333;
}

.sidebar-menu button.active {
  background-color: #444;
  color: #fff;
}

.disabled-link {
  pointer-events: none;
  /* Prevents clicking */
  opacity: 0.5;
  /* Makes it look disabled */
  cursor: not-allowed;
  /* Shows disabled cursor */
}

.pending {
  color: #f39c12;
  padding: 10px;
  background-color: #f9ebae;
  border-radius: 5px;
  margin-top: 15px;

}

.denied {
  color: #fff !important;
  padding: 10px;
  background-color: red;
  border-radius: 5px;
  margin-top: 15px;

}

.approved {
  color: #fff !important;
  padding: 10px;
  background-color: green;
  border-radius: 5px;
  margin-top: 15px;
}


.restricted {
  color: #fff !important;
  padding: 10px;
  background-color: #222;
  border-radius: 5px;
  margin-left: 15px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  width: 450px;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border-radius: 6px;
  margin-bottom: 10px;
}

.comment-box {
  padding: 5px;
}

.comment-area textarea {
  resize: none;
  border: 1px solid #ad9f9f;
}

.send {
  color: #fff;
  background-color: #1984e7;
  border-color: #1984e7;
  margin-top: 10px;
}

.rating {
  display: flex;
  margin-top: -10px;
  flex-direction: row-reverse;
  margin-left: -4px;
  float: left;
}

.rating>input {
  display: none;
}

.rating>label {
  position: relative;
  width: 1.1em;
  font-size: 15pt;
  color: red;
  cursor: pointer;
  padding: 10px;
}

.rating>label::before {
  content: '\2605';
  position: absolute;
  opacity: 0;
}

.rating>label:hover:before,
.rating>label:hover~label:before {
  opacity: 1 !important;
}

.rating>input:checked~label:before {
  opacity: 1;
}

.rating:hover>input:checked~label:before {
  opacity: 0.4;
}

.comment-rating i {
  color: goldenrod;
}

.cursor:hover {
  color: blue;
}

.cursor {
  cursor: pointer;
}

.right_column {
  float: right;
  width: 20%;
  margin-bottom: 10px;
  border-radius: 4px;
  box-shadow: 0 0 3px #eee;
  border: 1px solid #ccc;
  padding: 10px;
}

.left_column {
  width: 78%;
  margin-bottom: 10px;
  border-radius: 4px;
  box-shadow: 0 0 3px #eee;
  border: 1px solid #ccc;
  padding: 10px;
}


.btn-detail {
  margin-bottom: 9px;
  height: 46px;
  width: 18%;
  margin-left: 0.8%;
  background-color: #38CBAC;
  border: 1px solid #2D4790;
  color: #2D4790;
  text-align: center;
  line-height: 33px;
}

table.list_table {
  width: 100%;
  box-shadow: 0 0 3px #eee;
  text-align: center;
}

table.list_table tr td {
  padding: 4px;
  border: 1px solid #eee;
  font-size: 11pt;
}

table.list_table tr:nth-child(even) {
  background: #f4fcff;
}

.odd {
  background: #fff3e3;
}

table.list_table tr:first-child td {
  background: #b1e09c;
  font-size: 12pt !important;
}

.modal {
  display: none;
  /* Hide modal by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  /* Dark overlay */
  display: none;
  z-index: 1000;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  /* Prevents scrolling outside the modal */
  /* Semi-transparent background */
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 40%;
  border-radius: 8px;
}


/* Link tag styles */
.link-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.link-tag {
  background-color: #f0f0f0;
  padding: 5px 10px;
  border-radius: 5px;
  display: flex;
  align-items: center;
}

.link-tag span {
  margin-right: 8px;
}

.link-tag .delete-link,
.keyword-tag .delete-keyword {
  cursor: pointer;
  color: #900;
}

.add-link-btn,
.add-keyword-btn {
  background-color: #38CBAC;
  border: 1px solid #2D4790;
  color: #2D4790;
  padding: 0;
  border-radius: 5px;
  cursor: pointer;
  margin-left: 1%;
  width: 22%;
  height: 50px;
}

#link-input-modal,
#keyword-input-modal {
  width: 75%;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
  background-color: #edf5eb;
  height: 50px;
}




.keyword-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
  margin-bottom: 25px;
}

.keyword-tag {
  background-color: #f0f0f0;
  padding: 5px 10px;
  border-radius: 5px;
  display: flex;
  align-items: center;
}

.keyword-tag span {
  margin-right: 8px;
}




.edit-icon {
  margin-left: 10px;
  color: #007bff;
  cursor: pointer;
}

.container_detail {
  display: flex;
  justify-content: space-between;
  gap: 1%;
}

.left_side {
  width: 20%;
  padding: 10px;
}

.right_side {
  width: 80%;
  border-left: 1px solid #ccc;
  padding: 10px;
  position: relative;
}

.like-dislike-container {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
  /* Space between buttons and counts */
}

.like-dislike-container a {
  display: flex;
  align-items: center;
  gap: 5px;
  /* Space between icon and number */
}

.like-dislike-container span {
  font-weight: bold;
}


#request-div {
  display: none;
  /* Hidden by default, can be toggled with JavaScript */
  max-width: 100%;
  /* margin: 20px auto; */
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Form Group */
#request-div .form-group {
  margin-bottom: 15px;
}

/* Labels */
#request-div .form-group label {
  display: block;
  font-size: 1em;
  font-weight: 500;
  color: #555;
  margin-bottom: 5px;
}

/* Input Fields */
#request-div .form-group input[type="text"],
#request-div .form-group input[type="email"],
#request-div .form-group textarea {
  width: 100%;
  padding: 10px;
  font-size: 1em;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

#request-div .form-group input[type="text"]:focus,
#request-div .form-group input[type="email"]:focus,
#request-div .form-group textarea:focus {
  border-color: #007bff;
  outline: none;
}

/* Textarea */
#request-div .form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-add {
  margin-top: 10px;
  height: 40px;
  width: 80%;
  background-color: #38CBAC;
  border: 1px solid #2D4790;
  color: #2D4790;
}

.btn-current {

  color: #38CBAC;
  background-color: #fff;
  border: none;
  font-size: 28pt !important;

}

.btn-current:hover {
  margin-top: 12px;
  height: 42px;
  color: #387dcb;
  background-color: #fff !important;
  border: none;
}


.license {
  position: absolute;
  top: 80px;
}



.submenu {
  display: none;
  padding-left: 20px;
  margin-top: 5px;
  background: #333;
  transition: background 0.3s ease;
}

.submenu.open {
  background: #615f5f;
}

.submenu a {
  color: #ccc;
  text-decoration: none;
  display: block;
  padding: 5px 0;
}

.submenu a:hover {
  color: white;
}



/* General responsive settings for smaller devices */
@media (max-width: 768px) {
  .card {
    width: 100%;
    padding: 15px;
  }

  .right_column,
  .left_column {
    width: 100%;
    float: none;
  }

  .btn-detail {
    width: 100%;
  }

  .container_detail {
    flex-direction: column;
  }

  .left_side,
  .right_side {
    width: 100%;
    padding: 5px;
  }

  .modal-content {
    width: 90%;
    max-width: 100%;
  }

  #request-div button[type="submit"] {
    width: 100%;
  }

  .add-link-btn,
  .add-keyword-btn {
    width: 100%;
    font-size: 10pt;
  }

  .like-dislike-container {
    position: static;
    justify-content: center;
  }

  table.list_table {
    font-size: 10pt;
  }

  table.list_table tr td {
    font-size: 10pt;
    padding: 2px;
  }
}

/* Extra small devices (phones) */
@media (max-width: 576px) {
  .card {
    padding: 10px;
  }

  .comment-area textarea {
    font-size: 0.9em;
  }

  .rating>label {
    font-size: 10pt;
    padding: 5px;
  }

  .link-tag,
  .keyword-tag {
    padding: 3px 8px;
  }

  .btn-add,
  .btn-detail,
  .add-link-btn,
  .add-keyword-btn {
    width: 100%;
    margin-left: 0;
    font-size: 10pt;
  }

  #link-input-modal,
  #keyword-input-modal {
    height: auto;
  }

  .modal-content {
    padding: 15px;
  }

  table.list_table {
    font-size: 8pt;
  }

  table.list_table tr td {
    font-size: 8pt;
    padding: 2px;
  }
}

/* Very small devices (max-width: 450px) */
@media (max-width: 450px) {
  .card {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
  }

  .right_column,
  .left_column {
    width: 100%;
    float: none;
    margin-bottom: 10px;
  }

  .btn-detail,
  .add-link-btn,
  .add-keyword-btn,
  #request-div button[type="submit"] {
    width: 100%;
    margin-left: 0;
  }

  .container_detail {
    flex-direction: column;
    gap: 10px;
  }

  .left_side,
  .right_side {
    width: 100%;
    padding: 5px;
    border: none;
  }

  .modal-content {
    width: 95%;
    padding: 10px;
  }

  .comment-area textarea {
    font-size: 0.85em;
  }

  .rating>label {
    font-size: 10pt;
    padding: 3px;
  }

  .like-dislike-container {
    position: static;
    gap: 10px;
    margin-top: 10px;
  }

  .link-tag,
  .keyword-tag {
    padding: 3px 6px;
    font-size: 0.9em;
  }

  .btn-add,
  .btn-detail,
  .add-link-btn,
  .add-keyword-btn {
    width: 100%;
    height: auto;
    margin: 5px 0;
    font-size: 8pt;

  }

  #link-input-modal,
  #keyword-input-modal {
    width: 100%;
    padding: 6px;
    height: auto;
  }

  .license {
    top: 60px;
  }

  table.list_table {
    font-size: 8pt;
  }

  table.list_table tr td {
    font-size: 8pt;
    padding: 2px;
  }
}



/* Small to medium devices (max-width: 800px) */
@media (max-width: 800px) {
  .card {
    width: 90%;
    padding: 12px;
    margin-bottom: 18px;
  }

  .right_column,
  .left_column {
    width: 100%;
    float: none;
    margin-bottom: 12px;
  }

  .btn-detail,
  .add-link-btn,
  .add-keyword-btn,
  #request-div button[type="submit"] {
    width: 100%;
    margin-left: 0;
    font-size: 0.9em;
  }

  .container_detail {
    flex-direction: column;
    gap: 12px;
  }

  .left_side,
  .right_side {
    width: 100%;
    padding: 8px;
    border: none;
  }

  .modal-content {
    width: 95%;
    padding: 12px;
  }

  .comment-area textarea {
    font-size: 0.9em;
  }

  .rating>label {
    font-size: 11pt;
    padding: 4px;
  }

  .like-dislike-container {
    position: static;
    gap: 12px;
    margin-top: 12px;
  }

  .link-tag,
  .keyword-tag {
    padding: 4px 8px;
    font-size: 0.95em;
  }

  .btn-add,
  .btn-detail,
  .add-link-btn,
  .add-keyword-btn {
    width: 100%;
    height: auto;
    margin: 6px 0;
    font-size: 9pt;
  }

  #link-input-modal,
  #keyword-input-modal {
    width: 100%;
    padding: 8px;
    height: auto;
  }

  .license {
    top: 70px;
  }

  table.list_table {
    font-size: 9pt;
  }

  table.list_table tr td {
    font-size: 9pt;
    padding: 3px;
  }
}

/* Medium to larger devices (max-width: 1000px) */
@media (max-width: 1000px) {
  .card {
    width: 85%;
    padding: 15px;
    margin-bottom: 20px;
  }

  .right_column,
  .left_column {
    width: 48%;
    float: none;
    margin-bottom: 15px;
  }

  .btn-detail,
  .add-link-btn,
  .add-keyword-btn,
  #request-div button[type="submit"] {
    width: 90%;
    margin-left: 5%;
    font-size: 1em;
  }

  .container_detail {
    flex-direction: row;
    gap: 15px;
  }

  .left_side,
  .right_side {
    width: 48%;
    padding: 10px;
    border: none;
  }

  .modal-content {
    width: 90%;
    padding: 15px;
  }

  .comment-area textarea {
    font-size: 1em;
  }

  .rating>label {
    font-size: 12pt;
    padding: 5px;
  }

  .like-dislike-container {
    position: static;
    gap: 15px;
    margin-top: 15px;
  }

  .link-tag,
  .keyword-tag {
    padding: 5px 10px;
    font-size: 1em;
  }

  .btn-add,
  .btn-detail,
  .add-link-btn,
  .add-keyword-btn {
    width: 90%;
    height: auto;
    margin: 7px 0;
    font-size: 10pt;
    padding: 3%;
  }

  #link-input-modal,
  #keyword-input-modal {
    width: 90%;
    padding: 10px;
    height: auto;
  }

  .license {
    top: 80px;
  }

  table.list_table {
    font-size: 10pt;
  }

  table.list_table tr td {
    font-size: 7pt;
    padding: 4px;
  }
}