﻿.menu-button {
    position: relative;
    z-index: 1; /* The button can have a lower z-index */
    margin: 0; /* Optional: just to give it space */
}

    .menu-button:hover {
        background-color: #e9e9e9;
        cursor: pointer;
    }


.menu-popup {
    position: fixed;
    left: 55px; /* Position to the left of the button */
    top: 10px;
    background-color: white;
    border: 1px solid #e9e9e9;
    z-index: 1000;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
}

    .menu-popup ul {
        background-color: white;
        margin: 0;
        list-style: none;
        padding: 0;
    }

    .menu-popup li {
        padding: 0.5rem 0.85rem;
    }


        .menu-popup li:hover {
            background-color: #e9e9e9;
            cursor: pointer;
        }

.menu-container {
    position: relative; /* anchor for absolute menu */
    display: inline-block;
}

.menu-apps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 1rem;
    padding: 1rem;
    justify-items: center; /* center items horizontally */
}

.menu-apps-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100px;
    height: 100px;
    border-radius: 0.25rem;
    padding: 1rem 0.5rem 0.5rem 0.5rem;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
    gap: 1rem;
}

    .menu-apps-item:hover {
        cursor: pointer;
        background-color: #f1f1f1;
    }

    .menu-apps-item > i {
        font-family: 'DM Sans', sans-serif;
        font-size: 1.875rem;
        letter-spacing: -0.01rem;
        margin: 0 !important;
    }

    .menu-apps-item > p {
        font-size: 0.7rem;
        line-height: 1rem; /* Important to prevent overlap */
        margin: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        text-align: center;
        max-width: 100%; /* ensures wrapping within box */
    }

.nav-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 30px;
    height: 30px;
}

.menu-item-active {
    background-color: #242E5D !important;
    cursor:pointer;
}

    .menu-item-active i {
        color: white;
    }

.nav-link-item i {
    display: flex !important;
    width: min-content !important;
    height: 30px !important;
    font-size: 1rem;
    letter-spacing: -0.01rem;
    margin: 0 !important;
}

.nav-link-item p {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.475rem;
    letter-spacing: -0.01rem;
    padding: 0rem 0.25rem;
    line-height: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    text-align: center;
}

.nav-link-item-selected {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 30px;
    height: 30px;
    border-radius: 0.25rem;
}

    .nav-link-item-selected i {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        width: 60px;
        height: 60px;
    }

.custom-nav-scrollable {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: calc(100vh - 3.5rem);
    overflow-y: auto;
    overflow-x: hidden !important;
    width: 100%;
}

.custom-sidebar {
    width: 45px !important;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: hidden;
    background-color: white !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: none !important;
    overflow-x: hidden;
    z-index: 1000;
    flex-shrink: 0; 
}

.custom-nav-link {
    color: #000000 !important;
    padding: 0rem;
    display: flex !important;
    flex-direction: column;
    align-items: center !important;
    justify-content: center;
    height: 100% !important;
    width: 100% !important;
    line-height: 0rem;
}

/*    .custom-nav-link:hover {
        background-color: #f3f3f3 !important;
        padding: 0rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }*/

.custom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 45px;
    padding: 0rem !important;
    width: 100%;
}

    .custom-nav-item a.active {
        background-color: #f3f3f3;
        border-radius: 0rem;
    }

.custom-navbar-top {
    background-color: white !important;
    padding: 0;
    width:100%;
}

    .custom-navbar-top button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border: none;
        background-color: transparent;
        width: 100%;
        height: 45px;
        line-height: 0;
        padding: 0;
    }

    .custom-navbar-top i {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border: none;
        background-color: transparent;
        font-size: 1.575rem;
        letter-spacing: -0.01rem;
        margin: 0 !important;
        width: 100% !important;
    }

@media (max-width:490px) {

    .custom-sidebar {
        display: none;
    }    
}
