 body, html {
    margin: 0;
    padding: 0;
    background-color: #f8fcff;
    font-weight: 200;
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.submenu {
    overflow: hidden;
    height: 0px;
    transition: all 0.2s ease;
    display:none
}

    .submenu.expanded {
        height: auto;
        display:block
    }
        .submenu.expanded li a:hover {
            background-color: #edf5ffbd;
        }

.app {
    display: flex;
    height: 100vh;

}
.overlay{
    height:100vh;
    width:100vw;
    background-color:black;
    opacity:0.5;
    z-index:400;
   position:absolute;
}
.app-bar {
    background-color: #72ccd2;
    color: #585050;
    padding: 20px 20px;
    display: flex;
    align-items: center;
    width: 100%;
    height: 55px;
    position: fixed;
    top: 6px; /* Shift down below the color line */
    z-index: 501;
    border-bottom: 1px solid transparent;
    border-color: #ffffff82;
}

.menu-icon {
    background: none;
    border: none;
    font-size: 24px;
    margin-right: 10px;
    width: 30px;
    border-radius: 5px;
    color:white
}
    .menu-icon:hover {
        border: 1px solid lightgrey;
        background-color: #00f8ff47
    }
.app-title {
    font-size: 20px;
    font-weight: bold;
}
.icon {
    font-size: 18px;
    color: #72ccd2
}
.text {
    margin-left: 10px;
    width: 165px;
    text-transform:capitalize;
    font-size:13px;
}
.client-logo {
    width: 80px;
    padding-block: 20px;
}
.client-name {
    display: flex;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
    background-color: #72ccd2;
    color: white
}
.welcome {
    font-size:medium;
    display: flex;
    justify-content: center;
    background-color: #72ccd2;
    padding-top: 18px;
    color: white
}



.drawer {
    background-color: white;
    height: 100%;
    transition: transform 0.3s ease, width 0.3s ease;
    transform: translateX(-100%); /* Start offscreen */
    position: fixed; /* Make it overlay content */
    z-index: 500;
    padding-top: 48px; /* Below the app bar */
    bottom: 0;
    border-color: grey;
    border: 1px;
    color: #6a6c6f;
    border: solid 1px lightgrey;
}

    .drawer.open {
        transform: translateX(0); /* Slide in */
      
    }

    .drawer.closed {
        transform: translateX(-109%); /* Slide out */
    }

.main-content {
    flex-grow: 1;
    margin-top: 60px; /* Adjusted to account for the app bar and color line */
    overflow-y: auto;
    transition: margin-left 0.3s ease;
    margin-left: 0; /* No margin when drawer is closed */
}

    .main-content.full-width {
        width: 100%; /* Always full width, drawer is overlay */
    }

.form-select {
    background-color: #fafafa;
    font-size: 13px;
}
.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-top: 10px;
    background-color: white;
    /*   width: 250px;*/
}

    .nav-menu li a {
        display: flex;
        padding: 10px 20px;
        list-style-type: none;
        text-decoration: none;
        align-items: center;
        color: #536580;
        font-size: 12px;
        font-weight: 600;
        text-wrap: nowrap;
        text-transform:capitalize!important;
        
    }
    .nav-menu li :hover {
        background-color: #edf5ffbd;
    }
.main-content {
    flex-grow: 1;
    margin-top: 16px;
    overflow-y: auto;
    padding-top: 51px;
    padding-bottom: 50px;
}
.desktop-icons {
    display: none;
}
.mobile-menu{
    display:flex
}
.logo-image{
    display:none;
}
.logo.open .logo-open-image{
    display:none;
}
/* Media Queries */
@media (min-width: 641px) {
    .drawer {
        position: relative; /* No longer fixed position */
        transform: none;
        
    }


        .drawer.open
         {
           /* transform: none;*/
            width: 240px; /* Always visible */
        }
        .drawer.closed {
            width: 50px;
            transform: none;
            text-align: center;
            color: #50acd1;
            font-size: 13px
        }


    .drawer.closed .client-name {
                display:none
            }
        .drawer.closed .welcome {
                display:none;

            }

            .drawer.closed .client-logo {
                display: none;
            }

            .drawer.closed .text {
                display: none;
            }
            .drawer.closed:hover .text {
                display: block;
                text-align: left;
                color: #536580;
                font-weight: 600;
                text-transform: uppercase
                /* or "inline", "inline-block", depending on your layout needs */
            }

            .drawer.closed:hover .client-logo {
                display: flex;
                justify-content: center;
                padding-block: 20px;
            }
            .drawer.closed:hover .client-name {
                display: flex;
                justify-content: center
            }
            .drawer.closed:hover .welcome {
                display: flex;
                justify-content: center
            }

            .drawer.closed .nav-menu li a {
                display: flex;
                padding: 10px;
                color: #536580;
                text-decoration: none;
                
            }

            .drawer.closed:hover {
                transform: none;
                width: 220px;
            }
     
        /* Show text in the open state */
        .drawer.open .text {
            display: inline-block;
            margin-left: 10px;
            color: #536580;
            font-weight: 600;
            text-transform: capitalize;
        }

        /*.main-content {
        margin-left: 250px;*/ /* Make space for the drawer */
        /*}*/
        .main-content.full-width {
            margin-left: 0;
        }
    .desktop-icons {
        display: flex;
    }
    .mobile-menu{
        display:none;
    }

    .logo-image {
        width: 190px; /* Default width for open logo */
        height: auto; /* Maintain aspect ratio */
        transition: all 0.2s ease;
        display: none; /* Initially hide images */
    }

    .logo.open .logo-open-image {
        display: block; /* Only show this image when logo is open */
    }

    .logo.closed .logo-closed-image {
        display: block; /* Only show this image when logo is closed */
        width: 45px; /* Override width for closed logo */
        height: 45px; /* Set height for closed logo */
        margin-left: 30px;
    }

    .logo {
        float: left;
        position: relative;
        text-align: center;
        z-index: 1;
    }
    .Mobile-Logo{
        display:none
    }
    .logo.open {
        transform: translateX(0); /* Slide in */
        width: 210px;
    }

        .logo.closed {
            transform: translateX(-109%);
            width: 40px;
            /* Slide out */
        }

    .menu-icon {
        background: none;
        border: none;
        font-size: 24px;
        margin-right: 10px;
        width: 60px;
        border-radius: 5px;
    }


}

.color-line {
    background: linear-gradient(to right, #34495e, #34495e 25%, #9b59b6 25%, #9b59b6 35%, #3498db 35%, #3498db 45%, #62cb31 45%, #62cb31 55%, #ffb606 55%, #ffb606 65%, #e67e22 65%, #e67e22 75%, #e74c3c 85%, #e74c3c 85%, #c0392b 85%, #c0392b 100%);
    height: 6px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 502; /* Below app-bar */
}
.profile-img{
    height:40px;
    width:40px;
    border-radius:100%
}
.top-arrow {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 8px;
    background: #f7f9fa;
    padding: 4px 5px;
    border-left: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    cursor: pointer;
}

.btn:focus {
    outline: 0;
    box-shadow: none
}
.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath  stroke='%23777' stroke-width='2' fill='none' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-size: 12px 12px; /* Adjust the size here */
    transform: rotate(-180deg);
    background-position: center;
}
.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath  stroke='%23777' stroke-width='2' fill='none' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-size: 12px 12px; /* Adjust the size here */
    background-position: center;
}
.close{
    color:grey;
    font-weight:900 !important
}
