/* Emoji Picker Styles */
.emoji-picker {
  position: fixed;
  width: 360px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  z-index: 19892000;
  display: none;
  flex-direction: column;
}

.emoji-picker.show {
  display: flex;
}

.emoji-picker-tabs {
  display: flex;
  border-bottom: 1px solid #e8e8e8;
  padding: 8px 12px 0;
  gap: 4px;
  overflow-x: auto;
  flex-shrink: 0;
}

.emoji-picker-tab {
  padding: 8px 10px;
  cursor: pointer;
  border: none;
  background: none;
  font-size: 18px;
  color: #666;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
  min-width: 36px;
}

.emoji-picker-tab:hover {
  color: #333;
}

.emoji-picker-tab.active {
  color: #00b259;
  border-bottom-color: #00b259;
}

.emoji-picker-content {
  flex: 1;
  overflow: hidden;
  padding: 12px;
  padding-bottom: 20px;
}

.emoji-picker-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  width: 100%;
}

.emoji-picker-item {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s;
  border: none;
  background: none;
  padding: 0;
}

.emoji-picker-item:hover {
  background: #f0f0f0;
}

.emoji-picker-item:active {
  background: #e0e0e0;
}

.emoji-picker-trigger {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.2s;
  border: none;
  background: none;
  font-size: 20px;
}

.emoji-picker-trigger:hover {
  background: #f0f0f0;
}

/* For comment form */
.comment-form-wrapper {
  position: relative;
}

.comment-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.comment-form-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.comment-emoji-btn {
  font-size: 20px;
  padding: 4px 8px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
}

.comment-emoji-btn:hover {
  background: #f0f0f0;
}

/* For message dialog */
.message-dialog {
  position: relative;
}

.message-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.message-emoji-btn {
  font-size: 20px;
  padding: 4px 8px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
}

.message-emoji-btn:hover {
  background: #f0f0f0;
}
