/* Innovation Progress Chart Styles - RTL Support */
.progress-chart-container {
    background: linear-gradient(135deg, #0056bc 0%, #003d82 100%);
    border-radius: 20px;
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 86, 188, 0.2);
    direction: rtl;
}

.progress-chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.progress-chart-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.progress-chart-title {
    color: white;   
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-chart-title i {
    margin-left: 0.5rem;
    margin-right: 0;
}

.progress-chart-subtitle {
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Circular Progress Chart */
.circular-progress-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
}

.circular-progress {
    width: 100%;
    height: 100%;
    position: relative;
    transform: rotate(-90deg);
}

.circular-progress-circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dasharray 1.5s ease-in-out;
}

.circular-progress-bg {
    stroke: rgba(255, 255, 255, 0.2);
}

.circular-progress-fill {
    stroke: #fff;
    stroke-dasharray: 0 283;
    animation: progressAnimation 2s ease-out forwards;
}

@keyframes progressAnimation {
    to {
        stroke-dasharray: var(--progress-value) 283;
    }
}

.circular-progress-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3;
}

.progress-percentage {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Stage Indicators - RTL Layout */
.stage-indicators {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
    flex-direction: row-reverse; /* RTL: Reverse the order */
}

.stage-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    position: relative;
}

.stage-indicator::before {
    content: '';
    position: absolute;
    top: 25px;
    right: 50%; /* RTL: Change from left to right */
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(50%); /* RTL: Change from -50% to 50% */
    z-index: -1;
}

.stage-indicator:first-child::before { /* RTL: Change from last-child to first-child */
    display: none;
}

.stage-indicator.completed::before {
    background: rgba(255, 255, 255, 0.6);
}

.stage-indicator-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.stage-indicator.completed .stage-indicator-icon {
    background: rgba(255, 255, 255, 0.9);
    color: #0056bc;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
    animation: completedPulse 2s ease-in-out;
}

.stage-indicator.current .stage-indicator-icon {
    background: #fff;
    color: #0056bc;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    animation: currentPulse 2s ease-in-out infinite;
}

.stage-indicator.pending .stage-indicator-icon {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

@keyframes completedPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes currentPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 0 30px rgba(255, 255, 255, 1);
    }
}

.stage-indicator-name {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.stage-indicator-status {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Progress Stats */
.progress-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.progress-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.progress-stat:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.progress-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
    color: white;
}

/* Floating Elements Animation */
.floating-element {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 20%;
    right: 10%; /* RTL: Change from left to right */
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    left: 15%; /* RTL: Change from right to left */
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    bottom: 30%;
    right: 20%; /* RTL: Change from left to right */
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .progress-chart-container {
        padding: 1.5rem;
    }
    
    .circular-progress-container {
        width: 150px;
        height: 150px;
    }
    
    .progress-percentage {
        font-size: 2rem;
    }
    
    .stage-indicators {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stage-indicator::before {
        display: none;
    }
    
    .progress-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Loading Animation */
.progress-chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hover Effects */
.progress-chart-container:hover .floating-element {
    animation-duration: 3s;
}

.stage-indicator:hover .stage-indicator-icon {
    transform: scale(1.1);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .circular-progress-fill,
    .floating-element,
    .stage-indicator-icon {
        animation: none;
    }
} 
