@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap');

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: Poppins, sans-serif;
    font-size: 12px;
    background-color: #f4f6f9;
}

header .top-nav {
    display: flex;
    height: 60px !important;
    justify-content: space-between;
    align-items: center;
    padding: 0px 20px;
    background: linear-gradient(to right, #6f4a8e, #4978a5);
    color: #fff;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.company-name {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    /*    background-color: white;*/
    width: 100%;
}

    .company-name .logo {
        width: 40px;
        height: 40px;
        margin-left: 10px;
        margin-right: 5px;
    }

    .company-name .name {
        font-size: 1.6rem; /* Adjusted for better scaling */
        font-weight: 700;
        text-transform: uppercase;
    }

.portal-footer {
    text-align: center;
    padding: 3px;
    background: rgb(255 255 255 / 0%);
    border-radius: 5px;
    color: #000000;
    font-size: 0.9rem;
    font-family: Poppins;
    box-shadow: 0 8px 32px rgb(161 161 161);
    margin-top: 0px;
    height: 1.3rem;
}

.nav-icon {
    color: white;
    font-size: 20px; /* Adjusted for better scaling */
    margin-left: 20px;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
}

    .nav-icon:hover {
        color: #ffc107;
        transform: scale(1.3);
    }

.burger {
    font-size: 24px;
    cursor: pointer;
    color: #fff;
}

    .burger:hover {
        color: #ffc107; /*#2980b9;*/
    }

.nav-icons {
    display: flex;
    gap: 10px;
    margin-right: 10px;
}

    .nav-icons i {
        font-size: 20px;
        cursor: pointer;
        transition: color 0.3s ease;
    }

        .nav-icons i:hover {
            color: #e74c3c;
        }

/* Side Menu */
.side-menu {
    position: fixed;
    left: -380px;
    width: 350px;
    height: 100%;
    background-color: white; /*rgb(108 71 140);*/ /*#0f054f;*/
    transition: left 0.3s ease;
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.2);
    overflow: auto;
}

    .side-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
        width: 350px;
        max-width: 500px;
    }

        .side-menu ul li {
            padding: 15px 20px;
            color: #630094;
            cursor: pointer;
            /*display: flex;
            align-items: center;*/
            text-align: left;
            transition: background-color 0.3s ease;
        }

            .side-menu ul li:hover {
                /*background-color: #458ef069;*/
                border-radius: 4px;
                width: 350px;
                max-width: 500px;
            }

            .side-menu ul li i {
                margin-right: 10px; /* Adjust the spacing here */
                font-size: 16px; /* Ensure icon size is appropriate */
            }

            .side-menu ul li a {
                color: #003d50;
                text-decoration: none;
                width: 100%;
            }

                .side-menu ul li a:hover {
                    width: auto;
                    font-weight: 700;
                    background-color: #ffd600;
                    color: dodgerblue;
                    padding: 5px;
                    border-radius: 10px;
                    margin-left: 0.7rem;
                    transition: .3s ease;
                }

            .side-menu ul li .dropdown-icon {
                margin-left: auto; /* Pushes the dropdown icon to the far right */
                font-size: 16px;
                color: #003d50;
            }

            .side-menu ul li.active .nestsubmenu {
                display: block;
            }

    .side-menu.open {
        left: 0;
    }


.nestsubmenu {
    display: none;
    padding-left: 15px;
}

    .nestsubmenu li {
        padding: 10px 0;
    }

.submenu {
    color: #630094;
}

.lbluserinfo {
    margin-left: 10px;
    font-size: 1rem;
    font-weight: 700;
}

.txtuserinfo {
    font-size: 1rem;
    width: 95%;
    height: 70%;
    text-align: left;
    border-radius: 10px;
    padding-left: 15px;
}

#lbluihead {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}


.tduserinfo {
    width: 20%;
    height: 30px;
}

.panelheader {
    height: 25px;
}


