.emoji-picker-container,
.attachment-container {
  position: relative;
  align-self: center;
  display: flex;
  align-items: center;
}

.chat-action-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 0.5rem;
  color: #555;
  height: 2.2rem;
}

#emoji-picker-btn {
  /* Inherits from .chat-action-btn */
}

#emoji-picker,
#attachment-menu {
  position: absolute;
  bottom: 100%;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  width: 220px;
  max-height: 200px;
  overflow-y: auto;
}

#emoji-picker {
  right: 0;
}

#attachment-menu {
  left: 0;
  width: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

#attachment-menu button {
  background: none;
  border: none;
  padding: 10px 15px;
  text-align: left;
  width: 100%;
  cursor: pointer;
  font-size: 1rem;
}

#attachment-menu button:hover {
  background: #eee;
}

#emoji-picker.hidden,
#attachment-menu.hidden {
  display: none;
}

#emoji-picker span {
  cursor: pointer;
  padding: 5px;
  font-size: 1.2rem;
  text-align: center;
  border-radius: 4px;
}

#emoji-picker span:hover {
  background: #eee;
} 