body {
    font-family: sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.2;
}

body * {
    box-sizing: border-box;
}

#main {
    flex-grow: 1;
}

.container {
    display: flex;
    flex-direction: row;
    width: 100%;
    margin: 0px;
    padding: 0px;
    max-width: unset !important;
}

.panel {
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 16px;
}

.icon {
    color: #999;
}

.header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header h1 {
    margin: 0;
    font-size: 24px;
}

.header .search-bar {
    flex-grow: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.left-column {
    display: flex;
    flex-direction: column;
    width: 300px;
    gap: 16px;
    /* padding: 14px; */
}

#modules.left-column {
    padding: 1px;
}

.left-column .modules-list {
    display: flex;
    flex-direction: column;
}

.left-column .modules-list .module {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 4px;
    /* border-bottom: 1px solid lightgrey; */
}

.left-column .modules-list .module .item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 16px;
    border-radius: 4px;
}

.left-column .modules-list .module .item a {
    text-decoration: none;
}

.left-column .modules-list .module:hover {
    background-color: #eee;
    cursor: pointer;
}

.left-column .modules-list .module .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    color: #999;
}

.left-column .modules-list .module .label {
    font-size: 16px;
    color: #333;
}

.right-column {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 16px;
    padding: 16px;
    border-left: 1px solid #ddd;
}

.right-column .profile {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#navbar {
    border-bottom: 1px solid #ddd;
}

#navbar .app-name {
    text-transform: uppercase;
    padding: 0px 16px;
    font-weight: bold;
    font-size: 18px;
}

#navbar .right-column {
    border: none;
    flex-direction: row-reverse;
}

#view.right-column {
    padding: 32px;
}

#view.right-column .page-name {
    font-size: 1.5em;
    font-weight: bold;
}

#navbar .username {
    padding-left: 16px;
    padding-right: 16px;
}

#navbar .dropdown-menu {
    margin-top: 4px !important;
    border-radius: 4px;
}

.dropdown-menu {
    padding: 0px;
}

.dropdown-menu>li>a,
.dropdown-menu>li>div {
    padding: 8px 16px;
}

.dropdown-menu>li>hr.dropdown-divider {
    margin: 0px;
}

.dropdown-item:focus,
.dropdown-item:hover {
    background-color: #eee;
    color: inherit;
}

.left-column .module-group-name {
    padding: 0px 16px;
    font-weight: bold;
    font-size: 0.9rem;
}

footer {
    position: fixed;
    bottom: 0;
}

.navdropdown {
    display: flex;
    align-items: center;
}

#showhidesidemenu {
    display: none;
}

@media screen and (max-width: 800px) {
    #main .container {
        flex-direction: column;
    }

    #main .left-column {
        width: 100%;
        display: none;
    }

    #main .right-column {
        width: 100%;
    }

    #navbar .left-column {
        width: 60%;
    }

    #navbar .right-column {
        width: 40%;
    }

    #showhidesidemenu {
        display: block;
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent black */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    /* Higher than most UI elements */
    gap: 15px;
}

.spinner-grow {
    width: 1.5rem;
    height: 1.5rem;
    animation-duration: 1.2s;
    /* Slow down the spinner animation */
}

.spinner-grow:nth-child(1) {
    animation-delay: 0s;
}

.spinner-grow:nth-child(2) {
    animation-delay: 0.2s;
}

.spinner-grow:nth-child(3) {
    animation-delay: 0.4s;
}