/**
 * Progress Bar CSS for ZDI Zlecenia
 * Style dla animowanych progress barów
 */

/* Style dla progress bar overlay */
.progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 9999;
    backdrop-filter: blur(3px);
}

.progress-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 350px;
    max-width: 90vw;
    text-align: center;
}

.progress-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.progress-icon {
    margin-bottom: 0.5rem;
    animation: pulse 2s infinite;
}

.progress-icon.success {
    animation: bounceIn 0.6s ease-out;
}

.progress-title {
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

.progress-animated {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-bar-animated {
    animation: progress-slide 1.5s infinite linear;
    background: linear-gradient(45deg, #007bff 25%, transparent 25%, transparent 50%, #007bff 50%, #007bff 75%, transparent 75%, transparent);
    background-size: 30px 30px;
}

/* Animacje dla progress bar */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes progress-slide {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 30px 0;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* Style dla wyłączonego przycisku podczas zapisywania */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive dla progress bar */
@media (max-width: 480px) {
    .progress-container {
        min-width: 300px;
        padding: 1.5rem;
    }
    
    .progress-title {
        font-size: 1rem;
    }
    
    .progress-icon i {
        font-size: 1.5rem !important;
    }
}