@media screen and (min-width: 426px) and (max-width: 1098px) {

    /*header .top-nav {
        flex-direction: column;
        align-items: center;
        max-height: 40px;
    }*/

    .company-name {
        width: 100%;
        justify-content: center;
    }

        .company-name .logo {
            width: 20px;
            height: 20px;
            margin-right: 5px;
            margin-left: 5px;
        }

        .company-name .name {
            font-size: 1.5rem;
        }

    .sa {
        font-size: 20px;
    }

    #lbluihead {
        font-size: 1rem;
    }

    .tduserinfo {
        width: 20%;
        height: 30px;
    }

    .lbluserinfo {
        margin-left: 2px;
        font-size: 0.5rem;
        font-weight: 700;
    }

    .txtuserinfo {
        width: 99%;
        padding-left: 10px;
        font-size: 0.5rem;
        height: 28px;
        text-align: left;
        border-radius: 2px;
        padding-left: 5px;
    }

    .nav-icons {
        gap: 5px;
        margin-right: 0px;
    }

    .nav-icon {
        font-size: 14px;
        margin-left: 8px;
    }

    .burger {
        font-size: 20px;
    }

    /* Side Menu */
    .side-menu {
        position: fixed;
        left: -280px;
        width: 250px;
        height: 100%;
        background-color: white; /*rgb(108 71 140);*/ /*#0f054f;*/
        transition: left 0.3s ease;
        box-shadow: 3px 0 10px rgba(0, 0, 0, 0.2);
        overflow: auto;
    }

        .side-menu ul li {
            padding: 10px; /* Reduce padding for mobile */
        }

            .side-menu ul li:hover {
                width: auto; /* Match width of menu for hover */
            }

            .side-menu ul li i {
                font-size: 12px; /* Further reduce icon size */
            }

            .side-menu ul li a:hover {
                margin-left: 0.3rem; /* Adjust margin for mobile */
            }

    /* Hide elements if necessary for mobile */
    .nav-icons i {
        display: none; /* Hide icons on mobile if screen space is limited */
    }

    .submenu {
        padding: 15px 25px;
    }

    .nestsubmenu {
        padding: 0px 28px;
    }

    .popupheader {
        height: 15px;
        font-size: 6pt;
    }
}


@media screen and (min-width: 320px) and (max-width: 425px) {

    /*header .top-nav {
        flex-direction: column; 
        align-items: center;
        max-height: 40px;
    }*/

    .company-name .logo {
        width: 15px;
        height: 15px;
        margin-right: 5px;
        margin-left: 5px;
    }

    .company-name .name {
        font-size: 2rem; /* Adjusted for better scaling */
    }

    #lbluihead {
        font-size: 0.9rem;
    }

    .tduserinfo {
        width: 22%;
        height: 15px;
    }

    .lbluserinfo {
        margin-left: 2px;
        font-size: 0.4rem;
    }

    .txtuserinfo {
        font-size: 0.4rem;
        width: 99%;
        padding-left: 10px;
        height: 28px;
        text-align: left;
        border-radius: 2px;
        padding-left: 5px;
    }

    .nav-icons {
        gap: 5px;
        margin-right: 0px;
    }

    .nav-icon {
        font-size: 10px;
        margin-left: 2px;
    }

    .burger {
        font-size: 14px;
    }

    /* Side Menu */
    .side-menu {
        position: fixed;
        left: -400px;
        width: auto;
        height: 100%;
        background-color: white; /*rgb(108 71 140);*/ /*#0f054f;*/
        transition: left 0.3s ease;
        box-shadow: 3px 0 10px rgba(0, 0, 0, 0.2);
        overflow: auto;
    }

        .side-menu ul li {
            padding: 10px; /* Reduce padding for mobile */
        }

            .side-menu ul li:hover {
                width: auto; /* Match width of menu for hover */
            }

            .side-menu ul li i {
                font-size: 12px; /* Further reduce icon size */
            }

            .side-menu ul li a:hover {
                margin-left: 0.3rem; /* Adjust margin for mobile */
            }

    /* Hide elements if necessary for mobile */
    .nav-icons i {
        display: none; /* Hide icons on mobile if screen space is limited */
    }

    .submenu {
        padding: 15px 25px;
    }

    .nestsubmenu {
        padding: 0px 28px;
    }

    .popupheader {
        height: 10px;
        font-size: 5pt;
    }
}
