.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 a {
  background: #444;
}

.menu-item a {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: white;
  padding: 10px;
  font-size: 16px;
  text-decoration: none;
  /* Removes underline */
  cursor: pointer;
}

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



.add-dataset-btn {
  display: inline-block;
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
  /* green gradient */
  color: #fff;
  text-decoration: none;
  /* remove underline */
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.add-dataset-btn:hover {
  background: linear-gradient(135deg, #43A047, #1B5E20);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25);
  color: #fff;
}

.add-dataset-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}


.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);
  margin: 20px auto;
}

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

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

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

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;
}

#content {
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  float: right;
}

#content .detail {
  width: 100%;
  float: right;
}

#content .detail .right {
  display: inline-block;
  width: 25%;
  background: #eee;
  font-size: 12pt;
  margin: 2px;
  padding: 10px;
  border-radius: 4px;
  font-weight: bold;
}

#content .detail .left {
  display: inline-block;
  width: 73%;
  background: #eee;
  font-size: 12pt;
  padding: 10px;
  border-radius: 4px;
  text-align: center;
}

#id_search {
  float: left;
  width: 80%;
  height: 40px;
  border: 1px solid #ccc;
  border-radius: .25rem;
  box-shadow: 0 0 3px #eee;
  line-height: 1.5;
}


.dataset-title {
  font-weight: bold;
  font-size: 16px;
  color: #000;
  margin-bottom: 10px;
  text-decoration: none;
  line-height: 1.4;
  max-height: 3em;
  overflow: hidden;
  text-overflow: ellipsis;
}


.title {
  width: 50%;
}

#sortSelect {
  width: 300px;
  /* Limit dropdown width */
  padding: 10px 14px;
  /* Add padding for a better feel */
  font-size: 16px;
  /* Readable font size */
  border: 1px solid #ccc;
  /* Neutral border */
  border-radius: 6px;
  /* Slightly rounded dropdown */
  background-color: #fff;
  /* White background */
  color: #333;
  /* Dark text */
  cursor: pointer;
  /* Pointer for clickable interaction */
  transition: all 0.3s ease;
  /* Smooth transitions */
}

#sortSelect:hover {
  border-color: #888;
  /* Highlight border on hover */
  background-color: #f3f3f3;
  /* Slightly darker background */
}

#sortSelect:focus {
  outline: none;
  /* Remove default outline */
  border-color: #007bff;
  /* Highlight border */
  box-shadow: 0 0 6px rgba(0, 123, 255, 0.5);
  /* Add a focus glow */
}

.view {
  font-size: 20pt;
  cursor: pointer;
  color: #ccc;
}


.image_logo {
  margin-right: 10px;
  height: 100px;
  /* Adjusted size for smaller screens */


}

.stars {
  position: relative;
  display: inline-block;
  font-size: 14px;
  line-height: 1;
}

.stars-empty {
  color: #ddd;
}

.stars-full {
  color: gold;
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  overflow: hidden;
}

.dataset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.dataset-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(97, 185, 177, 0.1);
  text-align: center;
  transition: transform 0.3s ease-in-out;
  border: solid 1px #ddd;
}

.dataset-card:hover {
  transform: translateY(-5px);
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.dataset-icon {
  font-size: 40px;
  color: #555;
  margin-bottom: 10px;
}

.dataset-title {
  font-weight: bold;
  font-size: 16px;
  color: #000;
  margin-bottom: 10px;
  text-decoration: none;
  line-height: 1.4;
  max-height: 3em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dataset-date {
  font-size: 14px;
  color: #777;
}

.dataset-rate {
  font-size: 14px;
  color: #413e3e;
}

tr[onclick] {
  cursor: pointer;
}

tr[onclick]:hover {
  background-color: #f0f0f0 !important;
}

/* Responsive adjustments */
@media (max-width: 1024px) {

  .profile-edit-btn,
  .profile-img img,
  .btn-data {
    width: 100%;
  }

  .profile-work,
  .profile-tab {
    padding: 5%;
  }

  .profile-head h5,
  .profile-head h6 {
    font-size: 1.2em;
  }

  /* Adjust table font size */
  table.list_table {
    font-size: 11pt;
  }

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

@media (max-width: 768px) {
  .profile-img img {
    width: 100%;
  }

  .profile-edit-btn,
  .btn-data {
    width: 100%;
    padding: 10px;
  }

  .profile-head h5,
  .profile-head h6 {
    font-size: 1em;
  }

  .profile-work {
    padding: 10%;
    margin-top: 0;
  }

  /* Further reduce table font size */
  table.list_table {
    font-size: 10pt;
  }

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

  #content .detail .right,
  #content .detail .left {
    width: 100%;
    font-size: 10pt;
    padding: 5px;
  }

  .btn-data {
    margin: 5px 0;
    width: auto;
  }
}

@media (max-width: 480px) {

  .profile-head h5,
  .profile-head h6 {
    font-size: 0.9em;
  }

  .profile-edit-btn {
    padding: 5%;
    font-size: 0.8em;
  }

  .profile-work,
  .profile-tab {
    padding: 5%;
  }

  /* Smallest font size for table on mobile */
  table.list_table {
    font-size: 8pt;
  }

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