/* Progress indicator styles */
.progress-modal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.progress-modal .progress {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-modal .progress-bar {
    background: linear-gradient(45deg, var(--bs-primary), var(--bs-info));
    transition: width 0.3s ease;
}

.progress-modal .spinner-border {
    width: 3rem;
    height: 3rem;
}

.progress-modal #progressPercent {
    font-size: 1.5rem;
    font-weight: bold;
}

.progress-modal #progressText {
    font-size: 1.1rem;
    min-height: 1.5rem;
}

/* Animation for progress text */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.progress-modal #progressText {
    animation: pulse 2s ease-in-out infinite;
}

/* Error state styles */
.progress-modal .text-danger {
    animation: none;
}

.progress-modal .spinner-error {
    color: var(--bs-danger) !important;
}

/* Success state */
.progress-modal .text-success {
    animation: none;
    font-weight: bold;
}

/* Progress bar stripes animation */
.progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    0% { background-position: 1rem 0; }
    100% { background-position: 0 0; }
}

/* Loading button enhancement */
#generateBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#generateBtn .spinner-border-sm {
    animation: spin 1s linear infinite;
}

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

/* Modal backdrop blur effect */
.modal-backdrop {
    backdrop-filter: blur(3px);
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .progress-modal .modal-dialog {
        margin: 1rem;
    }
    
    .progress-modal #progressPercent {
        font-size: 1.2rem;
    }
    
    .progress-modal #progressText {
        font-size: 1rem;
    }
}