/* Modern Gamified AI Progress Bar - Black & White Theme */
#ai-progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in;
    transition: opacity 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.ai-progress-container {
    background: #ffffff;
    border: 2px solid #000000;
    padding: 40px 50px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.4s ease-out;
    font-family: inherit;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ai-progress-icon {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
}

.ai-spinner {
    width: 100px;
    height: 100px;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.ai-spinner .path {
    stroke: #000000;
    stroke-linecap: square;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

.ai-sparkles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.ai-progress-text {
    margin-bottom: 25px;
}

.ai-progress-title {
    color: #000000;
    font-size: 29px;
    font-weight: inherit;
    margin: 0 0 10px 0;
    font-family: inherit;
}

.ai-progress-message {
    color: #000000;
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
    opacity: 0.7;
    animation: fadeInOut 2s ease-in-out infinite;
    font-family: inherit;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.ai-progress-bar-wrapper {
    position: relative;
}

.ai-progress-bar {
    width: 100%;
    height: 8px;
    background: #000000;
    overflow: hidden;
}

.ai-progress-fill {
    height: 100%;
    width: 0%;
    background: #FF6B6B;
    transition: width 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

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

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

.ai-progress-percentage {
    color: #000000;
    font-size: 14px;
    font-weight: 700;
    margin-top: 10px;
    letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 600px) {
    .ai-progress-container {
        padding: 30px 25px;
    }

    .ai-progress-icon {
        width: 80px;
        height: 80px;
    }

    .ai-spinner {
        width: 80px;
        height: 80px;
    }

    .ai-sparkles {
        font-size: 32px;
    }
}
