/**
 * Workout Generation Progress Modal Styles
 *
 * Professional, responsive styling for the workout generation progress modal.
 * Includes animations, mobile optimizations, and iOS safe area support.
 *
 * @author Combat Ready App
 * @version 1.0
 */

/* === Modal Overlay === */
.workout-progress-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.workout-progress-modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* === Modal Container === */
.workout-progress-modal {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* === Modal Header === */
.workout-progress-modal h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

/* === Progress Stage Text === */
.progress-stage-text {
    color: #667eea;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    min-height: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

/* === Progress Bar Container === */
.progress-bar-container {
    background: #f0f0f0;
    height: 40px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

/* === Progress Bar === */
.progress-bar {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    height: 100%;
    width: 0%;
    border-radius: 20px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

/* Progress bar shimmer effect */
.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        transparent,
        rgba(255,255,255,0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* === Progress Percentage === */
.progress-percentage {
    color: #666;
    font-size: 18px;
    font-weight: 700;
    margin-top: 15px;
    text-align: center;
}

/* === Mobile Optimizations === */
@media (max-width: 768px) {
    .workout-progress-modal {
        padding: 24px 20px;
        max-width: 85%;
    }

    .workout-progress-modal h2 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .progress-stage-text {
        font-size: 13px;
        margin-bottom: 14px;
    }

    .progress-bar-container {
        height: 28px;
        border-radius: 14px;
    }

    .progress-percentage {
        font-size: 14px;
        margin-top: 10px;
    }

    /* iOS safe area support */
    .workout-progress-modal {
        margin-bottom: env(safe-area-inset-bottom, 0px);
    }
}
