.fi-in-entry-content .mention[data-type="mention"],
.fi-fo-rich-editor .mention[data-type="mention"],
.mention[data-type="mention"] {
    background-color: #e3f2fd !important;
    color: #1976d2 !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    display: inline !important;
}

.dark .fi-in-entry-content .mention[data-type="mention"],
.dark .fi-fo-rich-editor .mention[data-type="mention"],
.dark .mention[data-type="mention"] {
    background-color: #1e3a8a !important;
    color: #93c5fd !important;
}

/* Mention dropdown styles - flexible positioning */
.mention-dropdown {
    position: absolute !important;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    max-height: 12rem;
    overflow-y: auto;
    z-index: 9999 !important;
    min-width: 200px;
}

/* Fallback for cases where absolute positioning doesn't work */
.mention-dropdown.fixed-position {
    position: fixed !important;
}

.dark .mention-dropdown {
    background: #374151;
    border-color: #4b5563;
}

.mention-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    cursor: pointer;
}

.mention-item:hover {
    background-color: #f3f4f6;
}

.dark .mention-item:hover {
    background-color: #4b5563;
}

.mention-item .avatar {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    margin-right: 0.5rem;
    background-color: #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
}

.dark .mention-item .avatar {
    background-color: #4b5563;
}

.mention-item .name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
}

.dark .mention-item .name {
    color: #f9fafb;
}
