.main-layout-container {
  display: flex;
  min-height: 100vh;
}

.add-task-container {
  padding-top: 96px;
  width: calc(100% - 232px);
  max-width: 1440px;
}

.title-positioning {
  padding: 110px 96px 48px 96px;
}

.content {
  display: flex;
  padding-left: 96px;
  gap: 48px;
}

.left-content {
  width: 440px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.title-section {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.description-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom:30px;
}

.due-date-section {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.seperator-content {
  background-color: #d1d1d1;
  width: 1px;
  height: 460px;
}

.right-content {
  width: 440px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.buttons-actions {
  display: flex;
  justify-content: end;
  margin-top: 130px;
  gap: 16px;
}

.required-star {
  color: #e60000;
}

.titel-input {
  height: 32px;
  border-radius: 10px;
  border: 1px solid #d1d1d1;
  font-family: "Inter", sans-serif;
  padding: 12px 21px;
  flex-direction: space-between;
  font-size: 20px;
}

.due-date-input {
  height: 32px;
  border-radius: 10px;
  border: 1px solid #d1d1d1;
  font-family: "Inter", sans-serif;
  padding: 12px 21px;
  flex-direction: space-between;
  font-size: 20px;
}

span {
  margin-bottom: 8px;
  font-weight: 400;
}

label {
  margin-bottom: 8px;
}

textarea {
  height: 120px;
  border-radius: 10px;
  border: 1px solid #d1d1d1;
  font-family: "Inter", sans-serif;
  padding: 12px 21px;
  font-size: 20px;
  resize: vertical;
}

input:focus {
  border-color: #29abe2;
  outline: none;
}

textarea:focus {
  border-color: #29abe2;
  outline: none;
}

.priority-section {
  display: flex;
  flex-direction: column;
  margin-top: 27px;
}

.priority-buttons-container {
  display: flex;
  gap: 16px;
}

.priority-btn {
  border-radius: 10px;
  width: 136px;
  height: 56px;
  border: 1px solid #d1d1d1;
  background-color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.priority-btn:hover{
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);

}

.prio-icon {
  width: 20px;
  height: 14px;
  display: inline-block;
  object-fit: contain;
}

.assigned-section {
  display: flex;
  flex-direction: column;
  margin-bottom:27px;
}

.category-section {
  display: flex;
  flex-direction: column;
}

.subtasks-section {
  display: flex;
  flex-direction: column;
}

.subtask-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.subtask-input-wrapper .subtask-input {
  flex: 1;
  height: 48px;
  border-radius: 10px;
  border: 1px solid #d1d1d1;
  font-family: "Inter", sans-serif;
  padding-left: 16px;
  padding-right: 80px;
  font-size: 16px;
  margin-bottom: 0;
}

.subtask-input-wrapper .subtask-input:focus {
  border-color: #29abe2;
  outline: none;
}

.subtask-actions {
  position: absolute;
  right: 12px;
  display: none;
  align-items: center;
  gap: 4px;
}

.subtask-actions.visible {
  display: flex;
}

.subtask-action-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.125s ease;
}

.subtask-action-icon:hover {
  opacity: 1;
}

.subtask-action-divider {
  width: 1px;
  height: 24px;
  background-color: #d1d1d1;
  margin: 0 4px;
}

/* Subtask List */
.subtask-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
  overflow-y: scroll;
  height: 65px;
  visibility: hidden;
}

.subtask-list::-webkit-scrollbar-button{
  display:none;
}


.subtask-item {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.125s ease;
}

.subtask-item:hover {
  background-color: #f0f0f0;
}

.subtask-item::before {
  content: "•";
  margin-right: 12px;
  font-size: 18px;
  color: #2a3647;
}

.subtask-item-text {
  flex: 1;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: #2a3647;
  margin-bottom: 0;
}

.subtask-item-actions {
  display: none;
  align-items: center;
  gap: 4px;
}

.subtask-item:hover .subtask-item-actions {
  display: flex;
}

.subtask-item-actions .subtask-edit-icon {
  width: 20px;
  height: 20px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.125s ease;
}

.subtask-item-actions .subtask-edit-icon:hover {
  opacity: 1;
}

.subtask-delete-icon {
  width: 20px;
  height: 20px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.125s ease;
}

.subtask-delete-icon:hover {
  opacity: 1;
}

.subtask-edit-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
  padding: 4px 0;
}

.subtask-edit-input {
  flex: 1;
  height: 36px;
  border: none;
  border-bottom: 1px solid #29abe2;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  padding: 0 8px;
  background: transparent;
  outline: none;
}

.subtask-edit-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.subtask-edit-icon {
  width: 20px;
  height: 20px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.125s ease;
}

.subtask-edit-icon:hover {
  opacity: 1;
}

