﻿/* ===== Google Font Import - Poppins ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600&display=swap');

* {
    /*    margin: 0;
    padding: 0;*/
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    background-color: #F0F2F5;
}

/* === Custom Scroll Bar CSS === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #3A3B3C;
    border-radius: 12px;
    transition: all 0.3s ease;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #0b3cc1;
    }

nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 200px;
    padding: 10px 14px;
    background-color: #34383C;
    z-index: 1;
}

    nav .toggle {
        display: flex;
        justify-content: right;
    }

        nav .toggle button {
            background-color: #34383C;
            height: 30px;
            width: 20px;
            color: #FCFCFC;
            cursor: pointer;
        }
    /*might have to put it in the page header..*/

    nav .logo {
        display: flex;
        align-items: center;
    }

    nav .logo-image {
        display: flex;
        justify-content: center;
        min-width: 45px;
    }

        nav .logo-image img {
            width: 70px;
            object-fit: cover;
            border-radius: 50%;
        }

    nav .logo-label {
        font-size: 22px;
        font-weight: 600;
        margin-left: 14px;
        color: #FCFCFC;
    }

    nav .footer-label {
        font-size: 10px;
        font-weight: 300;
        color: #FCFCFC;
    }

    nav .profile {
        margin-top: 10px;
        padding-bottom: 5px;
        border-bottom: 1px solid lime;
    }

        nav .profile span {
            font-size: 18px;
            /* font-weight: 600;*/
            /*margin-left: 14px;*/
            color: #FCFCFC;
        }

    /*menu container*/
    nav .menu-items {
        /*background-color:red;*/
        margin-top: 20px;
        height: calc(100% - 120px); /*Adjust this to keep menu within nav visible*/
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

.menu-items li {
    list-style: none;
}
    /*menu item*/
    .menu-items li a {
        text-decoration: none;
        color: #FCFCFC;
        height: 45px; /*Space between links*/
        display: flex;
        align-items: center;
        border-right: 2px solid transparent;
        transition: all 0.4s ease;
        /*background-color:orange;*/
    }
        /*menu icon*/
        .menu-items li a i {
            min-width: 30px;
            height: 100%; /*cover entire link height*/
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            /*background-color:red;*/
        }
        /*menu label*/
        .menu-items li a .link-name {
            /*font-size: 18px;*/
        }

        /*Style menu item when active/hovered*/
        .menu-items li.active a,
        .menu-items li a:hover {
            color: #00ff21;
            border-right-color: #00ff21;
        }

    /*Style sub-menu*/
    .menu-items li ul {
        position: static;
        display: none;
        /*background-color:red;*/
    }
        /*sub-menu item*/
        .menu-items li ul a {
            color: #FCFCFC; /*Reset subitem color to default menu color*/
            height: 25px; /*Space between links*/
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
        }
/*Display submenu when requested.*/
.menu-items .showsubmenu {
    display: block;
}

/*Style the sub-menu for the currently active menu */
.menu-items li.active ul li a {
    color: #FCFCFC;
}
    /*Hover on subitem*/
    .menu-items li.active ul li a:hover {
        color: #00ff21;
        border-right-color: #00ff21;
    }


/*Style the top frame*/
.page-header {
    position: fixed;
    top: 0;
    left: 200px; /*From where nav ends*/
    width: calc(100% - 200px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    height: 50px;
    background: #fff;
    z-index: 10; /*Keep it on top of any other divs*/
    border-bottom: 2px solid brown;
}

    .page-header .user-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 150px;
        /*background-color:red;*/
    }

    /* Notification icon */
    .page-header i {
        font-size: 25px;
        color: #126505;
    }

    /*User logo*/
    .page-header img {
        width: 55px;
        border-radius: 50%;
        cursor: pointer;
    }

    .page-header .title {
        font-size: 25px;
        font-weight: 600;
        color: orange;
    }

/* Style page content*/
.page-content {
    margin-left: 200px;
    margin-top: 10px;
    height: 100%;
    padding-left: 5px;
}


/* style mobile master page '''''''''''''''''''''''''''''''''''*/
nav.mobile {
    width: 230px;
}

    nav.mobile .menu-items {
        height: calc(100% - 250px) /*keep menu items visible*/
    }

.page-content.mobile {
    margin-left: 230px;
    margin-top: 10px;
}
/*''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''*/




/* Define loader div */
#loader {
    /* This also works to give a grey spinning circle */
    /*border: 12px solid #f3f3f3;
            border-radius: 50%;
            border-top: 12px solid #444444;
            width: 70px;
            height: 70px;
            animation: spin 1s linear infinite;*/
    /*position: absolute;*/
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: 150px;
    height: 150px;
    margin: -75px 0 0 -75px;
    /*border: 16px solid #f3f3f3;*/
    border: 10px solid lime;
    border-radius: 50%;
    border-top: 10px solid #3498db;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    z-index: 15;
}

