:root {
    --bg-color: 255, 255, 255;
    --text-color: 0, 0, 0;
    --formbg: rgb(210, 210, 210);
}

.dark {
    --bg-color: 50, 50, 50;
    --text-color: 255, 255, 255;
    --formbg: rgb(50, 50, 50);
    --main-color: black;
}


/* layout START */
.topdiv {
    width: 100%;
    height: 6vh;
    border-bottom: 2px solid rgb(var(--text-color));
    display: flex;
    align-items: center;
}

.navdiv {
    display: none;
    width: 270px;
    height: 94vh;
    left: 0;
    top: 6vh;
    background: rgba(var(--text-color), 0.9);
    z-index: 3;
}

.navdiv .items {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: rgb(var(--bg-color));
    padding: 5px 10px;
    gap: 5px;
    cursor: pointer;
}

.items i {
    width: 25px;
    font-size: 18px;
    color: rgb(var(--bg-color));
    text-align: left;
}

.items:hover {
    background: rgba(0, 100, 100, 0.5);
    border-radius: 10px;
}


.mheader {
    left: 50%;
    transform: translateX(-50%);
}

.myForm {
    background: var(--formbg);
}

.footer {
    width: 70%;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid rgb(var(--text-color));
    border-radius: 25px;
    background: rgba(var(--bg-color), 0.8);
    justify-content: space-between;
}

.icon {
    width: 19.9%;
    padding: 5px 0;
    display: flex;
    flex-direction: column;
    color: rgb(var(--text-color));
    cursor: pointer;
}

i {
    font-size: 25px;
    text-align: center;
    color: rgb(var(--text-color));
    cursor: pointer;
}

.icon:hover {
    background: rgba(0, 100, 100, 0.5);
    border-radius: 25px;
    color: white;
    ;
}

.active i, .active p {
    color: var(--main-color);
}

#myModal {
    width: 270px;
    position: fixed;
    top: 20vh;
    left: 9%;
    z-index: 1;
}

/* toggle button */

.toggle {
    width: 40px;
    height: 20px;
    background: #ddd;
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    margin: auto;
    border: 1px solid black;
}

.toggle-circle {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 1px;
    left: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: 0.1s;
}

/* dark mode position */
body.dark .toggle {
    background: white;
}

body.dark .toggle-circle {
    left: 21px;
}

.mformdiv {
    width: 350px;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 2;
    background-color: var(--formbg);
    border: 1px solid white;
}

.mformdiv>form {
    height: 80vh;
}

.tablediv {
    width: 100%;
    height: 93.5vh;
    overflow: auto;
}

/* Emp Register */
.empdiv {
    width: 33%;
}

/* ChatPage */
@media only screen and (max-width: 960px) {
    .tablediv .reportdiv {
        width: 49%;
    }

    .empdiv {
        width: 48%;
    }

    #scrolldiv {
        display: none;
    }

}

@media only screen and (max-width: 600px) {
    body {
        height: 92.5vh;
    }

    .topdiv .mheader {
        left: 170px;
        text-align: left;
        font-size: 14px;
        width: 200px;
    }

    header .navdiv {
        height: 87vh;
    }

    .mformdiv {
        width: 100%;
        height: 87vh;
    }

    .mformdiv>form {
        height: 74vh;
    }

    .aa {
        height: 45px;
    }

    .footer {
        width: 96%;
    }


    body .tablediv {
        height: 86.5vh;
    }

    body #chatpage {
        width: 100%;
        right: 0;
    }

    #chattext {
        padding: 12px 10px;
    }

    body #sendbtn {
        padding: 10px 6px;
    }

    .tablediv .reportdiv {
        width: 100%;
    }

    /* Profit Page */
    .profitdiv .profitover,
    .over .other {
        height: auto;
        margin-bottom: 10px;
        padding-bottom: 3px;
    }

    /* Emp Register */
    .empdiv {
        width: 100%;
    }

}

/* ChatPage END */
