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

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  user-select: none;
}

.container {
  width: 100%;
  color: #666;
  text-align: center;
  padding: 1em 0;
}

#taskForm {
  width: 60vw;
  max-width: 40rem;
  min-width: 300px;
  margin: 0 auto;
  padding: 1em 1.5em;
  border: 1px solid #f4f4f4;
  border-radius: 20px;
  box-shadow: 0 0 15px -7px rgba(0, 0, 0, 0.65);
}

.inputBox {
  width: 100%;
  margin-bottom: 1em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.inputBox label {
  font-size: 1rem;
  font-weight: 700;
  width: 100%;
  text-align: left;
  position: relative;
}

.inputBox input {
  padding: 1em;
  border: 1px solid #666;
  border-radius: 5px;
  width: 100%;
}

::placeholder {
  font-family: sans-serif;
}

.textInput {
  padding: 1em;
  width: 100%;
  min-height: 65px;
  border-radius: 5px;
  border: 1px solid #666;
  resize: vertical;
}
.radioButtons {
  display: flex;
  flex-direction: row;
}
.checkBox {
  display: flex;
  flex-direction: row;
}

.submitBtn {
  font-size: 1rem;
  padding: 1em 0.5em;
  outline: 0;
  box-shadow: rgba(0, 0, 0, 0.07) 0 1px 1px, rgba(0, 0, 0, 0.07) 0 2px 2px,
    rgba(0, 0, 0, 0.07) 0 4px 4px, rgba(0, 0, 0, 0.07) 0 8px 8px,
    rgba(0, 0, 0, 0.07) 0 16px 16px;
}

.active {
  background-color: #0000ee;
  color: #fff;
}

.disabled {
  color: rgb(204 200 200);
  background-color: #7171fd;
  opacity: 0.5;
}

.required {
  color: red;
  font-size: medium;
}
#category,
#level,
#status,
#priority,
#dependsOn {
  width: 100%;
  padding: 1em;
  border-radius: 5px;
}

#isNoteworthy {
  width: auto;
}

#participantsInput {
  display: none;
}

.hidden {
  display: none;
}

.visibity-hidden {
  visibility: hidden;
}

/* --- Loading spinner --- */

.loaderContainer {
  position: relative;
  cursor: default;
}

.loader-wrapper {
  position: absolute;
  pointer-events: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  background-color: rgba(255, 255, 255, 0.3);
}

.loader {
  border: 4px solid transparent;
  border-top: 4px solid #1d58d8;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: spin 1.3s linear infinite;
}

.info-repo {
  font-weight: 100;
  padding: auto;
  text-align: center;
}

footer {
  margin-top: auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

#remainingDays {
  font-weight: 100;
}

.notEditing {
  display: none;
}

.inputBox label .edit-button {
  width: fit-content;
  height: fit-content;
  font-size: 0.625em;
  opacity: 60%;
  right: 5px;
  cursor: pointer;
  display: block;
  transition: opacity ease 0.25s;
  padding: 5px 10px 5px 0px;
}

.inputBox .preview {
  font-size: 0.875em;
  font-weight: 400;
  white-space: pre-wrap;
  word-wrap: break-word;
  width: 80%;
  position: relative;
  /* overflow-wrap: break-word; */
  overflow: hidden;
}

.inputBox label .edit-button:hover {
  opacity: 100%;
}

.inputBox label .edit-button.edit-button__active {
  opacity: 100%;
}

#assigneeInput {
  position: relative;
}

#list-items {
  width: 100%;
  max-height: 12.5rem;
  overflow-y: scroll;
  overflow-x: hidden;
  margin-top: 2rem;
  position: absolute;
  border: 1px solid #d4d4d4;
  border-bottom: none;
  border-top: none;
  z-index: 99;
  top: 50%;
  left: 0%;
  right: 0;
  border-radius: 5px;
  background-color: #fff;
  box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.2);
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 1rem 0.5rem;
  font-size: 1rem;
  border-bottom: 1px solid #d4d4d4;
  margin: 0;
  cursor: pointer;
}

#list-items:nth-last-child() {
  border-bottom: 0;
}

.list-item:hover {
  background-color: #ddd;
}

.unknownUsers-list {
  margin: 0.2rem;
  color: rgb(255, 92, 92);
  font-size: 0.75rem;
}

.suggested-users-title {
  text-align: left;
  padding-left: 5px;
}

.assignee-image {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  margin: 0 1rem;
}
/* Skills field */
/* Multi-select container styles */
.multi-select-container {
  position: relative;
  width: 100%;
}

.multi-select-button {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.5rem;
  width: 100%;
  border: 1px solid #666;
  border-radius: 5px;
  background: white;
  cursor: pointer;
  text-align: left;
}

.multi-select-button .placeholder {
  color: #666;
}

.selected-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  background: #f0f0f0;
  border-radius: 16px;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  margin-right: 4px;
}

.badge .text {
  margin-right: 4px;
}

.badge .remove {
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0 2px;
}

.dropdown-icon {
  margin-left: auto;
  width: 16px;
  height: 16px;
}

.popover {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.search-input {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-bottom: 1px solid #ddd;
  outline: none;
}

.options-list {
  max-height: 320px;
  padding: 4px;
  overflow-y: auto;
}

.option {
  color: #101828;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 4px;
  margin: 2px 0;
}

.option:hover {
  background-color: #f5f5f5;
}

.option.focused {
  background-color: #f0f0f0;
}

.popover .checkbox {
  width: 20px;
  height: 20px;
  border: none;
  position: relative;
}

.popover .checkbox.checked::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 12px;
  border: solid #4945ff;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}
.option-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Custom scrollbar */
.options-list::-webkit-scrollbar {
  width: 4px;
}

.options-list::-webkit-scrollbar-track {
  background: #f5f5f5;
}

.options-list::-webkit-scrollbar-thumb {
  background: #dedede;
  border-radius: 4px;
}

.options-list::-webkit-scrollbar-thumb:hover {
  background: #cdcdcd;
}