/* Define how loader spins */
@keyframes spin {
    /*0% { transform: rotate(0deg); }*/
    100% {
        transform: rotate(360deg);
    }
}

/* Define position of the loader div */
.center {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

/* System alert messages (the flash window that pops-up and disappears) */
.alertMsg {
    display: none;
    position: fixed;
    top: 10%;
    padding: 20px;
    border: none;
    background-color: limegreen;
    max-width: 500px;
    max-height: 100px;
    overflow-y: auto;
    z-index: 20 !important; /*if need be*/
    /*transition: 0.5s ease;*/
}

    .alertMsg button {
        border: none;
        background: transparent;
        cursor: pointer;
        float: right;
    }


/*======== Design a form ============================*/

.form-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 6px;
    padding: 30px;
    margin: 0 15px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    overflow-y: auto;
    background: white;
}

    /*.form-container::-webkit-scrollbar {
    display: none;
}*/

    .form-container header {
        position: relative;
        font-size: 20px;
        font-weight: 600;
        color: #333;
    }

        .form-container header::before {
            content: "";
            position: absolute;
            left: 0;
            bottom: -2px;
            height: 3px;
            width: 27px;
            border-radius: 8px;
            background-color: #4070f4;
        }

    .form-container .form-description {
        display: block;
        margin-bottom: 8px;
        font-size: 14px;
        font-weight: 800;
        margin: 6px 0;
        color: #333;
    }

    .form-container .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: red;
        color: white;
        border: none;
        border-radius: 50%;
        width: 25px;
        height: 25px;
        cursor: pointer;
        font-size: 16px;
        line-height: 25px;
        text-align: center;
    }

.form-section {
    position: relative;
    width: 100%;
    margin-top: 10px;
}

    .form-section .title {
        display: block;
        margin-bottom: 8px;
        font-size: 16px;
        font-weight: 800;
        margin: 6px 0;
        color: #333;
    }


.form-container .form-section .fields {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; /*Make items move to next row if row is full*/
}

.fields .input-field {
    display: flex;
    width: calc(100% / 3 - 15px);
    flex-direction: column;
    margin: 4px 0;
}

.input-field label {
    font-size: 12px;
    font-weight: 500;
    color: #2e2e2e;
}

.input-field input, select, textarea {
    outline: none;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    border-radius: 5px;
    border: 1px solid #aaa;
    padding: 0 15px;
    height: 40px;
    margin: 8px 0;
}

    .input-field input:focus,
    .input-field textarea:focus,
    .input-field select:focus {
        box-shadow: 0 3px 6px rgba(0,0,0,0.13);
        border-color: #3498db;
    }

.form-container .btn {
    width: 150px;
    background-color: #5995fd;
    border: none;
    outline: none;
    text-decoration: none;
    height: 49px;
    border-radius: 5px;
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    margin: 10px 0;
    cursor: pointer;
    transition: 0.5s;
}

