main {
  width: 100% !important;
}

body::-webkit-scrollbar {
  display: none;
}

.body-addTask {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

#addtask-content {
  height: 100vh;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  height: calc(100vh - 140px);
}

#addtask-content * {
  box-sizing: border-box;
}

#addtask-content .form-add-task {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

#addtask-content .select-wrapper {
  position: relative;
}

#addtask-content .underline-select {
  -webkit-appearance: none;
  outline: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

#addtask-content .underline-select:hover {
  border-bottom: #4589ff solid 1px;
}

#addtask-content .underline-select:focus {
  border: none;
  border-bottom: solid #4589ff 1px;
}

#addtask-content .select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  pointer-events: none;
  transition: transform 0.3s ease;
}

#addtask-content .underline-select option {
  background-color: white;
  color: #000;
  padding: 16px;
  font-size: 14px;
  border: none;
  border-radius: 15px;
}

#addtask-content .underline-select option:hover,
#addtask-content .underline-select option:focus,
#addtask-content .underline-select option:active,
#addtask-content .underline-select option:checked {
  background: #4589ff !important;
  color: white !important;
  border-radius: 15px;
}

/* Für Firefox */
#addtask-content .underline-select:-moz-focusring {
  color: transparent;
  text-shadow: 0 0 0 #000;
  border-radius: 15px;

}

/* Für Chrome/Safari */
#addtask-content .underline-select::-ms-expand {
  display: none;
  border-radius: 15px;

}

#addtask-content .underline-select:focus + .select-arrow {
  transform: translateY(-50%) rotate(90deg);
}

#addtask-content .form-group-addTask {
  margin-bottom: 15px;
}
.cursor-pointer:hover {
  cursor: pointer;
}

.new-task-btn {
  position: relative;
}
.create-new-task {
  position: absolute;
  right: 4px;
  bottom: 5px;
  background-color: white;
  border: none;
}

.create-new-task img {
  width: 16px;
  padding: 2px;
}

.create-new-task img:hover {
  background-color: lightblue;
  border-radius: 50%;
  cursor: pointer;
}

.task-btn-div {
  position: absolute;
  right: 5px;
  bottom: 10px;
}

.task-btn-div img {
  width: 16px;
  padding: 2px;
  filter: invert(52%) sepia(47%) saturate(4550%) hue-rotate(202deg)
    brightness(100%) contrast(104%);
}

.task-btn-div img:hover {
  cursor: pointer;
  border-radius: 50%;
  background-color: rgb(100, 215, 250);
}

.d-none {
  display: none !important;
}

.filterCheckButton {
  filter: invert(52%) sepia(47%) saturate(4550%) hue-rotate(202deg) brightness(100%) contrast(104%);
}

.margin-8px {
  margin: 12px 0;
}

.task-btn-div button {
  border: none;
  background-color: white;
  display: flex;
}

#addtask-content .underline-addTask {
  width: 100%;
  padding: 10px 10px;
  font-size: 14px;
  border: none;
  border-bottom: solid #cacaca 1px;
}

#addtask-content .underline-addTask::placeholder {
  color: #cacaca;
  font-size: 16px;
  vertical-align: middle;
}

#addtask-content .input-addTask {
  width: 100%;
  padding: 10px 10px;
  font-size: 14px;
  border-radius: 8px;
}

#subtask-close-and-add{
  display: flex;
  align-items: center;
}

#addtask-content .input-addTask::placeholder {
  color: #cacaca;
  font-size: 14px;
  vertical-align: center;
}
#addtask-content textarea {
  resize: none;
}

.only-bottom-border{
  border-top: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
}

.underline-blue:hover{
  border-color:#0056b3 !important;
}

#addtask-content label {
  font-size: 12px;
  color: #555;
  margin-bottom: 5px;
  display: block;
}

#addtask-content .priority-addTask {
  display: flex;
  flex-direction: column;
  margin-top: 5px;
}

#addtask-content .priority-btn-addTask {
  margin: 4px;
  height: 24px;
  min-width: 120px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
}

