/* /Shared/MainLayout.razor.rz.scp.css */
.page[b-thm1vskna1] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-thm1vskna1] {
    flex: 1;
}

.sidebar[b-thm1vskna1] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-thm1vskna1] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-thm1vskna1]  a, .top-row .btn-link[b-thm1vskna1] {
        white-space: nowrap;
        margin-left: 1.5rem;
    }

    .top-row a:first-child[b-thm1vskna1] {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row:not(.auth)[b-thm1vskna1] {
        display: none;
    }

    .top-row.auth[b-thm1vskna1] {
        justify-content: space-between;
    }

    .top-row a[b-thm1vskna1], .top-row .btn-link[b-thm1vskna1] {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-thm1vskna1] {
        flex-direction: row;
    }

    .sidebar[b-thm1vskna1] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-thm1vskna1] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row[b-thm1vskna1], article[b-thm1vskna1] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }


    /* Base header styles */
    .sticky-header[b-thm1vskna1] {
        background-color: #0A1C3C;
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    .top-row[b-thm1vskna1] {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.5rem 1rem;
        width: 100%;
    }

    .company-icon[b-thm1vskna1] {
        height: 70px; /* Adjust the height to your preference */
        width: auto;
        padding-top: 10px;
       
    }

    .navbar-brand[b-thm1vskna1] {
        color: #1e3852; /* Or any other color code */
        font-weight: bold;
    }

    /* Desktop view (>=992px) */
    @media (min-width: 992px) {
        .menu-toggle[b-thm1vskna1] {
            display: none; /* hide hamburger on desktop */
        }


        .main-menu[b-thm1vskna1] {
            display: flex;
            list-style: none;
            margin: 0;
            padding: 0;
            gap: 1.5rem;
        }

            .main-menu li a[b-thm1vskna1] {
                color: #1e3852;
                text-decoration: none;
                font-weight: 600;
                transition: color 0.3s ease;
            }

                .main-menu li a:hover[b-thm1vskna1] {
                    color: #4A90E2; /* Light blue on hover */
                }
    }

    /* Mobile view (<992px) */
    @media (max-width: 991px) {
        .menu-toggle[b-thm1vskna1] {
            display: block; /* show hamburger */
            background: none;
            border: none;
            color: #0A1C3C;
            font-size: 2rem;
            cursor: pointer;
        }


        .main-menu[b-thm1vskna1] {
            display: none;
            flex-direction: column;
            width: 100%;
            background-color: #0A1C3C;
            padding: 1rem 0;
            text-align: center;
            height: auto;
            /* CRITICAL: Ensure the menu overlays content below it */
            z-index: 999;
        }

            .main-menu.show[b-thm1vskna1] {
                display: flex;
                /* CRITICAL FIX: Use 'fixed' to anchor to the viewport (the phone screen) */
                position: fixed;
                /* Ensure full width coverage on all mobile devices */
                width: 100vw;
                /* Start from the top edge of the screen */
                left: 0;
                /* Push the menu down just below the main navigation bar. 
           (Adjust '80px' if your nav bar is a different height) */
                top: 80px;
                /* Fills the rest of the vertical screen space */
                min-height: calc(100vh - 80px);
            }

       /* .main-menu {
            display: none;
            flex-direction: column;
            width: 100%;
            
            background-color: #0A1C3C;
            padding: 1rem 0;
            text-align: center;
            height : auto;
        }*/

            /*.main-menu.show {
                display: flex;*/ /* visible when toggled */
            /*}*/

           .main-menu li a[b-thm1vskna1] {
        color: #fff !important;
        text-decoration: none;
        padding: 0.5rem 0;
        display: block;
        font-size: 1.2rem;
    }

        .company-icon[b-thm1vskna1] {
            height: 50px;
        }

        body[b-thm1vskna1]::before {
            content: "MOBILE MODE ACTIVE";
            position: fixed;
            top: 5px;
            left: 5px;
            background: red;
            color: white;
            padding: 3px 6px;
            font-size: 12px;
            z-index: 9999;
        }

    }

}
