/* Page layout */
.page {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sidebar {
    background-color: #B71C1C;
}

.content {
    flex: 1;
    padding: 0;
    background: #f7f7f8;
}

@media (min-width: 641px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        width: 70px;
        min-width: 70px;
        height: 100vh;
        position: sticky;
        top: 0;
        flex-shrink: 0;
        overflow: hidden;
        transition: width 0.25s ease-out, min-width 0.25s ease-out;
    }

    .sidebar:has(.navbar-toggler:checked) {
        width: 250px;
        min-width: 250px;
        overflow-y: auto;
    }
}

/* Login layout */
.login-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.login-layout-content {
    flex: 1;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 0.75rem 1rem;
    color: #999;
    font-size: 0.85rem;
}

.site-footer p {
    margin: 0;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
