@import "https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700";
body {
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    background: #fafafa;
}

:root {
    --sidebar-bg-color: #7386D5;
    --sidebar-txt-color: #ffffff;
    --sidebar-link-hover-color: #5c71c4;

    --sidebar-left: 0px;
    /* --sidebar-left: -200px; */

    --sidebar-width: 250px;
    --topbar-hight: 0px;
} 

#wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}


#sidebar {
    position: fixed;
    top: 0px;
    left: var(--sidebar-left);
    height: 100%;
    width: var(--sidebar-width);
    display: flex;
    overflow-x: hidden;
    flex-direction: column;
    background: var(--sidebar-bg-color);
    color: var(--sidebar-txt-color);
    z-index: 999;
    /* transition: all 0.4s ease; */
}


#sidebar .header {
    padding: 20px 20px 0px 20px;
    margin-bottom: 45px;
    align-items: center;
    img {
        width: 100%;
        margin-left: -5px;
    }
    a {
        color: inherit;
        text-decoration: none;
    }
}

#sidebar .header .toggle {
    position: absolute;
    font-size: 22px;
    top: 25px;
    right: 14px;
    height: 25px;
    width: 25px;
    color: var(--sidebar-bg-color);
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
}


#sidebar .page-group {
    list-style: none;
    padding-left: 20px;
    padding-right: 20px;
    margin-bottom: 20px;
}

#sidebar .page-group .title {
    color: var(--sidebar-txt-color);
    font-weight: 400;
    font-size: 0.7rem;
    white-space: nowrap;
    /* margin: 10px 0px 0px 0px; */
    position: relative;
    /* text-transform: capitalize; */
    text-transform: uppercase;
}

#sidebar .page-group a {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0 20px;
    color: var(--sidebar-txt-color);
    font-size: 1.1em;
    font-weight: 500;
    text-transform: capitalize;
    white-space: nowrap;
    margin: 0px 0px 10px 0px;
    padding: 5px 5px 5px 10px;
    text-decoration: none;
    transition: 0.2s ease;
    border-radius: 4px;        
    &:hover {
        background-color: var(--sidebar-link-hover-color);
    }
    &.selected {
        background-color: #fff;
        color: #161a2d;
    }
}   


#content {
    position: relative;
    top: var(--topbar-hight);
    left: calc(var(--sidebar-width) + var(--sidebar-left));
    height: calc(100vh - var(--topbar-hight));
    width: calc(100% - var(--sidebar-width) - var(--sidebar-left));
    padding: 20px;
    font-size: 0.8rem;
    /* transition: all 0.3s; */
}


p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1em;
    font-weight: 300;
    line-height: 1.7em;
    color: #222222;
}

/* @media (max-width: 1000px) {
    :root {
        --sidebar-left: -200px;
    }
} */


[x-cloak] {
    display: none !important;
}


/* ---------------------------------------------------
    These classes are used for the authentication pages
----------------------------------------------------- */

.container.auth {
    margin-top: min(5vw, 100px);
    padding: min(3vw, 35px);
    border-radius: 25px;
    width: min(600px, 90vw);
    background-color: #f5f4f4;

    /* This is the info message on the login page */
    .error-feedback>span {
        display: inline-block;
        border-radius: 10px;
        padding: 3px 10px 5px 10px;
    }

    .form-validation-error {
        font-size: 0.75rem;
        color: #dc3545;
    }
}


table {
    border-collapse: separate; 
    border-spacing: 0;
}    



/* ---------------------------------------------------
    These classes are used for the table sorting functions
----------------------------------------------------- */

th .sortable-field {
    cursor: pointer;
}    


.tooltip-button {
    cursor: pointer;
    color: #007bff;
    position: relative; 
    bottom: -1px;
}


/* ---------------------------------------------------
    These classes are used for htmx
----------------------------------------------------- */

.htmx-swapping {
    opacity: 0;
    transition: opacity 1s ease-out;
}
