@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

* {
    box-sizing: border-box;
    --primary: #543998;
    --secondary: #ffe600;
    --text: #111;
    --fa-font-solid: normal 900 1em / 1 "Font Awesome 6 Free";
    --fa-font-regular: normal 400 1em / 1 "Font Awesome 6 Free";
}

html {
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
}

body {
    margin: 0;
}

.login-form-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.login-form {
    max-width: 350px;
    border: 1px solid #ccc;
    padding: 20px 10px 0px;
}

.form-row {
    display: flex;
    justify-content: center;
    padding: 5px;
    flex-direction: column;
    align-items: flex-start;
}

.inline-labels .form-row {
    flex-direction: row;
}

.inline-labels .form-label {
    width: 50%;
    justify-content: right;
}

.form-label .form-error {
    color :#f00;
}

.form-value {
    width: 100%;
}

.login-form input[type="text"]
,.login-form input[type="password"] {
    width: 100%;
}

button, input[type="submit"] {
    background-color: #ccc;
    color: var(--text);
    border: none;
    padding: .5rem 1rem;
    line-height: 1rem;
    font-size: 1rem;
}
button:not(:disabled):hover, input[type="submit"]:not(:disabled):hover {
    cursor: pointer;
    background-color: #bbb;
}
button:disabled, input[type="submit"]:disabled {
    opacity: 0.6;
}

#nav-bar, ul.navigation-bar {
    display: flex;
    flex-direction: row;
}

#nav-bar {
    justify-content: space-between;
    border-bottom: 1px solid #ccc;
}

ul.navigation-bar {
    list-style-type: none;
    padding-inline-start: 0px;
    margin: 0px;
}

.navigation-bar li {
    border-right: 1px solid #ccc;
    position: relative;
}
.navigation-bar li:first-of-type {
    border-left: 1px solid #ccc;
}

.navigation-bar a {
    text-decoration: none;
    color: var(--text);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    height: 100%;
}

.navigation-bar li:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0px;
    background-color: #ccc;
    pointer-events: none;
    transition: .3s;
}

.navigation-bar li:hover:before,
.navigation-bar li.selected:before {
    height: 4px;
}

#nav-username {
    display: flex;
    align-items: center;
    padding: 5px;
}

#admin-nav-bar {
    margin-bottom: 1rem;;
}

.button-container {
    padding: 5px 0;
    display: flex;
    flex-direction: row;
    align-items: center;
}
.button-container
>a,.button-container>button
,.button-container input[type="submit"] {
    margin-left: 5px;
}
.button-container>a:first-of-type
,.button-container>button:first-of-type
,.button-container>input[type="submit"]:first-of-type {
    margin-left: 0px;
}

.form-row.button-container {
    padding: 5px;
    justify-content: flex-start;
    flex-direction: row;
}

.content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px;
}

section:not(:last-of-type) {
    margin-bottom: 1rem;
}

.tile-container {
    border: 1px solid #ccc;
    padding: 5px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
}

.tile {
    background-color: #ccc;
    padding: 5;
}

.tile:hover {
    cursor: pointer;
    background-color: #bbb;
}

.tile-title {
    font-weight: bold;
}

.tile-container-header {
    padding: 5px;
    border: 1px solid #ccc;
    border-bottom: none;
    width: fit-content;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
}

.tile-container-title {
    display: inline-block;
    font-weight: bold;
    font-size: 1.2rem;
}

.form-loading {
    position: relative;
}

.form-loading::before, .translating-overlay::before {
    content:'';
    width: 100%;
    height: 100%;
    position: absolute;
    top:0;
    left:0;
    opacity: .4;
    background-color: #000;
    z-index: 9;
}

.form-loading::after {
    content:'';
    position: absolute;
    top: calc(50% - 24px);
    left: calc(50% - 24px);
    transform: translate(-50%,-50%);
    width: 48px;
    height: 48px;
    border: 5px solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    z-index: 9;
}

.modal-container {
    position: absolute;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00000088;
}

#module-source-select-wrapper {
    white-space: nowrap;
}

button.processing-spinner::after {
    font: var(--fa-font-solid);
    content: '\f1ce';
    animation: rotation 1s linear infinite;
    display: inline-block;
    margin-left: 0.5rem;
}

#context-menu {
    position: fixed;
    background-color: #fff;
    z-index: 999;
    box-shadow: 1px 1px 2px 0px #00000069;
    display: flex;
    flex-direction: column;
}
.context-option {
    padding: 5px;
    border: 1px solid transparent;
}
.context-option:hover {
    background-color: #ccc;
    border: 1px solid #888;
    cursor: pointer;
}

.progress-bar {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.progress-bar-container {
    outline: 1px solid #ccc;
    border: 2px solid transparent;
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    background-color: steelblue;
    height: 1rem;
    transition: width .5s;
    width: 0%;
}

.progress-bar-percentage {
    position: absolute;
    top: 50%;
    right: .5rem;
    font-size: 1rem;
    transform: translateY(-50%);
    line-height: 1rem;
}

.progress-bar-details {
    text-align: center;
}

.progress-log {
    border: 1px solid #ccc;
    height: 200px;
    overflow-y: scroll;
}

.user-search-container {
    padding: 5px;
}

.user-search-container label:before {
    font: var(--fa-font-solid);
    content: '\f002';
}

.user-search-selected-users {
    background-color: #888;
    padding: 5px;
    display: none;
    position: relative;
    margin-top: 1.4rem;
}
.user-search-selected-users:before {
    content: 'selected';
    position: absolute;
    top: -1rem;
    left: 10px;
    padding: 0rem 0.5rem;
    background-color: #888;
    color: #fff;
}

.ui-helper-hidden-accessible {
    position: absolute;
    left: -999em;
}

ul.ui-autocomplete {
    border: 1px solid #ccc;
    background-color: #fff;
    width: fit-content;
}
ul.ui-autocomplete {
    list-style-type: none;
    padding: 0;
}
.ui-autocomplete li:hover {
    cursor: pointer;
    background-color: #ccc;;
}

.user-search-selected-users .button-container {
    padding-bottom: 0;
    gap: .5rem;
}

.user-search-selected-users em {
    color: #fff;
}