/* /Pages/FileManagement.razor.rz.scp.css */
/* Item enter — used when new items appear (after upload, paste, create-folder) */
[b-y9wpa6793e] .file-item-enter {
    animation: fileItemEnter-b-y9wpa6793e 320ms cubic-bezier(0.18, 0.89, 0.32, 1.28) both;
}

@keyframes fileItemEnter-b-y9wpa6793e {
    0%   { opacity: 0; transform: translateY(8px) scale(0.85); }
    60%  { opacity: 1; transform: translateY(-2px) scale(1.04); }
    100% { opacity: 1; transform: translateY(0)     scale(1);    }
}

/* Item exit — used when items are about to be deleted (fade + collapse before refresh) */
[b-y9wpa6793e] .file-item-exit {
    animation: fileItemExit-b-y9wpa6793e 260ms ease-in both;
    pointer-events: none;
}

@keyframes fileItemExit-b-y9wpa6793e {
    0%   { opacity: 1; transform: scale(1)    rotate(0deg); filter: blur(0); }
    60%  { opacity: 0.4; transform: scale(0.94) rotate(-1.5deg); filter: blur(0.5px); }
    100% { opacity: 0; transform: scale(0.7)  rotate(-3deg);   filter: blur(2px); }
}

/* Drag/transfer trail — chip that drifts across the screen during a paste/move */
[b-y9wpa6793e] .file-transfer-chip {
    position: fixed;
    z-index: 60;
    top: 84px;
    right: 24px;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: white;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    box-shadow: 0 12px 32px -8px rgba(20, 184, 166, 0.55);
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: chipSlideIn-b-y9wpa6793e 280ms ease-out both;
}

@keyframes chipSlideIn-b-y9wpa6793e {
    from { transform: translateY(-12px) scale(0.9); opacity: 0; }
    to   { transform: translateY(0)     scale(1);   opacity: 1; }
}

[b-y9wpa6793e] .file-transfer-chip .arrow {
    display: inline-block;
    animation: arrowFly-b-y9wpa6793e 800ms ease-in-out infinite;
}

@keyframes arrowFly-b-y9wpa6793e {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(6px); }
}

/* Read-only lock badge — small floating badge */
[b-y9wpa6793e] .lock-badge {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

:root.dark[b-y9wpa6793e]  .lock-badge,
.dark[b-y9wpa6793e]  .lock-badge {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}
