﻿
.menu-links {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ===== Colors ===== */
    --body-color: #fff;
    --sidebar-color: #f5f5f5;
    --titlebar-color: #f5f5f5;
    --promary-color: #7a7a7a;
    --promary-color-light: #f6f5ff;
    --toggle-color: #ddd;
    --text-color: #000;
    --text-statsoft-blue: #0084c5;
    /* ===== Transition ===== */
    --tran-02: all 0.2s ease;
    --tran-03: all 0.3s ease;
    --tran-04: all 0.4s ease;
    --tran-05: all 0.5s ease;
}

body {
    background: var(--body-color);
    transition: var(--tran-04);
    height: 100%;
}

    body.dark {
        --body-color: #18191a;
        --sidebar-color: #242526;
        --promary-color: #3a3b3c;
        --promary-color-light: #3a3b3c;
        --toggle-color: #fff;
        --text-color: #ccc;
    }

/* ===== Titlebar ===== */
.titlebar {
    position: fixed;
    top: 0px;
    width: 100%;
    height: 45px;
    z-index: 150;
}

    .titlebar .titlebar-container {
        grid-area: 1/1/2/3;
        display: grid;
        grid-template-columns: 1fr, 1fr;
        align-items: center;
        height: 100%;
        background: var(--titlebar-color);
        overflow-x: hidden;
    }

    .titlebar .titlebar-brand {
        grid-area: 1/1/2/2;
        justify-self: left;
        margin-left: 18px;
        font-size: 15px;
        text-decoration: none;
        color: black;
    }

    .titlebar .titlebar-text {
        font-family: Arial;
        font-weight: 800;
    }

    .titlebar .module-ab {
        color: var(--text-statsoft-blue);
    }

    .titlebar .titlebar-container .module {
        grid-area: 1/1/2/3;
        justify-self: center;
    }

.module {
    display: flex;
    flex-direction: row;
    align-items: baseline;
}

    .module span {
        color: black;
        font-size: 12px;
    }

.titlebar .titlebar-right {
    grid-area: 1/2/2/3;
    justify-self: right;
}

    .titlebar .titlebar-right .account-expirationdate-label {
        float: left;
        margin: 15px 15px 0 0;
    }

    .titlebar .titlebar-right .account-expirationdate-label-expiring {
        color: red;
    }

    .titlebar .titlebar-right .user-button {
        float: left;
        width: 36px;
        height: 36px;
        background: #ccc;
        border-radius: 18px;
        margin: 4px 15px 4px 0;
        cursor: pointer;
    }

        .titlebar .titlebar-right .user-button div {
            position: relative;
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
        }

            .titlebar .titlebar-right .user-button div span {
                position: relative;
                font-weight: 700;
                font-size: 16px;
                pointer-events: none;
            }

.log-in-button {
    color: black;
    text-decoration: none !important;
    margin: 2px 0px 0px 2px;
}

    .log-in-button:hover {
        color: black;
    }

.user-panel-wrap {
    position: fixed;
    top: 54px;
    right: 4px;
    z-index: 200;
    overflow: hidden;
    max-height: 0px;
    min-width: 300px;
    background: white;
    border-radius: 2px;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(-10px);
    transition: 150ms ease-in-out;
}

    .user-panel-wrap.open-user-panel {
        max-height: 350px;
        opacity: 1;
        transform: translateY(0);
    }


.user-info {
    display: flex;
    align-items: center;
}

.user-personal-data {
    position: relative;
    top: 7px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

    .user-personal-data .user-name {
        font-weight: 700;
        font-size: 16px;
        margin-bottom: 5px;
    }

    .user-personal-data .user-email {
        color: gray;
        font-size: 11px;
    }

.user-img {
    display: flex;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    background: var(--titlebar-color);
    border-color: #dfdfdf;
    border-width: 0.5px;
    border-style: solid;
    justify-content: center;
    align-items: center;
    position: relative;
}

    .user-img span {
        position: relative;
        font-size: 28px;
    }

.user-panel hr {
    border: 0;
    height: 1px;
    width: 100%;
    background: #ccc;
    margin: 15px 0 5px;
}

.user-panel {
    background: white;
    padding: 10px 10px 2px 10px;
}

.user-panel-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: gray;
    margin: 6px 15px;
    border-radius: 2px;
}

    .user-panel-link:hover {
        background: lightgray;
    }

    .user-panel-link p {
        display: block;
        position: relative;
        font-size: 12px;
        text-decoration: none !important;
        color: #525252;
        margin: 5px 0;
    }

/* ===== Sidebar ====== */
.sidebar-separator {
    border: 1px solid #e3e3e3 !important;
    margin-top: 30px;
    margin-bottom: 30px;
}

