/* _content/AppsoluteIT_CodingToDoList/Shared/MainLayout.razor.rz.scp.css */
.page[b-qfi60dhwkd] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-qfi60dhwkd] {
    flex: 1;
}

.topnav[b-qfi60dhwkd] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: ghostwhite;
    height: 3.5rem;
    padding-left: 2rem;
    padding-right: 1.5rem;
}

    .topnav .menu[b-qfi60dhwkd] {
        display: flex;
        align-items: center;
    }

        .topnav .menu a[b-qfi60dhwkd], .topnav .menu .btn-link[b-qfi60dhwkd] {
            color: black; /* Changed to black for better visibility */
            white-space: nowrap;
            margin-left: 1.5rem;
            text-decoration: none;
        }

            .topnav .menu a:first-child[b-qfi60dhwkd] {
                margin-left: 0;
                overflow: hidden;
                text-overflow: ellipsis;
            }

@media (max-width: 640.98px) {
    .topnav[b-qfi60dhwkd] {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 1rem;
        padding-right: 1rem;
        height: auto;
    }

        .topnav .menu[b-qfi60dhwkd] {
            flex-direction: column;
            align-items: flex-start;
            width: 100%;
            padding-top: 0.5rem;
            padding-bottom: 0.5rem;
        }

            .topnav .menu a[b-qfi60dhwkd], .topnav .menu .btn-link[b-qfi60dhwkd] {
                margin-left: 0;
                margin-top: 0.5rem;
                width: 100%;
                text-align: left;
            }

                .topnav .menu a:first-child[b-qfi60dhwkd] {
                    margin-top: 0;
                }
}

@media (min-width: 641px) {
    .page[b-qfi60dhwkd] {
        padding-top: 3.5rem; /* Reserve space for the fixed topnav */
    }

    .topnav[b-qfi60dhwkd] {
        position: sticky;
        top: 0;
        z-index: 1;
    }
}

/* Ensure article padding to align with the navigation */
article[b-qfi60dhwkd] {
    padding-left: 2rem !important;
    padding-right: 1.5rem !important;
}
/* _content/AppsoluteIT_CodingToDoList/Shared/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-ikl3gnbggt] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-ikl3gnbggt] {
    height: 4.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand[b-ikl3gnbggt] {
    font-size: 1.1rem;
    color: white;
    background-color: #90e0a5;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 10px;
}

.nav-link[b-ikl3gnbggt] {
    display: flex;
    align-items: center;
}

    .nav-link svg[b-ikl3gnbggt] {
        margin-right: 0.5rem;
    }

.navbar-nav[b-ikl3gnbggt] {
    text-align: center;
    display: flex;
    flex-direction: row;
}

.nav-item[b-ikl3gnbggt] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-ikl3gnbggt] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-ikl3gnbggt] {
        padding-bottom: 1rem;
    }

    .nav-item a[b-ikl3gnbggt] {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

        .nav-item a.active[b-ikl3gnbggt] {
            background-color: rgba(255, 255, 255, 0.25);
            color: white;
        }

        .nav-item a:hover[b-ikl3gnbggt] {
            background-color: rgba(255, 255, 255, 0.1);
            color: white;
        }

@media (max-width: 640.98px) {
    .top-row[b-ikl3gnbggt] {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding: 1rem;
    }

    .navbar-nav[b-ikl3gnbggt] {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .nav-item[b-ikl3gnbggt] {
        padding-bottom: 0.5rem;
        padding-top: 0.5rem;
        color: white;
    }

        .nav-item:first-of-type[b-ikl3gnbggt] {
            padding-top: 0.5rem;
        }

        .nav-item:last-of-type[b-ikl3gnbggt] {
            padding-bottom: 0.5rem;
        }

        .nav-item a[b-ikl3gnbggt] {
            width: 100%;
            justify-content: flex-start;
            padding-left: 1rem;
        }

    .navbar-collapse[b-ikl3gnbggt] {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
}

@media (min-width: 641px) {
    .navbar-toggler[b-ikl3gnbggt] {
        display: none;
    }

    .collapse[b-ikl3gnbggt] {
        display: block; /* Never collapse the sidebar for wide screens */
    }

    .nav-scrollable[b-ikl3gnbggt] {
        height: calc(100vh - 3.5rem); /* Allow sidebar to scroll for tall menus */
        overflow-y: auto;
    }
}