.btn-create {
  display: flex;
  align-items: center;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-style: bold;
  font-size: 21px;
  color: white;
  white-space: nowrap;
  background-color: #2a3647;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  padding: 16px;
  gap: 4px;
  &:hover {
    background-color: #28abe2;
  }
}

.btn-create:disabled {
  background-color: #a0a0a0;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-clear {
  display: flex;
  align-items: center;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: #2a3647;
  white-space: nowrap;
  background-color: #f6f7f8;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid #2a3647;
  padding: 8px 16px;
  gap: 4px;
  &:hover {
    color: #28abe2;
    border-color:#28abe2;
    font-weight: 500;
  }
}

.priority-btn.active[data-priority="urgent"] {
  background-color: #ff3d00;
  color: white;
}

.priority-btn.active[data-priority="urgent"] .prio-icon {
  filter: brightness(0) invert(1);
}

.priority-btn.active[data-priority="medium"] {
  background-color: #ffa800;
  color: white;
}

.priority-btn.active[data-priority="medium"] .prio-icon {
  filter: brightness(0) invert(1);
}

.priority-btn.active[data-priority="low"] {
  background-color: #7ae229;
  color: white;
}

.priority-btn.active[data-priority="low"] .prio-icon {
  filter: brightness(0) invert(1);
}

.priority-btn:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-footer-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 96px 48px 96px;
  max-width: 1052px;
}

.required-note {
  font-size: 14px;
  color: #666;
}

.success-message {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #2a3647;
  color: white;
  padding: 16px 24px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: bottom 0.125s ease-in-out;
  z-index: 1000;
}

.success-message span {
  margin: 0;
}

.success-message.show {
  bottom: calc(50vh);
}

.success-message img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.custom-dropdown {
  position: relative;
  width: 100%;
}

.dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  border-radius: 10px;
  border: 1px solid #d1d1d1;
  background-color: #fff;
  cursor: pointer;
  padding: 0 12px 0 16px;
}

.dropdown-header:focus-within {
  border-color: #29abe2;
}

.dropdown-search {
  flex: 1;
  border: none;
  outline: none;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  background: transparent;
}

.dropdown-search::placeholder {
  color: #d1d1d1;
}

.dropdown-arrow {
  width: 24px;
  height: 24px;
  transition: transform 0.125s ease;
}

.dropdown-arrow.open {
  transform: rotate(180deg);
}

.dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 100;
  transition: max-height 0.125s ease;
}

.dropdown-list.open {
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid #d1d1d1;
  border-top: none;
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  cursor: pointer;
  transition: background-color 0.125s ease;
}

.dropdown-item:hover {
  background-color: #f0f0f0;
}

.dropdown-item.no-hover:hover {
  background-color: transparent;
  cursor: default;
}

.dropdown-item.selected {
  background-color: #2a3647;
  color: #fff;
}

.dropdown-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dropdown-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
}

.dropdown-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid #2a3647;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.dropdown-item.selected .dropdown-checkbox {
  background: #2a3647;
  border-color: #fff;
}

.dropdown-checkbox img {
  width: 12px;
  height: 12px;
  filter: brightness(0) invert(1);
  display: none;
}

.dropdown-item.selected .dropdown-checkbox img {
  display: block;
}

.selected-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top:10px;
}

.contact-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
}

#categoryDropdownPage {
  position: relative;
  width: 100%;
}

#categoryDropdownPage .dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  border-radius: 10px;
  border: 1px solid #d1d1d1;
  background-color: #fff;
  cursor: pointer;
  padding: 0 12px 0 16px;
}

#categoryDropdownPage .dropdown-header:hover {
  border-color: #29abe2;
}

.dropdown-selected-text {
  flex: 1;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: #d1d1d1;
  display: flex;
  align-items: center;
  line-height: 48px;
  margin-bottom: 0;
}

.dropdown-selected-text.has-value {
  color: #2a3647;
}

#categoryDropdownPage .dropdown-arrow {
  width: 24px;
  height: 24px;
  transition: transform 0.125s ease;
}

#categoryDropdownPage .dropdown-arrow.open {
  transform: rotate(180deg);
}

#pageCategoryList {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 100;
  transition: max-height 0.125s ease;
}

#pageCategoryList.open {
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid #d1d1d1;
  border-top: none;
}

#pageCategoryList .dropdown-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.125s ease;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: #2a3647;
}

#pageCategoryList .dropdown-item span {
  margin-bottom: 0;
}

#pageCategoryList .dropdown-item:hover {
  background-color: #f0f0f0;
}

#pageCategoryList .dropdown-item.selected {
  background-color: #f0f0f0;
}
.required-note-form {
  display: none;
  font-size: 14px;
  color: #666;
}
.required-star-form {
  color: #e60000;
}