.form-container .btndanger {
    background-color: red;
    color: #fff;
}

.form-container .btn:hover {
    background-color: #080437;
}

.form-container .btndanger:hover {
    background-color: orange;
}

/* Make form responsive to smaller screens */
@media screen and (max-width: 1000px) {
    .form-container {
        overflow-y: auto;
    }

        .form-container form::-webkit-scrollbar {
            display: none;
        }

    .form-section .fields .input-field {
        width: calc(100% / 2 - 15px);
    }

    .page-content {
        margin-left: 0px;
        margin-top: 60px;
    }

    nav {
        display: none;
    }
}

@media (max-width: 850px) {
    .form-section .fields .input-field {
        width: 100%;
    }

    .form-section .btn {
        margin-bottom: 10px;
    }
}


/*==================================================*/

.error-text {
    color: red;
}

.btn {
    cursor: pointer;
    outline: none;
    font-size: 14px;
    font-weight: 400;
    color: #fff !important;
    background-color: #3498db;
    border-radius: 5px;
    border: 1px solid #aaa;
    padding: 0 15px;
    height: 40px;
    margin: 8px 0;
    text-decoration: none;
}

    .btn:disabled {
        background-color: gray;
        cursor: not-allowed;
    }

.btnNew {
    background-color: #26AA0F;
    color: #fff !important;
}

    .btnNew:hover {
        background-color: limegreen;
    }

.btngreen {
    background-color: limegreen;
    color: #fff !important; /* Make sure the property is not overriden by parent controls */
}

    .btngreen:not([disabled]):hover {
        background-color: #00ff21;
    }

.btnred {
    background-color: #d92525;
    color: #fff !important; /* Make sure the property is not overriden by parent controls */
}

.btnblue {
    background-color: royalblue;
    color: #fff !important; /* Make sure the property is not overriden by parent controls */
}

.btnred:not([disabled]):hover {
    background-color: red;
}

.uniquebtn {
    text-decoration: none;
    outline: none;
    cursor: pointer;
    color: #000000 !important;
    /*border: none;*/
    border-radius: 5px;
   /* box-shadow: 0 9px #999;*/
    width: 130px;
    height: 41px;
    background-color: transparent;
    transition: 0.4s ease;
}

.submitbtn {
    border-color: #04AA6D;
}

    .submitbtn:hover {
        background-color: #04AA6D;
        color: #fff !important;
    }

.cancelbtn {
    border-color: red;
}

    .cancelbtn:hover {
        background-color: red;
        color: #fff !important;
    }

.editbtn {
    /*color: #000000 !important;*/
    border-color: #4070f4;
}

    /*.editbtn:hover {
        background-color: #4070f4;
        color: #fff !important;
    }*/

    /* only show hover effect if button is enabled*/
    .editbtn:not([disabled]):hover {
        background-color: #4070f4;
        color: #fff !important;
    }


/* Used by mark-ups to hide or show anchor tags dynamically*/
.linkHide {
    display: none !important;
}

/* Used by mark-ups to hide or show anchor tags dynamically*/
.activeLink {
    cursor: pointer;
    color: purple !important;
}

/* to display link but stop click action */
.disabled-link {
    pointer-events: none;
    color: gray;
    text-decoration: none;
    cursor: default;
}




/*Used by validation functions to highlight controls that need attention*/
.red-border {
    border: 2px solid red !important;
}

.popup-form {
    position: fixed;
    z-index: 10;
    top: 10%;
    max-height: 80%; /*make height auto*/
    max-width: 1000px;
    overflow: auto;
    /*background-color: #78f6d7;*/
    background-color: #FBF5DF;
    /*background-color:#fbcd77;*/
}

.popup-subform {
    position: fixed;
    z-index: 15;
    top: 10%;
    max-height: 80%; /*make height auto*/
    max-width: 1000px;
    overflow: auto;
    background-color: whitesmoke;
    /*background-color: #fbcd77;*/
}