/* Кнопка открытия панели (смайлик) */
.emoji-trigger {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    margin-right: 5px;
    transition: transform 0.2s;
    padding: 5px;
}
.emoji-trigger:hover {
    transform: scale(1.2);
}

/* Само окно панели */
.emoji-panel {
    position: absolute;
    bottom: 70px; /* Чуть выше поля ввода */
    right: 20px;
    width: 300px;
    height: 350px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.2);
    display: none; /* Скрыта по умолчанию */
    flex-direction: column;
    z-index: 1000;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}
.emoji-panel.active {
    display: flex;
}

/* Верхняя часть с поиском */
.emoji-search {
    padding: 10px;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
}
.emoji-search input {
    width: 100%;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    box-sizing: border-box;
}

/* Сетка с эмодзи */
.emoji-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 в ряд */
    gap: 2px;
    padding: 5px;
    overflow-y: auto;
    align-content: start;
}

/* Кнопка каждого эмодзи */
.emoji-item {
    font-size: 20px;
    background: transparent;
    border: none; /* Убираем рамки кнопок */
    cursor: pointer;
    border-radius: 4px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.emoji-item:hover {
    background: #f1f5f9;
}