
@import (reference) '../../../styles/variables';

@keyframes pulse {
	30% {
		opacity: 0.6;
	}

	60% {
		opacity: 0;
	}

	to {
		opacity: 0.6;
	}
}

.jodit-progress-bar {
	position: absolute;
	z-index: 2147483647;
	top: 0;
	left: 0;
	height: 2px;
	border-radius: 1px;
	opacity: 0.7;

	div {
		position: relative;
		height: 2px;
		background: var(--color-background-progress);
		transition: width 500ms ease-out, opacity 500ms linear;
		will-change: width, opacity;

		&::before,
		&::after {
			position: absolute;
			top: 0;
			display: inline-block;
			height: 2px;
			animation: pulse 2s ease-out 0s infinite;
			border-radius: 100%;
			box-shadow: var(--color-background-progress) 1px 0 6px 1px;
			content: '';
			opacity: 0.6;
		}

		&::before {
			right: -80px;
			width: 180px;
			clip: rect(-6px, 90px, 14px, -6px);
		}

		&::after {
			right: 0;
			width: 20px;
			clip: rect(-6px, 22px, 14px, var(--padding-default));
		}
	}
}
