/* =========================================================
   VUSHISS CHANNELS — PROGRESO DE CARGA
========================================================= */

.vcp-upload-progress,
.vcp-upload-progress * {
    box-sizing: border-box;
}

.vcp-upload-progress {
    position: relative;
    width: 100%;
    margin: 16px 0;
    padding: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    background:
        radial-gradient(circle at 100% 0%, rgba(173, 116, 255, 0.13), transparent 38%),
        linear-gradient(145deg, rgba(29, 29, 33, 0.98), rgba(16, 16, 18, 0.98));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
    color: #fff;
    animation: vcp-upload-enter 0.24s ease both;
}

.vcp-upload-progress::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        115deg,
        transparent 25%,
        rgba(255, 255, 255, 0.035) 42%,
        transparent 58%
    );
    transform: translateX(-100%);
}

.vcp-upload-progress.is-processing::before {
    animation: vcp-upload-shimmer 1.35s linear infinite;
}

.vcp-upload-progress__header,
.vcp-upload-progress__footer,
.vcp-upload-progress__file {
    display: flex;
    align-items: center;
}

.vcp-upload-progress__header {
    justify-content: space-between;
    gap: 14px;
}

.vcp-upload-progress__file {
    min-width: 0;
    gap: 11px;
}

.vcp-upload-progress__icon {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border: 1px solid rgba(190, 151, 255, 0.24);
    border-radius: 12px;
    background: rgba(142, 92, 220, 0.13);
    color: #c9a9ff;
}

.vcp-upload-progress__icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vcp-upload-progress__file-text {
    display: block;
    min-width: 0;
}

.vcp-upload-progress__title,
.vcp-upload-progress__name {
    display: block;
}

.vcp-upload-progress__title {
    margin-bottom: 3px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.1px;
    color: #fff !important;
}

.vcp-upload-progress__name {
    max-width: min(52vw, 440px);
    overflow: hidden;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.62) !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vcp-upload-progress__ring {
    position: relative;
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
}

.vcp-upload-progress__ring svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.vcp-upload-progress__ring circle {
    fill: none;
    stroke-width: 3;
}

.vcp-upload-progress__ring-track {
    stroke: rgba(255, 255, 255, 0.08);
}

.vcp-upload-progress__ring-value {
    stroke: #b788ff;
    stroke-linecap: round;
    stroke-dasharray: 106.814;
    stroke-dashoffset: 106.814;
    transition: stroke-dashoffset 0.18s linear;
}

.vcp-upload-progress__percent {
    position: relative;
    z-index: 1;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    color: #fff !important;
}

.vcp-upload-progress__bar {
    position: relative;
    width: 100%;
    height: 8px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.075);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.vcp-upload-progress__fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #7856d8, #bb8cff 65%, #e4d1ff);
    box-shadow: 0 0 18px rgba(176, 126, 255, 0.32);
    transition: width 0.18s linear;
}

.vcp-upload-progress__fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.32),
        transparent
    );
    transform: translateX(-100%);
    animation: vcp-upload-flow 1.15s ease-in-out infinite;
}

.vcp-upload-progress__footer {
    justify-content: space-between;
    gap: 12px;
    margin-top: 9px;
    font-size: 11px;
    line-height: 1.4;
}

.vcp-upload-progress__status {
    color: rgba(255, 255, 255, 0.72) !important;
}

.vcp-upload-progress__size {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.46) !important;
}

.vcp-upload-progress.is-indeterminate .vcp-upload-progress__fill {
    width: 40% !important;
    animation: vcp-upload-indeterminate 1.1s ease-in-out infinite;
}

.vcp-upload-progress.is-processing .vcp-upload-progress__ring-value {
    animation: vcp-upload-ring 1.05s linear infinite;
}

.vcp-upload-progress.is-success {
    border-color: rgba(69, 209, 139, 0.26);
}

.vcp-upload-progress.is-success .vcp-upload-progress__icon {
    border-color: rgba(69, 209, 139, 0.26);
    background: rgba(39, 174, 96, 0.12);
    color: #65dda0;
}

.vcp-upload-progress.is-success .vcp-upload-progress__ring-value {
    stroke: #45d18b;
}

.vcp-upload-progress.is-success .vcp-upload-progress__fill {
    background: linear-gradient(90deg, #2eaa6d, #68dea2);
}

.vcp-upload-progress.is-error {
    border-color: rgba(255, 99, 116, 0.28);
}

.vcp-upload-progress.is-error .vcp-upload-progress__icon,
.vcp-upload-progress.is-error .vcp-upload-progress__ring-value {
    color: #ff7281;
    stroke: #ff7281;
}

.vcp-upload-progress.is-error .vcp-upload-progress__fill {
    background: #ef5365;
}

.vcp-upload-is-busy button[type="submit"],
.vcp-upload-is-busy input[type="submit"] {
    cursor: wait !important;
    opacity: 0.62 !important;
}

@media (max-width: 560px) {
    .vcp-upload-progress {
        padding: 14px;
        border-radius: 14px;
    }

    .vcp-upload-progress__icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        border-radius: 11px;
    }

    .vcp-upload-progress__ring {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .vcp-upload-progress__name {
        max-width: 47vw;
    }

    .vcp-upload-progress__footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vcp-upload-progress,
    .vcp-upload-progress::before,
    .vcp-upload-progress__fill,
    .vcp-upload-progress__fill::after,
    .vcp-upload-progress__ring-value {
        animation: none !important;
        transition: none !important;
    }
}

@keyframes vcp-upload-enter {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes vcp-upload-flow {
    to {
        transform: translateX(100%);
    }
}

@keyframes vcp-upload-shimmer {
    to {
        transform: translateX(100%);
    }
}

@keyframes vcp-upload-ring {
    to {
        transform: rotate(360deg);
        transform-origin: 21px 21px;
    }
}

@keyframes vcp-upload-indeterminate {
    0% {
        left: -40%;
    }
    100% {
        left: 100%;
    }
}
