/* مؤشر التحميل عند الوصول لنهاية الصفحة */
.scroll-loading-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 16px 28px;
    border-radius: 30px;
    box-shadow: 0 8px 25px rgba(0,123,255,0.4);
    font-weight: 600;
    z-index: 1000;
    animation: slideUp 0.4s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
}

.loading-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner i {
    font-size: 1.4rem;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 1rem;
    white-space: nowrap;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* رسالة انتهاء المحتوى */
.end-of-content-message {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    margin: 2rem 0;
    border: 2px dashed #dee2e6;
    position: relative;
    overflow: hidden;
}

.end-of-content-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.end-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.end-icon i {
    font-size: 2.5rem;
    color: white;
}

.end-of-content-message h4 {
    color: #495057;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.end-of-content-message p {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.end-of-content-message small {
    color: #868e96;
    font-weight: 600;
    background: rgba(108, 117, 125, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    display: inline-block;
}

/* رسالة الخطأ */
.error-message {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-radius: 15px;
    margin: 2rem 0;
    color: #721c24;
    font-weight: 600;
    border: 2px solid #f1b0b7;
}

.error-message i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .scroll-loading-indicator {
        bottom: 20px;
        padding: 12px 20px;
        border-radius: 25px;
    }
    
    .loading-text {
        font-size: 0.9rem;
    }
    
    .end-of-content-message {
        padding: 2rem 1rem;
        margin: 1rem 0;
    }
    
    .end-icon {
        width: 60px;
        height: 60px;
    }
    
    .end-icon i {
        font-size: 2rem;
    }
    
    .end-of-content-message h4 {
        font-size: 1.3rem;
    }
}
