/* Welcome screen on the first admin page after login */

body.admin-new-theme .adm-welcome
{
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(640px 420px at 50% 50%, rgba(124, 58, 237, .32), transparent 70%), var(--adm-menu);
    cursor: pointer;
    animation: none;
}

body.admin-new-theme .adm-welcome[hidden]
{
    display: none;
}

html.adm-welcome-pending body::before
{
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #1f2329;
    background: var(--adm-menu, #1f2329);
}

html.adm-welcome-pending body.admin-new-theme .adm-welcome[hidden]
{
    display: flex;
}

body.admin-new-theme .adm-welcome.is-leaving
{
    animation: adm-welcome-out .55s cubic-bezier(.6, 0, .3, 1) both;
}

body.admin-new-theme .adm-welcome-inner
{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

body.admin-new-theme .adm-welcome-logo
{
    width: auto;
    height: 56px;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35));
    animation: adm-welcome-pop .6s cubic-bezier(.3, 1.5, .5, 1) .05s both;
}

body.admin-new-theme .adm-welcome-title
{
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.01em;
    animation: adm-welcome-rise .6s ease-out .25s both;
}

body.admin-new-theme .adm-welcome-title strong
{
    color: #ffffff;
    font-weight: 700;
}

body.admin-new-theme .adm-welcome-bar
{
    position: relative;
    width: 180px;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    animation: adm-welcome-rise .4s ease-out .35s both;
}

body.admin-new-theme .adm-welcome-bar::after
{
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #7c3aed, #b79cff);
    transform-origin: left center;
    animation: adm-welcome-fill 1.7s cubic-bezier(.4, 0, .2, 1) .45s both;
}

/* The admin comes in behind it: the menu items one after another, the page rising */

body.admin-new-theme.adm-entering #main-nav .navigation > .nav > li
{
    animation: adm-welcome-slide .45s cubic-bezier(.2, .8, .2, 1) both;
}

body.admin-new-theme.adm-entering #main-nav .navigation > .nav > li:nth-child(1)
{
    animation-delay: .00s;
}

body.admin-new-theme.adm-entering #main-nav .navigation > .nav > li:nth-child(2)
{
    animation-delay: .03s;
}

body.admin-new-theme.adm-entering #main-nav .navigation > .nav > li:nth-child(3)
{
    animation-delay: .06s;
}

body.admin-new-theme.adm-entering #main-nav .navigation > .nav > li:nth-child(4)
{
    animation-delay: .09s;
}

body.admin-new-theme.adm-entering #main-nav .navigation > .nav > li:nth-child(5)
{
    animation-delay: .12s;
}

body.admin-new-theme.adm-entering #main-nav .navigation > .nav > li:nth-child(6)
{
    animation-delay: .15s;
}

body.admin-new-theme.adm-entering #main-nav .navigation > .nav > li:nth-child(7)
{
    animation-delay: .18s;
}

body.admin-new-theme.adm-entering #main-nav .navigation > .nav > li:nth-child(8)
{
    animation-delay: .21s;
}

body.admin-new-theme.adm-entering #main-nav .navigation > .nav > li:nth-child(n+9)
{
    animation-delay: .24s;
}


body.admin-new-theme.adm-entering #content
{
    animation: adm-welcome-rise .6s cubic-bezier(.2, .8, .2, 1) .1s both;
}

@keyframes adm-welcome-in
{
    from
    {
        opacity: 0;
    }

    to
    {
        opacity: 1;
    }
}

@keyframes adm-welcome-out
{
    from
    {
        opacity: 1;
        transform: none;
    }

    to
    {
        opacity: 0;
        transform: translateY(-3%) scale(1.02);
    }
}

@keyframes adm-welcome-pop
{
    from
    {
        opacity: 0;
        transform: scale(.7);
    }

    to
    {
        opacity: 1;
        transform: none;
    }
}

@keyframes adm-welcome-rise
{
    from
    {
        opacity: 0;
        transform: translateY(10px);
    }

    to
    {
        opacity: 1;
        transform: none;
    }
}

@keyframes adm-welcome-fill
{
    from
    {
        transform: scaleX(0);
    }

    to
    {
        transform: scaleX(1);
    }
}

@keyframes adm-welcome-slide
{
    from
    {
        opacity: 0;
        transform: translateX(-10px);
    }

    to
    {
        opacity: 1;
        transform: none;
    }
}
