.emoji-hover-display {
  display: flex;
  align-items: center;
  padding-top: 10px; /* Adds space between the emoji section and the hover display */
  border-top: 1px solid #ffbff7;
}

.emoji-hover-display img {
  margin-right: 10px;
}

.emoji-hover-display .emoji-name {
  font-size: 16px;
  color: #fff;
}

.emoji-picker {
  position: absolute;
  background: #1d1159;
  border: 1px solid #ffbff7;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  width: 250px;
  padding: 10px;
}

.emoji-picker-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.1);
  z-index: 999;
  overflow: hidden; /* Prevent scrolling on the body */
}

.emoji-search {
  width: 100%;
  padding: 5px;
  border: 1px solid #ffbff7;
  border-radius: 5px;
  margin-bottom: 10px;
  background-color: transparent;
  font-size: 14px;
  color: #fff;
}

.emoji-category-container {
  display: flex;
  margin-bottom: 10px;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 5px;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.emoji-category-container::-webkit-scrollbar {
  height: 6px;
}

.emoji-category-container::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.emoji-category-container::-webkit-scrollbar-track {
  background: transparent;
}

.category-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  padding: 5px;
  flex-shrink: 0;
  border-radius: 4px;
  filter: brightness(0.9);
  &:hover {
    filter: brightness(2);
  }
}

.active-category {
  filter: brightness(2);
}

.emoji-list {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  &::-webkit-scrollbar {
    width: 5px;
  }

  &::-webkit-scrollbar-track {
    background: transparent;
  }

  &::-webkit-scrollbar-thumb {
    background: #ffbff7;
    border-radius: 0;
  }
}

/* Category Section */
.emoji-category-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 10px;
  width: 100%;
}

.emoji-category-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 5px;
  width: 100%;
  background-color: #d854bb;
  color: #fff;
  padding: 0 10px;
}

/* Adjusted for search mode */
.emoji-list.searching {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 10px;
}

/* Emoji Container */
.emoji-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  width: 100%;
}

.emoji-button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
  transition: transform 0.1s;
  border-radius: 4px;
  &:hover {
    background-color: #fff;
  }
}

/* No Emojis Found Message */
.no-emojis-found {
  text-align: center;
  font-size: 14px;
  color: #999;
  padding: 10px;
}

body.no-scroll {
  overflow: hidden;
}

/* Preventing body scroll when the picker is open */
body.no-scroll {
  overflow: hidden;
}

/* Custom scrollbars for WebKit browsers */
.emoji-category-container::-webkit-scrollbar {
  height: 6px;
}

.emoji-category-container::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 10px;
}

.emoji-category-container::-webkit-scrollbar-track {
  background: transparent;
}
