/**
 * Mention Autocomplete Dropdown Styling
 */

.mention-dropdown {
    position: absolute;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 9999;
    min-width: 250px;
}

.dark-mode .mention-dropdown {
    background: #1a1d29;
    border-color: #2d3142;
}

.mention-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dark-mode .mention-item {
    border-bottom-color: #2d3142;
}

.mention-item:last-child {
    border-bottom: none;
}

.mention-item:hover,
.mention-item.selected {
    background-color: #f8f9fa;
}

.dark-mode .mention-item:hover,
.dark-mode .mention-item.selected {
    background-color: #2d3142;
}

.mention-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.mention-info {
    flex-grow: 1;
    min-width: 0;
}

.mention-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #212529;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dark-mode .mention-name {
    color: #fff;
}

.mention-username {
    font-size: 0.75rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dark-mode .mention-username {
    color: #adb5bd;
}

/* Styled mentions in content */
.user-mention {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.user-mention:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.dark-mode .user-mention {
    color: #6ea8fe;
}

.dark-mode .user-mention:hover {
    color: #9ec5fe;
}

/* Scrollbar styling for dropdown */
.mention-dropdown::-webkit-scrollbar {
    width: 6px;
}

.mention-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 0.5rem 0.5rem 0;
}

.dark-mode .mention-dropdown::-webkit-scrollbar-track {
    background: #1a1d29;
}

.mention-dropdown::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.mention-dropdown::-webkit-scrollbar-thumb:hover {
    background: #555;
}



