/* Progress Chart Extras - Tooltips and Additional Animations - RTL Support */

/* Tooltip Styles */
.progress-tooltip {
    position: fixed;
    background: linear-gradient(135deg, #0056bc 0%, #003d82 100%);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 86, 188, 0.3);
    font-size: 0.85rem;
    z-index: 1000;
    opacity: 0;
    transform: translateX(-50%) translateY(-100%) scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    direction: rtl;
}

.progress-tooltip.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-100%) scale(1);
}

.progress-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #0056bc;
}

.tooltip-header {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.tooltip-content {
    opacity: 0.9;
    font-size: 0.8rem;
}

/* Entrance Animations */
.chart-loaded .stage-indicator {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-loaded .stage-indicator.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.chart-loaded .progress-stat {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-loaded .progress-stat.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Hover Effects */
.progress-chart-container {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-chart-container:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 86, 188, 0.25);
}

/* Stage Indicator Enhanced Interactions */
.stage-indicator {
    cursor: pointer;
    transition: all 0.3s ease;
}

.stage-indicator:hover {
    transform: translateY(-2px);
}

.stage-indicator:hover .stage-indicator-icon {
    transform: scale(1.15);
}

.stage-indicator.completed:hover .stage-indicator-icon {
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.stage-indicator.current:hover .stage-indicator-icon {
    box-shadow: 0 0 30px rgba(255, 255, 255, 1);
}

/* Progress Stats Enhanced */
.progress-stat {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-stat::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: right 0.5s ease;
}

.progress-stat:hover::before {
    right: 100%;
}

.progress-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 86, 188, 0.3);
}

/* Circular Progress Enhanced */
.circular-progress-container {
    position: relative;
}

.circular-progress-container::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: rotate 4s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Floating Elements Enhanced - RTL Positions */
.floating-element {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: floatEnhanced 8s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.floating-element:nth-child(1) {
    top: 15%;
    right: 15%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.floating-element:nth-child(2) {
    top: 70%;
    left: 20%;
    animation-delay: 2s;
    animation-duration: 8s;
}

.floating-element:nth-child(3) {
    bottom: 25%;
    right: 25%;
    animation-delay: 4s;
    animation-duration: 7s;
}

@keyframes floatEnhanced {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-15px) rotate(90deg) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-25px) rotate(180deg) scale(1);
        opacity: 1;
    }
    75% {
        transform: translateY(-15px) rotate(270deg) scale(1.2);
        opacity: 0.8;
    }
}

/* Progress Percentage Counter Animation */
.progress-percentage {
    position: relative;
}

.progress-percentage::after {
    content: '%';
    font-size: 1.5rem;
    opacity: 0.8;
    margin-right: 0.25rem;
}

/* Stage Connection Lines Animation */
.stage-indicator::before {
    transition: all 0.5s ease;
}

.stage-indicator.completed::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Loading State */
.progress-chart-loading {
    position: relative;
}

.progress-chart-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .progress-tooltip {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
    
    .floating-element {
        width: 4px;
        height: 4px;
    }
    
    .stage-indicator:hover {
        transform: none;
    }
    
    .progress-stat:hover {
        transform: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .progress-chart-container {
        background: linear-gradient(135deg, #0056bc 0%, #003d82 100%);
    }
    
    .progress-tooltip {
        background: linear-gradient(135deg, #0056bc 0%, #003d82 100%);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .progress-chart-container {
        border: 2px solid #fff;
    }
    
    .stage-indicator-icon {
        border: 2px solid rgba(255, 255, 255, 0.5);
    }
}

/* Print Styles */
@media print {
    .progress-chart-container {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .floating-element,
    .progress-tooltip {
        display: none !important;
    }
    
    .circular-progress-fill {
        stroke: #0056bc !important;
    }
    
    .circular-progress-bg {
        stroke: #ccc !important;
    }
} 
