


:root{
            --nav_width: 250px;
            --new-nav_width:var(--nav_width);
            --menu-width:40px;
            --bar-height:100px;

            --primary:#4c6cb1;
            --primary-hover:#2563EB;
            --bar-color:#FFFFFF;
            --sidebar-color: #F3F4F6;
            --bar-text-color:#1F2937;

            --content-color:#FFFFFF;

         @media (max-width:768px) {
            --nav_width: 0px;
            
         }

        }

        .font-1{
            font-family: Arial, Helvetica, sans-serif;;
        }

        *{
            padding: 0;
            margin: 0;
            box-sizing: border-box;
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        }

        /* nav bar */

        .parent{
            min-height: 100svh;
            position: relative;
        }
        .ml-slide{
            transition: margin-left 0.3s ease-in-out;
        }
        .slide{
            transition: all .5s ;
            transition-timing-function: cubic-bezier(0.78, 0, 0.22, 1);
        }
        .top-bar{
            position: fixed;
            width: calc(100% - var(--nav_width));
            height: var(--bar-height);
            right: 0;
            z-index: 10;
            background-color: var(--bar-color);
            color: var(--bar-text-color);
            border-bottom: 1px solid rgba(128, 128, 128, 0.134);
            .logo{
                padding-left:calc(var(--menu-width) + 5px)
            }
        }
        .content{
            margin-left: var(--nav_width);
            padding-top: var(--bar-height);
            position:absolute;
            width: calc(100% - var(--nav_width));
            background-color: var(--content-color);
            min-height: 100svh;
        }

        .side-bar{
            width:var(--nav_width);
            /* padding:20px; */
            position:fixed;
            left: 0;
            top:0;
            height:100svh;
            z-index: 100;
            background-color: var(--sidebar-color);
            color: var(--bar-text-color);

            .menu-icon{
                width:var(--menu-width);
                aspect-ratio: 1/1;
                position:absolute;
                right: -50px;
                top:10px;
                border-radius: 15px;
                z-index: 1000;
                cursor: pointer;
                i{
                    font-size: x-large;
                }
            
            } 
            

            nav{
                width: 100%;
                overflow: hidden;
                
                .logo-section{
                    height: var(--bar-height);
                    display: flex;
                    justify-content: center;
                    align-content: center;
                    border-bottom: 1px solid white;
                    & > div{
                        align-items: center;
                        gap: 10px;
                        i{
                            color: #01528E;
                        }
                    }
                }
            }
        }

        .menu{
            a{
                text-decoration: none;
                color:var(--bar-text-color);
                display: block;
                width: 100%;
                padding: 10px;
                border-bottom: 1px solid white !important;

                &:hover{
                    background-color: rgba(0, 255, 255, 0.318) !important;
                }

            
            }
            .sub-menu{
                display: block;
                max-height: 0;
                overflow: hidden;
                opacity: 0;
                transform: translateY(-4px);
                pointer-events: none;
                transition: max-height 0.3s ease, opacity 0.2s ease, transform 0.2s ease;
                a{
                    background-color: rgba(50, 156, 222, 0.358);
                    padding: 10px 25px;
                    border-bottom: 1px solid white !important;

                   
                }
            }

            &.open{
                
                .sub-menu{
                    max-height: 60px;
                    opacity: 1;
                    transform: translateY(0);
                    pointer-events: auto;
                        
                }
            }
            &.open >a{
                background-color: #6baed7;
            }

            &:hover{
                .sub-menu{
                    display: block;
                   
                }
            }
        }

        .side-bar .menu .sub-menu{
            display: block;
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            transform: translateY(-4px);
            pointer-events: none;
            transition: max-height 0.3s ease, opacity 0.2s ease, transform 0.2s ease;
        }

        .side-bar .menu .sub-menu a{
            padding: 10px 25px;
            border-bottom: 1px solid white !important;
        }

        .side-bar .menu.open .sub-menu{
            max-height: 60px;
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }

        h1{
            color: var(--primary);
        }


    .logo-wrap{
        display: flex;
        align-items: center;

        .logo{
        width: 70px;
        aspect-ratio: 1;
        border-radius: 5px;
        background-color: rgba(38, 116, 185, 0.225);
        border-radius: 30%;
        padding: 0px;
        img{
            width: 100% !important;
            height: 100%;
            object-fit: cover;
            object-position: top;
        }
    }
    }


        /* profile */

        .user-info{
            background-color: rgba(62, 28, 28, 0);
            padding: 1rem 1.5rem 1rem 1rem;
            border-radius: 5px;
            cursor: pointer;
            position: relative;
            border: 1px solid rgba(72, 72, 72, 0.353);

            anchor-name: --profile;

        &::after{
            content: '';
            width: 10px;
            aspect-ratio: 2/1;
            background-color: rgba(41, 39, 39, 0.689);
            position: absolute;
            top:50%;
            right: 6%;
            transform: translateY(-50%) ;
            clip-path: polygon(100% 0, 0 0, 50% 100%);
            box-shadow: 50px 50px 50px rgb(0, 140, 255) !important;
            z-index: 10;
            
        }

    }

    .profile-wrap{
        position: relative;
        display: flex;
        align-items: center;
        margin-left: auto;
        overflow: visible;
        /* background-color: blue; */
    }

    .profile-menu{
        position: absolute;
        top: calc(100% + .5rem);
        right: 0;
        left: auto;
        transform: none;
        width: max-content;
        min-width: 160px;
        z-index: 1000;
        box-sizing: border-box;
        display: none;
    }

   

    .profile-menu.show{
        display: block;
        padding: .5rem;
        border-radius: 5px;
        background-color: rgba(233, 233, 236, 0.471) !important;
        width: 100% !important;
    }
        





        /********************* form entry and exel entry  */

    .e_entry,.f_entry{
        cursor: pointer;
        padding:15px 20px;
        border-radius: 20px;
    
    }

    .exel-entry{
        display: none;
    }


    .f_entry{
        background-color: rgba(64, 146, 246, 0.671);
        color: rgba(41, 73, 112, 0.847);
        &:hover{
            background-color: rgba(64, 146, 246, 0.882);
            color: aliceblue;
        }
    }
    .e_entry{
        background-color: rgba(29, 193, 29, 0.573);
        color: rgba(46, 96, 46, 0.799);
        &:hover{
            background-color: rgba(19, 185, 19, 0.659);
            color: aliceblue;
        }
    }
    .form-h{
        color: rgb(64, 146, 246);

    }
    .exel-h{
        color: rgba(29, 193, 29, 0.807);
    }
       
    .nowrap{
        text-wrap: nowrap;
    }


