/* Author Badge - Shows task creator in shared spaces */
.author-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    z-index: 5;
    cursor: default;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    user-select: none;
}

/* Adjust positioning for different view modes */

/* Column view - task-item */
.task-item .author-badge {
    top: calc(50% + 5px);
    transform: translateY(+10%);
    position: relative;
    /* Changed from absolute to work in flex layout */
    margin-left: auto;
    /* Push to the right */
    margin-right: 0px;
    /* Small gap before actions */
    flex-shrink: 0;
}

/* Sticker view - sticker-card */
.sticker-card .author-badge {
    top: 8px;
    right: 8px;
}

/* Matrix view - matrix cards */
.matrix-canvas .sticker-card .author-badge {
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    font-size: 9px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .author-badge {
        width: 22px;
        height: 22px;
        font-size: 9px;
    }
}