.sidebar {
    padding: 60px 14px 10px 14px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 270px;
    background: var(--sidebar-color);
    transition: var(--tran-05);
    z-index: 100;
}

    .sidebar.closed {
        width: 88px;
    }

    /* ===== Reusable CSS ====== */
    .sidebar .text {
        font-size: 16px;
        font-weight: 500;
        color: var(--text-color);
        transition: var(--tran-03);
        white-space: nowrap;
        opacity: 1;
    }

    .sidebar.closed .text {
        opacity: 0;
    }

    .sidebar .image {
        min-width: 60px;
        display: flex;
        align-items: center;
    }

    .sidebar li {
        height: 50px;
        margin-top: 10px;
        list-style: none;
        display: flex;
        align-items: center;
    }

    .sidebar.closed li .text {
        pointer-events: none;
    }

    .sidebar li .icon {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 60px;
        font-size: 20px;
    }

    .sidebar li .icon,
    .sidebar li .text {
        color: var(--text-color);
        transition: var(--tran-02);
    }

    .sidebar header {
        position: relative;
    }

    .sidebar .image-text img {
        width: 40px;
        border-radius: 6px;
    }

    .sidebar header .image-text {
        display: flex;
        align-items: center;
    }

header .image-text .header-text {
    display: flex;
    flex-direction: column;
}

.header-text .name {
    font-weight: 600;
}

.header-text .profession {
    margin-top: -2px;
}

.sidebar header .toggle {
    position: absolute;
    top: calc(50% + 32px);
    right: -30px;
    transform: translateY(-50%) rotate(180deg);
    height: 25px;
    width: 25px;
    background: var(--promary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--sidebar-color);
    font-size: 22px;
    transition: var(--tran-03);
    cursor: pointer;
}

.sidebar.closed header .toggle {
    transform: translateY(-50%);
}

.sidebar li a {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    text-decoration: none;
    border-radius: 6px;
    transition: var(--tran-04);
}

    .sidebar li a:hover {
        background: var(--promary-color);
    }

        .sidebar li a:hover .icon,
        .sidebar li a:hover .text {
            color: var(--sidebar-color);
        }

body.dark .sidebar li a:hover .icon,
body.dark .sidebar li a:hover .text {
    color: var(--text-color);
}

.sidebar .menu-bar {
    height: calc(100% - 50px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.render-body {
    position: relative;
    left: 244px;
    width: calc(100% - 74px);
    min-height: 800px;
    transition: var(--tran-05);
}

footer {
    transition: var(--tran-05);
    position: relative;
    bottom: 0px;
    left: 244px;
    overflow-wrap: break-word;
}

footer hr {
    margin-top: 6px !important;
    margin-bottom: 6px !important;
}

@media screen and (max-width: 768px) {

    * {
        max-width: 100vw;
    }

    .titlebar-text.module {
        display: none;
    }

    .sidebar:not(.closed) {
        min-width: 90vW;
    }

    .sidebar.closed {
        max-width: 20%;
    }

    .sidebar.closed ~ .render-body, .sidebar.closed ~ .footer {
        display: block
    }

    .sidebar ~ .render-body, .sidebar ~ .footer {
        display: none
    }

    .footer {
        max-width: 75%;
        left: 25vW;
    }

    .render-body {
        max-width: 75%;
        left: 25vW;
    }

    .form-group {
        max-width: 110%
    }

    .mobile-width-alert {
        max-inline-size: 75vW;
        margin-left: 25vW;
    }
}

@media (min-width: 768px) and (max-width: 1300px) {

    .sidebar.closed ~ .render-body, .sidebar.closed ~ footer {
        width: calc(100% - 44px);
        left: 74px;
    }

    .mobile-width-alert {
        display: none;
    }
}

@media (min-width: 1300px) {

    .sidebar.closed ~ .render-body, .sidebar.closed ~ footer {
        width: calc(100% - 68px);
        left: 68px;
    }

    .render-body, footer {
        left: 220px;
    }

    .mobile-width-alert {
        display: none;
    }
}

@media (min-width: 1500px) {

    .sidebar.closed ~ .render-body, .sidebar.closed ~ footer {
        width: calc(100% - 22px);
        left: 22px;
    }

    .render-body, footer {
        left: 110px;
    }

    .mobile-width-alert {
        display: none;
    }
}

@media (min-width: 1700px) {

    .sidebar.closed ~ .render-body, .sidebar.closed ~ footer {
        width: calc(100% - 44px);
        left: 0px;
    }

    .render-body, footer {
        left: 20px;
    }

    .mobile-width-alert {
        display: none;
    }
}

.bluetext {
    color: #4472C4
}
body.modal-open {
    overflow: auto !important;
}

body.modal-open[style] {
    padding-right: 0px !important;
}