/* just a container */

.content-wrapper{
        padding:10px;
        margin:1rem 2rem;
        border-radius:  20px;
        background-color: rgb(252, 252, 252);
        

        h2{
            text-align: center;
            margin-block: 1.5rem;
        
        }
    }

    .shadow{
        box-shadow: 0px 0px 3px 3px rgba(105, 104, 104, 0.486);
    }

    /* table head background color */
    .thead,th{
        background-color: var(--primary) !important;
        color: azure !important;
    }

    .half-grid{
        display: grid;
        grid-template-columns: 1fr 1fr;
        height: 100%;
        width: 100%;
    }

    .btn-outline-success{
        color: #2b6a2b !important;
    }
    .btn-outline-success:hover{
        background-color: #7DDB7D !important;
        background: #49c749 !important;
        color: white !important;
    }
 
    /* error messages */
    .error{
        position: fixed;
        top: 10%;
        z-index: 9999;
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 10px;
        padding: 10px 20px;
        /* background: cadetblue; */
        border-radius: 5px;
        color: #fff;
        font-weight: bold;
        animation: slide-in 0.6s ease-out, fade-out  ease-in  forwards;
        width: 100%;
        .err{
            padding: 10px 20px;
            border-radius: 5px;
            margin-bottom: 10px;
            width: fit-content;
        }
        .error-success{
            background-color: #4CAF50;
            color: #fff;
        }
        .error-error{
            background-color: #f44336;
            color: #fff;
        }
        .error-warning{
            background-color: #ff9800;
            color: #fff;
        }
    }

    .fade-out {
        transform: translateX(30px);
        opacity: 0;
        animation: slide-out 0.5s ease-in forwards;
    }


    @keyframes slide-in {
        0% {
            opacity: 0;
            transform: translateX(-50%) 
        }
        100% {
            opacity: 1;
            transform:  translateX(0);
        }
    }
    @keyframes slide-out {
        0% {
            opacity: 1;
            transform: translateX(0); 
        }
        100% {
            opacity: 0;
            transform:  translateX(50%);
            display: none;
        }
    }



    @media (max-width: 768px){
            
            .top-bar{   
                width: 100%;
                position: fixed;
                left:0;
            }

            .content{
                margin-left:auto ;
                width: 100%;
            }

        .half-grid{
            grid-template-columns: 1fr;
        }
        .qt-grid{
            grid-template-columns: 1fr;
        }

        .content-wrapper{
        padding:10px;
        margin:10px 5px !important;
        border-radius:  20px;
        background-color: rgb(252, 252, 252);
        

        h2{
            text-align: center;
        
            }
        }
            
    }