/* Timeline Loading Animation Styles */

/* Timeline Skeleton Loading */
.timeline-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
    margin-bottom: 12px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Timeline Container Loading Overlay */
.timeline-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(2px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: opacity 0.3s ease-in-out;
}

/* Timeline Loading Spinner */
.timeline-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: timeline-spin 1s linear infinite;
    margin-bottom: 16px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

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

/* Timeline Loading Content */
.timeline-loading-content {
    text-align: center;
    color: #374151;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.timeline-loading-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f2937;
    text-align: center;
}

.timeline-loading-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
    text-align: center;
}

/* Timeline Loading Progress */
.timeline-progress-container {
    width: 200px;
    height: 3px;
    background: #f3f4f6;
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 12px;
}

.timeline-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 2px;
    transition: width 0.3s ease;
    animation: timeline-progress-pulse 2s ease-in-out infinite;
}

@keyframes timeline-progress-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Timeline Loading Dots */
.timeline-loading-dots {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.timeline-dot {
    width: 6px;
    height: 6px;
    background: #9ca3af;
    border-radius: 50%;
    animation: timeline-dot-pulse 1.4s infinite ease-in-out;
}

.timeline-dot:nth-child(1) {
    animation-delay: 0s;
}

.timeline-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.timeline-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes timeline-dot-pulse {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    40% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Timeline Container Positioning */
.timeline-container {
    position: relative;
    min-height: 400px;
}

/* Fade in animation for timeline content */
.timeline-content-fade-in {
    animation: timeline-fade-in 0.5s ease-in-out;
}

@keyframes timeline-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline-spinner {
        width: 32px;
        height: 32px;
        border-width: 2px;
    }
    
    .timeline-loading-title {
        font-size: 14px;
    }
    
    .timeline-loading-subtitle {
        font-size: 12px;
    }
    
    .timeline-progress-container {
        width: 150px;
    }
} 