#upload-progress-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    .lr-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
}

#progress-fill {
    width: 0%;
    height: 100%;
    background-size: 200%; 
    background-image: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)), hsl(var(--primary)));
    transition: width 0.3s ease;
    animation: animatedBar 2s linear forwards infinite;
    border-radius: 8px;
}


@keyframes animatedBar {
    0% { background-position: 0%; }
    100% { background-position: 200%; }
}

#progress-text {
    color: hsl(var(--muted-foreground));
    font-weight: 600;
}

#upload-progress-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

#upload-progress-card .lr-container .right {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.loadingSpinner {
    width: 0.5rem;
    height: 0.5rem;
    border: 4px solid hsl(var(--border));
    border-top-color: hsl(var(--accent));
    border-radius: 50%;
    animation: 
        spin 1s linear infinite,
        colorShift 0.75s ease-in-out infinite alternate;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes colorShift {
    0% { border-top-color: hsl(var(--primary)); }
    100% { border-top-color: hsl(var(--accent)); }
}


#progress-size {
    color: hsl(var(--muted-foreground));
    font-size: 0.8rem;
    /* margin-top: -0.4rem; */
}


/* ############################################################ */



#upload-success-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.success-link {
    margin-top: -.5rem;
    display: flex;
    flex-direction: row;
    width: 100%;
    border: 2px solid hsl(var(--primary));
    border-radius: var(--radius);
    background: hsl(var(--primary) / 0.05);
}


.success-link #share-link {
    text-overflow: ellipsis;
    padding: 1rem;
    font-size: .85rem;
    letter-spacing: 0.025rem;
    cursor: pointer;
    transition: background 0.2s;
    background: var(--card);
    color: var(--c-t-secondary);
    border: 1px solid var(--c-border);
    border-radius: 8px 0 0 8px;
    pointer-events: none;
    flex: 1;
}

.success-link #copy-link-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05rem;
    cursor: pointer;
    background: hsl(var(--primary));
    color: var(--c-t-primary);
    border: none;
    border-radius: 0 8px 8px 0;
    transition: all 0.2s linear;

    &:hover {
        background-color: hsl(var(--primary) / 0.75);
    }
}


#upload-success-card .upload-more {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border-radius: var(--radius);
    transition: all .15s linear;
    background: hsl(var(--accent));
    font-size: 1.15rem;
    line-height: 1.25rem;
    outline: none;
    color: hsl(var(--card-foreground));
    border: 0;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;

    &:hover {
        background-color: hsl(var(--accent) / 0.75);
    }
}