/*
 * Collaborative markdown editor (CollaborativeMarkdownEditor) — remote
 * caret styles only.
 *
 * The blade-rendered UI (presence bar, avatars, dirty badge) uses Tailwind
 * utilities scanned from the view by the host theme's @source directives,
 * like every other module blade. The caret DOM below is generated from JS
 * (CodeMirror setBookmark widgets), which Tailwind never sees, so it ships
 * as a registered Filament Css asset (see CoreServiceProvider).
 */

.fi-collab-caret {
    position: relative;
    display: inline-block;
    width: 0;
}

.fi-collab-caret::before {
    content: '';
    position: absolute;
    inset-block: 0;
    inset-inline-start: -1px;
    width: 2px;
    height: 1.2em;
    background-color: var(--c, #6b7280);
}

.fi-collab-caret-label {
    position: absolute;
    inset-block-start: -1.2em;
    inset-inline-start: -1px;
    padding: 0 0.25rem;
    border-radius: 0.25rem;
    background-color: var(--c, #6b7280);
    color: #fff;
    font-size: 0.625rem;
    line-height: 1.2em;
    white-space: nowrap;
    pointer-events: none;
    opacity: 1;
    animation: fi-collab-caret-label-fade 0.3s ease-in 2.5s forwards;
}

@keyframes fi-collab-caret-label-fade {
    to {
        opacity: 0;
    }
}