#addtask-content .urgent-addTask {
  background-color: white;
  border: 1px solid rgb(194, 194, 194) !important;
}

#addtask-content .urgent-addTask:hover {
  box-shadow: 0px 2px red;
  transition: 0.3s;
  transform: translateY(2px);
  border-bottom: 1px solid red !important;
}

#addtask-content .medium-addTask {
  background-color: white;
  border: 1px solid rgb(194, 194, 194) !important;
}

#addtask-content .medium-addTask:hover {
  box-shadow: 0px 2px #ffcc00;
  transition: 0.3s;
  transform: translateY(2px);
  border-bottom: 1px solid #ffcc00 !important;
}

#addtask-content .medium-prio-icon {
  filter: invert(59%) sepia(19%) saturate(6235%) hue-rotate(0deg)
    brightness(104%) contrast(102%);
}

#addtask-content .low-addTask {
  background-color: white;
  border: 1px solid rgb(194, 194, 194) !important;
}

#addtask-content .low-addTask:hover {
  box-shadow: 0px 2px green;
  transition: 0.3s;
  transform: translateY(2px);
  border-bottom: 1px solid green !important;
}

#addtask-content .buttons-row {
  display: flex;
  flex-direction: row;
}

#addtask-content .center-button {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 16px 20px;
  gap: 10px;
}

#addtask-content .center-button img {
  width: 16px;
}

#addtask-content .priority-btn-addTask:hover {
  opacity: 0 0.8;
}

#addtask-content .form-actions-addTask {
  display: flex;
  position: static;
  width: 100%;
  justify-content: center;
  gap: 8px;
  align-items: center;
}

#addtask-content .clear-btn-addTask {
  display: flex;
  background-color: transparent;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px 15px;
  font-size: 14px;
  cursor: pointer;
  align-items: center;
}

#addtask-content .clear-btn-addTask img {
  width: 18px;
  padding-left: 8px;
}

#addtask-content .clear-btn-addTask:hover {
  border-color: #007bff;
  box-shadow: 1px 1px #007bff;
  color: #007bff;
  transition: 0.3s;
  transform: translateY(2px);
}

#addtask-content .submit-btn-addTask {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  background-color: #007bff;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
}

#addtask-content .submit-btn-addTask img {
  width: 20px;
  padding-left: 8px;
}

#addtask-content .submit-btn-addTask:hover {
  background-color: #0056b3;
  transition: 0.3s;
  transform: translateY(2px);
}

#addtask-content .add-subtask-addTask {
  background-color: transparent;
  border: 1px solid #ccc;
  padding: 5px;
  border-radius: 50%;
  cursor: pointer;
  margin-left: 5px;
}

/*add Task Sidebar*/

.close-btn-addTask {
  height: 38px !important;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #007bff;
  height: 32px;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
}

.close-btn-addTask:hover {
  background-color: #0056b3;
  transition: 0.3s;
  transform: translateY(2px);
}

.add-task-sb {
  display: flex;
  position: fixed;
  right: 0px;
  width: 340px;
  justify-content: space-between;
  z-index: 1001;
  height: calc(100vh - 44px) !important;
  border: solid #cacaca 2px;
  border-radius: 8px 0 0 8px !important;
}

.add-task-sb-headline {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
}

.add-task-sb-close-icon {
  position: absolute;
  right: 16px;
  filter: invert(52%) sepia(47%) saturate(4550%) hue-rotate(202deg)
    brightness(100%) contrast(104%);
}

.container-addTask-sb {
  border-top-left-radius: 16px !important;
}

.hamburger-menu {
  display: none !important;
}

.scroll-input {
  overflow: visible;
  width: 440px;
}

.prio1-color {
  background-color: red !important;
  color: white;
  border-bottom-color: black !important;
}

.prio2-color {
  background-color: #ffcc00 !important;
  color: white;
  border-bottom-color: black !important;
}

.prio3-color {
  background-color: green !important;
  color: white;
  border-bottom-color: black !important;
}

.priotity-btn-filter1 {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(2375%)
    hue-rotate(297deg) brightness(100%) contrast(100%);
}

