/* Searchable emoji-picker popover (see wwwroot/CoffeeteDemo/assets/js/shared/emoji-picker.js) */
.emj-picker {
    position: absolute;
    z-index: 2000;
    width: 288px;
    max-height: 340px;
    background: #fff;
    border: 1px solid #e4e4e9;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: "Vazirmatn", sans-serif;
    animation: emjPopIn .15s ease;
}

@keyframes emjPopIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

.emj-picker-head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.emj-picker-search {
    flex: 1;
    height: 34px;
    border: 1.5px solid #e4e4e9;
    border-radius: 8px;
    padding: 0 10px;
    font-size: .82rem;
    direction: rtl;
    outline: none;
}

.emj-picker-search:focus {
    border-color: #29ABE2;
}

.emj-picker-remove {
    border: none;
    background: #fef2f2;
    color: #dc2626;
    font-size: .72rem;
    font-weight: 700;
    border-radius: 8px;
    padding: 0 10px;
    height: 34px;
    white-space: nowrap;
    cursor: pointer;
}

.emj-picker-remove:hover {
    background: #fee2e2;
}

.emj-picker-close {
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    font-size: 18px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 6px;
}

.emj-picker-close:hover {
    background: #f1f5f9;
    color: #334155;
}

.emj-picker-body {
    overflow-y: auto;
    padding: 6px 10px 10px;
}

.emj-section-title {
    font-size: .7rem;
    font-weight: 700;
    color: #94a3b8;
    margin: 8px 2px 4px;
}

.emj-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.emj-btn {
    border: none;
    background: none;
    font-size: 1.25rem;
    line-height: 1;
    padding: 6px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background .12s, transform .12s;
}

.emj-btn:hover {
    background: #e8f6fc;
    transform: scale(1.15);
}

.emj-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #94a3b8;
    font-size: .8rem;
    padding: 12px 0;
}

/* Badge-trigger button on the avatar-edit preview */
.ac-badge-trigger {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    line-height: 1;
    cursor: pointer;
    color: #29ABE2;
}

.ac-badge-trigger:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
    transform: scale(1.08);
}

.ac-badge-trigger.is-empty {
    opacity: .55;
}

.ac-badge-trigger.is-empty:hover {
    opacity: 1;
}
