:root {
    --gvs-color-gold: #ebd55a;
    --gvs-color-grey: rgb(245, 245, 245);
    --gvs-color-darkgrey: rgb(136, 136, 136);
    --gvs-color-light-red: rgb(255, 196, 196);
}

*, ::after, ::before {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: black;
}

.cl-gold {
    color: var(--gvs-color-gold);
}

.cl-white {
    color: white;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    border-bottom: 1px solid var(--gvs-color-darkgrey);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

nav {
    display: flex;
    gap: 1rem;
}

nav a, header form a, nav div {
    /* color: white; */
    font-weight: 500;
    padding: 3px 10px;
    margin-left: -10px;
    border-radius: 10px;
}

nav a:hover, header form a:hover {
    text-decoration: underline;
}

main {
    flex: 1;
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    background-color: var(--gvs-color-grey);
}

button {
    border-radius: 10px;
    padding: 5px;
    cursor: pointer;
    background-color: var(--gvs-color-gold);
    border: 1px solid var(--gvs-color-darkgrey);
}

button[type="submit"] {
    padding: 0.5rem 3rem;
}

.box {
    /* border: 1px solid; */
    position: relative;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 1rem;
}

.modal-window {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(230, 230, 230, 0.7);
    z-index: 9999;
}

.modal-window .box {
    padding: 3rem;
    min-width: 35vw;
    overflow-y: scroll;
}

.modal-window .box .close-modal {
    position: absolute;
    top: 0;
    right: 0;
    color: var(--gvs-color-darkgrey);
    padding: 0.5rem;
}

.modal-window .box .close-modal:hover {
    color: rgb(100, 100, 100);
    cursor: pointer;
}

.close-modal:after {
    content: "\00d7";
    font-size: 34px;
    font-weight: bold;
}
/* .modal-window.project-form .box {
    padding: 3rem;
    width: 100vw;
    height: 100vh;
} */

#filter-row {
    display: flex;
    flex-grow: 1;
    flex-shrink: 1;
    gap: 1rem;
}

#filter-row > input[type="text"] {
    flex-grow: 1;
}

#filter-row > * {
    flex-shrink: 1;
    flex-basis: 1px;
}

.message-input {
    min-height: 15vh;
}

.loader-container {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    background-color: rgba(230, 230, 230, 0.7);
}

.loader {
    border-radius: 50%;
    width: 70px;
    height: 70px;
    /* border: 5px solid var(--gvs-color-gold); */
    background: 
      radial-gradient(farthest-side, var(--gvs-color-gold) 94%,#0000) top/8px 8px no-repeat,
      conic-gradient(#0000 30%,var(--gvs-color-gold));
    -webkit-mask: radial-gradient(farthest-side,#0000 calc(100% - 8px),#000 0);
    animation: spin 1s infinite linear;
}

@keyframes spin { 
    100%{transform: rotate(1turn)}
}

#projects-container, #users-container {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

#project-list, #users-list {
    flex: 1 1 50%;
    max-height: 80vh;
    overflow-y: scroll;
    /* font-size: smaller; */
}

.project-category {
    font-weight: bold;
    margin-right: 10px;
}

.inactive-warning::after {
    color: orange;
    content: "\26A0";
    font-weight: bold;
    line-height: 1px;
    vertical-align: middle;
}

.project-userbutton {
    margin-right: 10px;
}

.project-linkbutton {
    margin-right: 15px;
    /* text-decoration: underline; */
    /* color: var(--gvs-color-darkgrey); */
    cursor: pointer;
}

table {
    border-spacing: 20px 5px;
}

ul {
    list-style: none;
    padding-inline-start: 20px;
}

li {
    padding: 0.25rem 0;
    border-top: 1px solid;
}

li > .category {
    font-weight: bold;
}

li > .project-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

li > .project-info:hover, li.user-entry:hover {
    cursor: pointer;
    background-color: var(--gvs-color-grey);
}

.pending {
    /* background-color: rgb(255, 180, 180) */
}

#participants ul li {
    border: none;
}

h3 {
    margin: 0;
}

.form-delete {
    display: inline-block;
}

#project-details-container, #user-details-container {
    flex: 1 1 50%;
    /* min-height: 80vh; */
    max-height: 80vh;
    position: relative;
}

