/* Progress Stats Widget Styles */
.progress-stats {
    display: block;
}

.progress-item {
    margin-bottom: 24px;
}

.progress-item:last-child {
    margin-bottom: 0;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(229, 231, 235, 0.8);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid rgba(155, 0, 0, 0.2);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #9B0000 0%, #C41E3A 100%);
    border-radius: 5px;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 15px rgba(155, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.progress-fill::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;
    animation-delay: 1.5s;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    color: #2d3236;
    font-weight: 600;
    margin-bottom: 12px;
}

.progress-text span:first-child {
    color: #2d3236;
    font-weight: 600;
}

.progress-text span:last-child {
    color: #2d3236;
    font-weight: 600;
}

/* Animation Classes */
.progress-stats.progress-animated .progress-fill {
    transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.progress-stats:not(.progress-animated) .progress-fill {
    transition: none;
}

/* Shimmer Animation */
@keyframes shimmer {
    0% { 
        transform: translateX(-100%); 
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% { 
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .progress-text {
        font-size: 14px;
    }
    
    .progress-item {
        margin-bottom: 20px;
    }
    
    .progress-text {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .progress-text {
        font-size: 13px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .progress-bar {
        margin-bottom: 8px;
    }
    
    .progress-item {
        margin-bottom: 18px;
    }
}

/* Enhanced Visual Effects */
.progress-stats .progress-bar {
    position: relative;
}

.progress-stats .progress-bar::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, transparent, rgba(155, 0, 0, 0.1), transparent);
    border-radius: 7px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-stats .progress-item:hover .progress-bar::before {
    opacity: 1;
}

/* Accessibility */
.progress-stats .progress-item {
    position: relative;
}

.progress-stats .progress-item[aria-label] {
    outline: none;
}

.progress-stats .progress-item:focus-within {
    outline: 2px solid #9B0000;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print Styles */
@media print {
    .progress-stats .progress-fill::after {
        display: none;
    }
    
    .progress-stats .progress-fill {
        background: #666 !important;
        box-shadow: none !important;
    }
}