.priotity-btn-filter2 {
  filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(0%)
    hue-rotate(317deg) brightness(108%) contrast(101%) !important;
}

.priotity-btn-filter3 {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(2375%)
    hue-rotate(297deg) brightness(100%) contrast(100%);
}

.subtasks-icons {
  position: absolute;
  right: 0;
}

.selected-contacts {
  display: flex;
  flex-direction: row;
  margin-top: 8px;
}

.contact-initials {
  height: 48px;
  width: 48px;
  /* background-color: #4589ff; */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 8px;
  color: white;
}

.initials-position {
  margin-right: -12px;
}

#subtasks{
  display:flex;
  align-items: center;
}

/* Neue Media Query für Bildschirme bis 1024px */
@media (max-width: 1024px) {
  * {
    box-sizing: border-box;
  }

  header,
  .logo {
    box-sizing: unset !important;
  }

  #addtask-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    /* position: relative; */
    /* padding-bottom: 100px; */
    height: auto;
  }

  #addtask-content .form-add-task {
    margin-bottom: 60px;
  }

  #addtask-content .form-actions-addTask {
    position: static;
    width: 100%;
    margin-top: 20px;
    justify-content: center;
    gap: 10px;
    bottom: 20px;
  }

  .scroll-input {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 20px;
  }
}

@media (min-width: 1440px) {
  .form-actions-addTask {
    left: 1150px;
  }
}

#addtask-content .custom-select-wrapper {
  position: relative;
  width: 100%;
}

#addtask-content .custom-select {
  cursor: pointer;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  background: white;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

#addtask-content .custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
    margin-top: 4px;
    border: 1px solid #ccc;
    max-height: 300px;
    overflow-y: auto;
    animation: slideDown 0.3s ease-out;
}

#addtask-content .custom-select-dropdown::-webkit-scrollbar {
  width: 6px;
}

#addtask-content .custom-select-dropdown::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

#addtask-content .custom-select-dropdown::-webkit-scrollbar-thumb {
  background: #4589FF;
  border-radius: 3px;
}

#addtask-content .custom-select-dropdown .option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.custom-select-dropdown .option:hover {
    background-color: #d2e3ff;
}

.custom-select-dropdown .option input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    margin-left: 8px;
    appearance: none;
    border: 2px solid #4589FF;
    border-radius: 3px;
    position: relative;
    background-color: transparent;
    transition: all 0.2s ease;
    pointer-events: none;
}

.custom-select-dropdown .option:hover input[type="checkbox"]:not(:checked) {
    border-color: #4589FF;
    background-color: rgba(69, 137, 255, 0.1);
}

.custom-select-dropdown .option input[type="checkbox"]:checked {
    background-color: transparent;
    border-color: #4589FF;
}

.custom-select-dropdown .option input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 8px;
    border: solid #4589FF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    left: 4px;
    top: 1px;
}

.li-elements-overlayTask {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center;
}

.li-elements-overlayTask button {
  background-color: white !important;
  border: none;
}

.li-elements-overlayTask button:hover {
  cursor: pointer;
  transition: 0.3ms;
  transform: translateY(2px);
}

.li-elements-overlayTask img {
  width: 12px !important;
}

.added-subtasks {
  margin-top: 0;
  margin-bottom: 0;
  max-height: 100px;
  overflow-y: auto;
  padding-right: 8px;
}

.added-subtasks::-webkit-scrollbar {
  width: 6px;
}

.added-subtasks::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.added-subtasks::-webkit-scrollbar-thumb {
  background: #4589FF;
  border-radius: 3px;
}

.subtask-error-add-task {
  border: solid black 1px;
  border-radius: 8px;
  display:none;
  justify-content: center;
}


@media (max-width: 450px) {
  .body-addTask {
    width: 100%;
  }

  .priority-btn-addTask {
    font-size: 12px !important;
    min-width: 25% !important;
  }

  .center-button {
    gap: 4px !important;
    padding: 8px 12px !important;
  }
}

.option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
}

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

.option input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}