/* DmApp Dynamic Progress Bars */

/* ===== PROGRESS CONTAINER ===== */

.dynamic-progress-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ===== HEART PROGRESS ===== */

.progress-heart-container {
    position: relative;
    animation: heartbeat 1s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.progress-heart-svg {
    filter: drop-shadow(0 4px 8px rgba(0, 255, 0, 0.3));
}

.heart-fill {
    animation: heartPulse 2s ease-in-out infinite;
}

@keyframes heartPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* ===== BUBBLE PROGRESS ===== */

.progress-bubble-container {
    position: relative;
}

.progress-bubble-svg {
    filter: drop-shadow(0 4px 8px rgba(0, 255, 0, 0.3));
}

.bubble-fill {
    transform-origin: 50% 50%;
    transition: transform 0.3s ease;
}

.bubble-outline {
    animation: bubbleFloat 3s ease-in-out infinite;
}

@keyframes bubbleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* ===== ROCKET PROGRESS ===== */

.progress-rocket-container {
    position: relative;
}

.rocket-track {
    border-radius: 10px;
    overflow: hidden;
}

.rocket-icon {
    animation: rocketShake 0.3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 255, 0, 0.5));
}

@keyframes rocketShake {
    0%, 100% {
        transform: translateX(-50%) rotate(-2deg);
    }
    50% {
        transform: translateX(-50%) rotate(2deg);
    }
}

/* ===== CIRCLE PROGRESS ===== */

.progress-circle-container {
    position: relative;
}

.progress-circle-svg {
    filter: drop-shadow(0 4px 8px rgba(0, 255, 0, 0.2));
}

.progress-circle-fill {
    transition: stroke-dashoffset 0.3s ease;
    animation: circlePulse 2s ease-in-out infinite;
}

@keyframes circlePulse {
    0%, 100% {
        stroke-width: 8;
    }
    50% {
        stroke-width: 10;
    }
}

/* ===== BAR PROGRESS ===== */

.progress-bar-container {
    position: relative;
}

.progress-bar-fill {
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ===== PERCENTAGE TEXT ===== */

.progress-percentage {
    font-family: 'Arial', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: percentagePulse 1s ease-in-out infinite;
}

@keyframes percentagePulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* ===== UPLOAD MODAL ===== */

.upload-progress-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

/* ===== RICH MEDIA PROGRESS ===== */

.media-upload-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.media-preview {
    width: 200px;
    height: 200px;
    border-radius: 15px;
    object-fit: cover;
    border: 3px solid rgba(0, 255, 0, 0.3);
    box-shadow: 0 4px 12px rgba(0, 255, 0, 0.2);
}

.upload-info {
    text-align: center;
    color: #333;
}

.upload-filename {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.upload-size {
    font-size: 14px;
    color: #666;
}

/* ===== 4K VIDEO INDICATOR ===== */

.video-quality-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #00FF00, #00CC00);
    color: white;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 255, 0, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0, 255, 0, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 255, 0, 0.6);
    }
}

/* ===== GIF ANIMATION INDICATOR ===== */

.gif-indicator {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #00FF00;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* ===== COMPLETION ANIMATION ===== */

@keyframes progressComplete {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.progress-complete {
    animation: progressComplete 0.6s ease-out forwards;
}

/* ===== SUCCESS CHECKMARK ===== */

.progress-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00FF00, #00CC00);
    border-radius: 50%;
    animation: successPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.progress-success::after {
    content: '✓';
    color: white;
    font-size: 36px;
    font-weight: bold;
}

@keyframes successPop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* ===== MOBILE OPTIMIZATIONS ===== */

@media (max-width: 768px) {
    .dynamic-progress-container {
        padding: 15px;
    }
    
    .media-preview {
        width: 150px;
        height: 150px;
    }
    
    .upload-progress-modal {
        padding: 30px 20px;
        width: 90%;
    }
}

/* ===== REDUCED MOTION ===== */

@media (prefers-reduced-motion: reduce) {
    .progress-heart-container,
    .rocket-icon,
    .bubble-outline,
    .progress-circle-fill,
    .progress-percentage {
        animation: none !important;
    }
}
