/* Preloader Styles */
#gdh-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* شفافية */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

#gdh-preloader.preloader-hidden {
    opacity: 0;
    pointer-events: none;
}

#gdh-preloader img {
    width: 150px;
    height: auto;
    animation: 
        gdh-rotate 4s linear infinite, 
        gdh-pulse 2s infinite;
    margin-bottom: 20px;
}

/* لون خلفية احتياطي للـ logo-placeholder */
#gdh-preloader .logo-placeholder {
    font-size: 24px;
    color: #3498db;
    font-weight: bold;
    margin-bottom: 20px;
}

@keyframes gdh-rotate {
    0% { transform: rotate(0deg) scale(0.8); }
    100% { transform: rotate(360deg) scale(0.8); }
}

@keyframes gdh-pulse {
    0% { transform: scale(0.8); }
    50% { transform: scale(1); }
    100% { transform: scale(0.8); }
}

.gdh-loading-dots {
    display: flex;
    margin-top: 20px;
}

.gdh-loading-dots span {
    width: 10px;
    height: 10px;
    background-color: #3498db;
    border-radius: 50%;
    margin: 0 5px;
    animation: gdh-bounce 1.5s infinite ease-in-out;
}

.gdh-loading-dots span:nth-child(2) { animation-delay: 0.1s; }
.gdh-loading-dots span:nth-child(3) { animation-delay: 0.2s; }

@keyframes gdh-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.gdh-loading-percentage {
    font-size: 24px;
    color: #3498db;
    font-weight: bold;
    margin-top: 10px;
}