.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* الساعة الرملية */
.hourglass {
    width: 40px;
    height: 80px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: flip 2s infinite ease-in-out;
}

/* الجزء العلوي والسفلي */
.hourglass::before,
.hourglass::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.hourglass::before {
    top: 0;
    background: linear-gradient(to bottom, #d2a679, #8B5E3B);
    transform: rotate(180deg);
}

.hourglass::after {
    bottom: 0;
    background: linear-gradient(to bottom, #8B5E3B, #5A3D2B);
}

/* الرمال داخل الساعة */
.sand {
    position: absolute;
    top: 10px;
    width: 8px;
    height: 30px;
    background: #8B5E3B;
    border-radius: 5px;
    animation: sandFlow 2s infinite linear;
}

/* تأثير سقوط الرمل */
.falling-sand {
    position: absolute;
    top: 38px;
    width: 4px;
    height: 10px;
    background: #8B5E3B;
    animation: fallingSand 2s infinite linear;
}

/* تأثير دوران الساعة الرملية */
@keyframes flip {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
    }
}

/* حركة الرمل العلوي */
@keyframes sandFlow {
    0% {
        height: 30px;
        opacity: 1;
    }

    50% {
        height: 5px;
        opacity: 0.5;
    }

    100% {
        height: 30px;
        opacity: 1;
    }
}

/* حركة سقوط الرمل */
@keyframes fallingSand {
    0% {
        height: 10px;
        opacity: 1;
    }

    50% {
        height: 15px;
        opacity: 0.5;
    }

    100% {
        height: 10px;
        opacity: 1;
    }
}
