/* _content/BlazorDeskTopRealEstate/Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-pnuok3n7f3] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-pnuok3n7f3] {
    flex: 1;
}
.top-row[b-pnuok3n7f3] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-pnuok3n7f3]  a, .top-row[b-pnuok3n7f3]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-pnuok3n7f3]  a:hover, .top-row[b-pnuok3n7f3]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-pnuok3n7f3]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-pnuok3n7f3] {
        justify-content: space-between;
    }

    .top-row[b-pnuok3n7f3]  a, .top-row[b-pnuok3n7f3]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-pnuok3n7f3] {
        flex-direction: row;
    }

   /* .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }*/

    .top-row[b-pnuok3n7f3] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-pnuok3n7f3]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-pnuok3n7f3], article[b-pnuok3n7f3] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-pnuok3n7f3] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-pnuok3n7f3] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* _content/BlazorDeskTopRealEstate/Components/Layout/NavMenu.razor.rz.scp.css */
/* Existing styles from your request */
.navbar-toggler[b-sqmv0vk15y] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

    .navbar-toggler:checked[b-sqmv0vk15y] {
        background-color: rgba(255, 255, 255, 0.5);
    }

.top-row[b-sqmv0vk15y] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
}

.navbar-brand[b-sqmv0vk15y] {
    font-size: 1.1rem;
    transition: opacity 0.3s ease, width 0.3s ease;
}

.bi[b-sqmv0vk15y] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
    transition: margin 0.3s ease;
}

.nav-item[b-sqmv0vk15y] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-sqmv0vk15y] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-sqmv0vk15y] {
        padding-bottom: 1rem;
    }

    .nav-item[b-sqmv0vk15y]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        width: 100%;
        transition: justify-content 0.3s ease;
        overflow: hidden;
        white-space: nowrap;
    }

    .nav-item[b-sqmv0vk15y]  a.active {
        background-color: rgba(255,255,255,0.37);
        color: white;
    }

    .nav-item[b-sqmv0vk15y]  .nav-link:hover {
        background-color: rgba(255,255,255,0.1);
        color: white;
    }

.nav-scrollable[b-sqmv0vk15y] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-sqmv0vk15y] {
    display: block;
}

/* New styles for the sidebar and toggler */
.sidebar[b-sqmv0vk15y] {
    position: relative;
    transition: width 0.3s ease-in-out;
    background-image: linear-gradient(180deg, rgb(0 0 0) 0%, #014d46 70%);
}

.nav-text[b-sqmv0vk15y] {
    opacity: 1;
    transition: opacity 0.2s ease-in-out, width 0.3s ease-in-out;
}

.sidebar-toggler-desktop[b-sqmv0vk15y] {
    display: none; /* Hide on mobile by default */
    position: absolute;
    bottom: 0.5rem;
    right: 0;
    text-align: center;
    margin-right: 10px;
}

    .sidebar-toggler-desktop .btn[b-sqmv0vk15y] {
        border-radius: 50%;
        width: 38px;
        height: 38px;
    }


@media (min-width: 641px) {
    .navbar-toggler[b-sqmv0vk15y] {
        display: none;
    }

    .nav-scrollable[b-sqmv0vk15y] {
        display: block;
        height: calc(100vh - 3.5rem - 0px); /* Adjust height for toggler */
        overflow-y: auto;
    }

    .sidebar-toggler-desktop[b-sqmv0vk15y] {
        display: block; /* Show on desktop */
    }

    /* --- Collapsed State Styles --- */

    .sidebar.collapsed[b-sqmv0vk15y] {
        width: 50px; /* Width when collapsed */
    }

        .sidebar.collapsed .navbar-brand[b-sqmv0vk15y] {
            opacity: 0;
            width: 0;
            pointer-events: none;
        }

        .sidebar.collapsed .top-row[b-sqmv0vk15y] {
            justify-content: center;
        }

        .sidebar.collapsed .nav-text[b-sqmv0vk15y] {
            opacity: 0;
            pointer-events: none;
            width: 0; /* FIX: Collapse width to remove it from layout */
        }

        /* FIX: Remove padding on nav-item when collapsed to allow true centering */
        .sidebar.collapsed .nav-item[b-sqmv0vk15y] {
            padding-left: 0;
            padding-right: 0;
        }

            .sidebar.collapsed .nav-item[b-sqmv0vk15y]  .nav-link {
                justify-content: center;
            }

        .sidebar.collapsed .bi[b-sqmv0vk15y] {
            margin-right: 0;
        }
}
