.riderprofileskeleton .top,
.riderprofileskeleton .bottom .timeline,
.riderprofileskeleton .bottom .bottomRight {
    animation: skeleton-loading 1s linear infinite alternate;
}

@keyframes skeleton-loading {
    0% {
        background-color: rgb(230, 230, 230);
    }
    100% {
        background-color: rgb(245, 245, 245);
    }
}

.riderprofileskeleton {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    padding: 48px 48px 80px 48px;
}

.riderprofileskeleton .top {
    width: 100%;
    height: 550px;
    border-radius: 16px;
    margin-bottom: 50px !important;
    background-image: none !important;
}

.riderprofileskeleton .bottom {
    display: flex;
    justify-content: space-between;
}

.riderprofileskeleton .bottom .timeline {
    width: 70%;
    height: 300px;
    border-radius: 16px;
}

.riderprofileskeleton .bottom .bottomRight {
    width: 20%;
    height: 180px;
    border-radius: 16px;
}

/* iPad */
@media (min-width: 768px) and (max-width: 1024px) {
    .admin .main-container {
        padding-left: 0;
    }
    .riderprofileskeleton .bottom {
        margin-bottom: 100px;
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
    }
    .riderprofileskeleton .bottom .timeline {
        width: 100%;
    }
    .riderprofileskeleton .bottom .bottomRight {
        width: 40%;
        height: 150px;
        margin-bottom: 40px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .admin .main-container {
        padding-left: 0;
    }
    .riderprofileskeleton {
        padding: 8px;
    }
    .riderprofileskeleton .bottom {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
    }
    .riderprofileskeleton .bottom .timeline {
        width: 98%;
        height: 200px;
    }

    .riderprofileskeleton .bottom .bottomRight {
        width: 90%;
        height: 150px;
        margin-bottom: 20px;
    }
}

/* DARK MODE */
.dark .riderprofileskeleton .top,
.dark .riderprofileskeleton .bottom .timeline,
.dark .riderprofileskeleton .bottom .bottomRight {
    animation: skeleton-loading-dark 1s linear infinite alternate;
}

@keyframes skeleton-loading-dark {
    0% {
        background-color: rgba(255, 255, 255, 0.1);
    }
    100% {
        background-color: rgba(255, 255, 255, 0.2);
    }
}
