
    body:has(.loading-message),
    body:has(.login-page)
    {
        background: var(--bg-dark);
    }

    body:has(.devbar:not(.hide)) {
        --devbar-height: 2rem;
    }

    body:has(.navbar.collapsed) {
        --navbar-width: 4rem;
    }

    * {
        box-sizing: border-box;
    }

hr {
    background: var(--card-border);
    border: none;
    min-height: 0.1rem;
    width: calc(100% - 2rem);
    margin: 3.5rem 1rem;
}

h2.title {
    margin-left: 1rem;
    margin-bottom: 0;
    font-size: 1.15rem;
    font-weight: 900;
}

p, b, i, u {
    color: var(--text-dark);
}

.m1 {
    margin: .5rem;
}

.shadow-inset {
    box-shadow: rgb(0 0 0 / 12%) 0px -2px 3px inset, rgb(255 255 255 / 19%) 0px 2px 5px inset;
}

    .card::-webkit-scrollbar-track {
        margin: .5rem;
    }

.content:has(div.container404) {
    display: flex;
}

.display-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 10vmin;
    justify-content: center;
}

.unauthorized-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.unauthorized {
    --c2: var(--bg-darker);
    --c1: var(--bg);
    position: relative;
    background-color: var(--bg);
    opacity: 0.8;
    background: repeating-linear-gradient( 45deg, var(--c1), var(--c1) 20px, var(--c2) 20px, var(--c2) 100px );
    background-size: 100%;
    padding: 1rem 3rem;
    border-radius: 1rem;
}

    .unauthorized svg {
        fill: var(--bg-dark2);
        position: absolute;
        height: 200px;
        width: 200px;
        transform: translate(-50%, -75%) rotate(9deg);
        left: 100%;
        z-index: -1;
    }

.unauthorized-container .unauthorized .hurtig_button {
    position: absolute;
    bottom: calc(100% + 1rem);
    left: 0;
    background: var(--c2);
}

.unauthorized-container h2 {
    font-size: 2rem;
    max-width: 25rem;
    text-align: center;
    font-weight: 900;
    z-index: 15;
}

.container404 {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: auto;
    background: var(--card-bg);
    border-radius: 3rem;
    padding: 2rem 5rem;
}

    .container404 div {
        height: 8rem;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
    }

        .container404 div:last-of-type {
            height: 4rem
        }

    .container404 lottie-player {
        height: 20rem;
        position: absolute;
        bottom: 0;
    }

    .container404 h1 {
        color: var(--primary);
        font-weight: 800;
        font-style: italic;
    }

    .container404 h2 {
        color: var(--text-dark-accent);
        font-weight: 700;
        margin-top: 0;
        margin-bottom: 3rem;
    }

.rotate {
    animation: Rotate forwards infinite 1s;
}
@keyframes Rotate
{
    0%{
        transform: rotate(0)
    }
    50% {
        transform: rotate(180)
    }
    100% {
        transform: rotate(360)
    }                      
}

 
.info-box {
    white-space: unset;
    font-size: 12px;
    background: var(--card-bg50);
    padding: 1rem;
    border-radius: 1rem;
    color: var(--input-text);
    white-space: unset !important;
    line-height: 1.5;
    margin-bottom: .5rem;
}

    .info-box span {
        font-size: 16px;
        margin-right: 4px;
        vertical-align: middle;
        color: inherit;
    }

    .info-box.error {
        background: var(--card-bg-warning);
        color: var(--warning);
    } 
     
/* --- Styling for the initial loading indicator --- */
#app, #app0 {
    /* Center content */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Text styling */
    color: var(--text-dark);
    /* Add a subtle animation (optional, but nice) */
    animation: fadeIn 1.5s ease-in-out 1 alternate;
}

#app, #app0, .page, .main {
    width: 100%;
    min-height: 100vh; /* Full viewport height */
}

.loading-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: auto;
}

.loading-message .message {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-dark-accent);
    font-size: 1rem;
    margin: 0;
}

    .loading-message #version{
        position: absolute;
        bottom: 8px;
        font-size: 12px;
        opacity: .5;
    }

    .loading-message .loading-image {
        position: relative;
        --size: 10rem;
        height: var(--size);
        width: var(--size);
        min-height: var(--size);
        min-width: var(--size);
        max-height: var(--size);
        max-width: var(--size);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 2rem;
        background: var(--card-bg);
    }

    .loading-message img {
        height: 3rem;
    }

@keyframes fadeIn {
    from {
        opacity: 0.6;
    }

    to {
        opacity: 1;
    }
}


/* --- Styling for the Blazor error UI --- */
#blazor-error-ui {
    background: var(--card-bg);
    color: var(--text-dark);
    font-family: var(--font-body);
    position: fixed; /* Stick to the bottom */
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    border-top: 3px solid var(--primary); /* Use primary color for emphasis */
    box-shadow: var(--shadow-medium); /* Add some elevation */
    z-index: 1000; /* Ensure it's on top */
    /* Layout for text and buttons */
    display: flex;
    align-items: center;
    justify-content: space-between; /* Push text and buttons apart */
    gap: 1rem; /* Space between elements if they wrap */
    /* Initially hidden - Blazor shows this */
    display: none;
}

    #blazor-error-ui a { /* Style both links */
        color: var(--primary);
        text-decoration: none;
        font-weight: 500;
        padding: 0.5em 1em;
        border-radius: 4px;
        transition: background-color 0.2s ease-out, color 0.2s ease-out;
        cursor: pointer;
        display: inline-block; /* Allows padding */
        border: 1px solid transparent; /* Placeholder for consistent height */
    }

        #blazor-error-ui a:hover {
            color: var(--primary-accent);
            text-decoration: underline;
        }

    /* Specific styling for the 'Reload' button */
    #blazor-error-ui .reload {
        background-color: var(--primary);
        color: var(--text-light);
        border-color: var(--primary);
    }

        #blazor-error-ui .reload:hover {
            background-color: var(--primary-accent);
            color: var(--text-light);
            border-color: var(--primary-accent);
            text-decoration: none; /* Don't underline button */
        }

    /* Specific styling for the 'Dismiss' button */
    #blazor-error-ui .dismiss {
        color: var(--text-dark-mute);
        padding: 0.5em; /* Make clickable area slightly larger */
        line-height: 1; /* Helps center the icon */
        border: none;
        background: none;
        font-size: 1.3rem; /* Make the cross icon larger */
    }

        #blazor-error-ui .dismiss:hover {
            color: var(--text-dark-accent);
            background-color: var(--bg-darker50); /* Subtle background on hover */
            text-decoration: none; /* Don't underline icon */
        }
