/* Alert */
#wiki-toast-box {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
    gap: 10px;
    z-index: 9999999;
    padding: 0 10px;
}
#wiki-toast-box.ltr {
    direction: ltr;
}
.toast {
    position: relative;
    width: 400px;
    background: #fff;
    border: 1px solid green;
    font-weight: 500;
    display: flex;
    align-items: center;
    transform: translateY(-100%);
    animation: movedown 0.5s ease-out forwards;
    color: black;
    font-size: 15px;
    min-height: 60px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.toast.error {
    border: 1px solid red;
}
.toast.invalid {
    border: 1px solid orange;
}
@keyframes movedown {
    100% {
        transform: translateY(0);
    }
}
.toast svg {
    background: green;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    padding: 5px;
    margin: 0 20px;
    flex-shrink: 0;
}
.toast.error svg {
    background: red;
}
.toast.invalid svg {
    background: orange;
}
.toast::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    background: green;
    animation: anim 5s linear forwards;
}
@keyframes anim {
    100% {
        width: 0;
    }
}
.toast.error::after {
    background: red;
}
.toast.invalid::after {
    background: orange;
}
@media screen and (max-width: 999px) {
    .toast {
        width: 80vw;
        font-size: 14px;
        padding: 5px;
    }
    #wiki-toast-box {
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        gap: 10px;
        padding: 0 5px;
    }
}
/* Loader */
.wiki-loader {
    position: fixed;
    background-image: linear-gradient(to right, #ed00806e, #000000b0);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 120000;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    pointer-events: none;
    opacity: 0;
}
.wiki-loader.show-loader {
    opacity: 1;
    pointer-events: all;
}
.wiki-loader img {
    max-width: 100px !important;
    animation: rotation 0.8s infinite linear;
}
@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}