/* Download Progress Overlay */
.download-progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-in;
}

.download-progress-modal {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 400px;
    text-align: center;
    animation: slideUp 0.3s ease-out;
}

.download-progress-modal h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

/* Progress Bar */
.download-progress-modal .progress {
    margin: 20px 0;
    height: 30px;
    background-color: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
}

.download-progress-modal .progress-bar {
    font-size: 14px;
    line-height: 30px;
    background-color: #5cb85c;
    color: white;
    font-weight: 500;
    transition: width 0.3s ease;
}

.download-progress-modal .progress-bar.active {
    animation: progress-stripes 2s linear infinite;
}

@keyframes progress-stripes {
    0% {
        background-position: 40px 0;
    }
    100% {
        background-position: 0 0;
    }
}

/* Status Text */
.download-status {
    margin: 15px 0;
    color: #666;
    font-size: 14px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Alert/Error Styling */
.download-progress-modal .alert {
    margin: 10px 0;
    padding: 10px;
    font-size: 13px;
}

/* Spinner Animation */
.spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    height: 40px;
}

.spinner > div {
    width: 12px;
    height: 12px;
    margin: 0 3px;
    background-color: #5cb85c;
    border-radius: 50%;
    animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

.spinner .bounce1 {
    animation-delay: -0.32s;
}

.spinner .bounce2 {
    animation-delay: -0.16s;
}

.spinner .bounce3 {
    animation-delay: 0;
}

@keyframes sk-bouncedelay {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Cancel Button */
.download-progress-modal .btn {
    margin-top: 15px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .download-progress-modal {
        max-width: 90%;
        padding: 20px;
    }

    .download-progress-modal h4 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .download-status {
        font-size: 12px;
        height: 35px;
    }

    .spinner > div {
        width: 10px;
        height: 10px;
        margin: 0 2px;
    }
}
