/* Ultra-Reliable Shimmer Effect - Modern Gradient Style */
/* Updated: 2025-07-14 18:38:42 for shameem152 */

/* Overlay container - unchanged */
#shimmer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 999999;
    display: none;
    opacity: 0;
    transition: opacity 0.1s ease;
}

#shimmer-overlay.active {
    display: block;
    opacity: 1;
}

/* Modern shimmer content container */
.shimmer-content {
    max-width: 500px; /* Changed from 1200px to match modern style */
    margin: 20px auto;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column; /* Changed to column layout */
    gap: 20px;
}

/* Header shimmer (new) */
.shimmer-content::before {
    content: "";
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    height: 60px;
    border-radius: 8px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer-gradient 2s infinite;
}

/* Enhanced shimmer boxes */
.shimmer-box {
    height: 60px;
    width: 100%;
    margin: 0 0 8px 0;
    border-radius: 8px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer-gradient 2s infinite;
}

/* Staggered animation delays */
.shimmer-box:nth-child(1) { animation-delay: 0s; }
.shimmer-box:nth-child(2) { animation-delay: 0.2s; }
.shimmer-box:nth-child(3) { animation-delay: 0.4s; }

/* Vary sizes for visual interest */
.shimmer-box:nth-child(2) { width: 85%; height: 50px; }
.shimmer-box:nth-child(3) { width: 70%; height: 50px; }

/* Add some additional shimmer elements for modern look */
.shimmer-content::after {
    content: "";
    display: block;
    width: 150px;
    height: 50px;
    margin: 20px auto 0;
    border-radius: 25px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer-gradient 2s infinite;
    animation-delay: 0.6s;
}

/* Modern gradient animation */
@keyframes shimmer-gradient {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Enhanced skeleton animation */
.skeleton-enhanced {
    background: linear-gradient(90deg, 
        #f0f0f0 0%, 
        #e8e8e8 20%, 
        #f8f8f8 40%, 
        #e8e8e8 60%, 
        #f0f0f0 80%, 
        #f0f0f0 100%
    );
    background-size: 200% 100%;
    animation: shimmer-enhanced 2.5s infinite ease-in-out;
}

@keyframes shimmer-enhanced {
    0% { 
        background-position: -200% 0; 
        opacity: 0.8;
    }
    50% { 
        background-position: 0% 0; 
        opacity: 1;
    }
    100% { 
        background-position: 200% 0; 
        opacity: 0.8;
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .shimmer-content {
        max-width: 90%;
        margin: 10px auto;
        padding: 20px;
    }
    
    .shimmer-box {
        height: 50px;
    }
}