.hint {
    color: var(--gvs-color-darkgrey);
    margin: 0;
}

.description {
    margin: 0;
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 100%;
}

.project-details .header-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.project-details #project-number {
    margin-right: 1rem;
}

.project-details #dates {
    font-size: smaller;
    margin-top: -1rem;
    margin-bottom: -1rem;
}

.project-details #dates a {
    text-decoration: underline;
    cursor: pointer;
}

.project-details #responsibles {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
    margin-left: -10px;
}

#responsibles > #main-responsible {
    flex: 1 1 auto;
}

#responsibles > #participants {
    flex: 3 1 auto;
}

#responsibles table {
    border-spacing: 10px 5px;
}

#project-detail-entries.resized {
    position: fixed;
    width: 50%;
    height: 80vh;
    top: 10vh;
}

#project-detail-entries {
    /* margin-top: 2rem; */
    overflow-y: auto;
    overscroll-behavior: contain;
}

form {
    display: flex;
    flex-direction: column;
    background-color: white;
    align-content: flex-start;
    align-items: stretch;
    gap: 1.5rem;
}

form input[type="text"], form input[type="number"], form textarea {
    flex: 1;
    border: 1px solid black;
    border-radius: 4px;
    background-color: transparent;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-family: Arial, Helvetica, sans-serif;
}

label > input[type="number"] {
    width: 50px;
}

form input[type="datetime-local"] {
    flex: 0 0 auto;
}

.form-row {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1.5rem;
}

.form-row.flex-center {
    justify-content: center;
}
.form-row.flex-start {
    justify-content: flex-start;
}

@media only screen and (min-width: 992px) {
    .lg-50 {
        max-width: 50%;
    }
    
    .modal-window .box {
        max-width: 35vw;
    }
}

@media only screen and (min-width: 1200px) {
    .xl-50 {
        max-width: 50%;
    }
}

.mb-20 {
    margin-bottom: 20px;
}

.mr-1 {
    margin-right: 1rem;
}

.text-danger {
    color: red;
}

.seperator {
    border-top: 1px solid black;
    padding-top: 1rem;
}

#pending-projects {
    margin-top: 1rem;
    margin-bottom: 1rem;
    width: 50%;
}

.chat-container {
    /* max-width: 600px; */
    margin: 10px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    /* height: 80vh; */
}

.chat-header {
    padding: 15px;
    font-weight: bold;
    border-bottom: 1px solid;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 9998;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    background-color: var(--gvs-color-grey);
    display: flex;
    flex-direction: column;
    font-size: smaller;
}

.message {
    margin-bottom: 7px;
    max-width: 70%;
    padding: 5px 14px 2px 14px;
    border-radius: 8px;
    position: relative;
    line-height: 1.3;
    clear: both;
}

.message.sent {
    background-color: #dcf8c6;
    margin-left: auto;
    border-bottom-right-radius: 0;
}

.message.received {
    background-color: #fff;
    margin-right: auto;
    border-bottom-left-radius: 0;
}

.message .names, .message .timestamp {
    display: block;
    font-size: 10px;
    color: var(--gvs-color-darkgrey);
}

.message .names {
    /* margin-bottom: 5px; */
}

.message .timestamp {
    text-align: right;
    margin-top: 5px;
}

.login-form {
    max-width: 20%;

}

.changed {
    color: red;
}

.selected {
    background-color: var(--gvs-color-light-red);
}

.can-start {
    color: green;
}

.available-users {
    margin-top: 1rem;
}

.available-users .user-list {
    border: 1px solid;
    border-radius: 10px;
    max-height: 15vh;
    overflow-y: scroll;
    padding: 5px;
    margin-top: 5px;
}

.available-user {
    cursor: pointer;
}

.recipient-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    row-gap: 5px;
    margin-top: 5px;
}

.recipient-selected {
    cursor: pointer;
    padding: 2px 5px;
    background: var(--gvs-color-grey);
    border-radius: 10px;
    margin-right: 5px;
    font-size: smaller;
}

.category-list {
    margin-top: 2rem;
}

.category-list-table-wrapper {
    max-height: 15vh;
    overflow-y: auto;
}