.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.addtask-page {
  display: flex;
  width: 100%;
  overflow-x: hidden;
}

.addtask-page aside {
  flex-shrink: 0;
}

.addtask {
  display: flex;
  flex-direction: column;
  padding: 110px 96px;
  overflow: auto;
  scrollbar-width: none;
}

.addtask-form {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 980px;
  gap: 32px;
  margin-top: 48px;
  padding-bottom: 16px;
}

.addtask-col {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 440px;
  gap: 24px;
}

.addtask-divider,
.subtask-item-divider,
.divider {
  width: 1px;
}

.addtask-divider {
  background: #e6e9ef;
}

.subtask-item-divider {
  height: 18px;
  background: #d1d1d1;
}

.label {
  font-size: 20px;
  color: #2a3647;
}

.req {
  color: #ff3d3d;
  font-weight: 700;
  margin-left: 4px;
}

.addtask-input {
  font-size: 20px;
  padding: 12px 21px;
}

.addtask .input-error {
  border-color: #ff3d3d !important;
}

.addtask .error-msg {
  color: #ff3d3d;
  font-size: 12px;
  margin-top: 2px;
  visibility: hidden;
}

.addtask .custom-select.input-error .select-trigger {
  border-color: #ff3d3d;
}

.custom-select {
  position: relative;
  width: 100%;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  pointer-events: none;
}

.textarea {
  font-family: "Inter Variable", sans-serif;
  width: 100%;
  min-height: 120px;
  resize: vertical;
  box-sizing: border-box;
  border: 1px solid #d1d1d1;
  border-radius: 10px;
  padding: 18px 16px;
  font-size: 20px;
  color: #2a3647;
  background: #fff;
}

.input::placeholder,
.textarea::placeholder,
input::placeholder,
textarea::placeholder {
  color: #d1d1d1;
  opacity: 1;
}

.input:focus,
.textarea:focus {
  outline: none;
  border: 1px solid #29abe2;
}

.date-icon-right {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  opacity: 0.7;
  pointer-events: none;
}

.addtask .prio-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-bottom: 0;
}

.addtask .prio-buttons {
  display: flex;
  width: 100%;
  height: 56px;
  max-width: 440px;
  gap: 10px;
}

.addtask .prio-btn {
  font-family: "Inter Variable", sans-serif;
  flex: 1 1 0;
  min-width: 0;
  min-height: 48px;
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 10px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #2a3647;
  font-size: 20px;
  font-weight: 500;
  transition: 0.1s ease;
}

.addtask .prio-btn.is-active img {
  filter: brightness(0) invert(1);
}

.addtask .prio-btn:not(.is-active):hover {
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.addtask .prio-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  flex-shrink: 0;
}

.addtask .prio-icon path {
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.addtask .prio-btn:not(.is-active) .prio-icon {
  color: var(--prio);
}

.addtask .prio-btn.is-active {
  background: var(--prio);
  color: #fff;
  border-color: transparent;
  box-shadow: none;
  transform: none;
  transform: none;
}

.addtask .secondary-btn {
  height: 48px;
  font-family: "Inter Variable", sans-serif;
  display: flex;
  align-items: center;
  padding: 0px 24px;
  border-radius: 10px;
  gap: 8px;
  font-size: 21px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.1s ease;
  background: transparent;
  border: 1.5px solid var(--primary-color);
  color: var(--primary-color);
}

.addtask .secondary-btn:hover {
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.2);
  border: 1.5px solid var(--greeting-name-and-hover);
  border-color: var(--greeting-name-and-hover);
  color: var(--greeting-name-and-hover);
}

.addtask .secondary-btn svg {
  width: 25px;
  height: 32px;
  display: inline-block;
}

.addtask-actions button {
  white-space: nowrap;
}

.custom-select {
  position: relative;
  width: 100%;
}

.select-trigger {
  border: 1px solid #e6e8ee;
  border-radius: 10px;
  padding: 11px 14px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.select-trigger:focus-visible {
  outline: 2px solid #29abe2;
  outline-offset: 2px;
}

.custom-select.open .select-trigger {
  border-color: #29abe2;
}

.trigger-arrow {
  width: 24px;
  height: 24px;
  transition: transform 0.1s ease;
}

.custom-select .trigger-arrow {
  padding: 5px;
  border-radius: 50%;
}

.custom-select:hover .trigger-arrow {
  background: rgba(0, 0, 0, 0.06);
}

.custom-select.open .trigger-arrow {
  transform: rotate(180deg);
}

.select-dropdown {
  position: absolute;
  top: calc(100% + 0px);
  left: 0;
  gap: 2px;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  max-height: 250px;
  overflow-y: auto;
  padding: 8px;
  z-index: 10;
  display: none;
}

.custom-select.open .select-dropdown {
  display: flex;
  flex-direction: column;
}

.select-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.1s ease;
}

.trigger-text {
  font-size: 20px;
}

.select-option:hover {
  background: #f4f5f7;
}

.select-option.active {
  background: #2a3647;
  color: #ffffff;
}

.select-option.active span {
  color: #ffffff;
}

.select-option.active input {
  accent-color: white;
}

.select-option.active .avatar {
  border: 2px solid #ffffff;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
}

.assigned-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.assigned-badge {
  width: 42px;
  height: 42px;
  border: solid 2px white;
  border-radius: 50%;
  color: #ffffff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.assigned-badges .badge-count {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--user-icon);
  background-color: white;
  color: black;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0;
}

.select-option input {
  width: 16px;
  height: 16px;
}

.addtask-due-date-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.addtask-due-input-wrapper {
  position: relative;
  width: 100%;
}

.addtask-due-input {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 22px;
  box-sizing: border-box;
}

.addtask-due-input::placeholder {
  color: #d1d1d1;
}

.addtask-due-picker {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.addtask-due-picker-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 0;
}

.addtask-due-picker-btn:hover img {
  opacity: 1;
}

.addtask-due-feedback {
  color: #ff3d3d;
  font-size: 12px;
  visibility: hidden;
}

.subtask-input {
  position: relative;
}

.subtask-input input {
  padding: 12px 22px;
  font-size: 20px;
}

.subtask-actions {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.1s ease;
}

.subtask-action-icon {
  pointer-events: none;
}

.subtask-input:focus-within .subtask-actions {
  opacity: 1;
}

.subtask-icon {
  width: 24px;
  height: 24px;
  display: block;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  box-sizing: border-box;
}

.subtask-icon path {
  stroke: #2a3647;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.subtask-icon:hover {
  background: rgba(0, 0, 0, 0.06);
}

.divider {
  width: 1px;
  height: 18px;
  background: #d1d1d1;
  border: none;
}

.subtasks-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: -16px;
  height: 100%;
  max-height: 110px;
  overflow-y: auto;
}

.subtask-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 16px;
}

.subtask-item:hover {
  background: #eeeeee;
  border-radius: 10px;
}

.subtask-item.edit-mode {
  background: white;
  border-radius: 0;
}

.edit-mode {
  background: white;
  border-bottom: solid 1px rgba(0, 93, 255, 1);
}

.subtask-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  height: 24px;
}

.subtask-dot {
  font-size: 18px;
  line-height: 1;
}

.subtask-text {
  font-size: 16px;
  color: #2a3647;
}

.subtask-edit-input {
  font-family: "Inter Variable", sans-serif;
  width: 100%;
  padding: 0;
  border: none;
  outline: none;
  font-size: 16px;
  color: #2a3647;
  background: transparent;
}

.subtask-item-actions {
  display: none;
  align-items: center;
  gap: 4px;
}

.subtask-item:hover .subtask-item-actions {
  display: flex;
}

.subtask-item.edit-mode .subtask-item-actions {
  display: flex;
}

.subtask-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: 0.1s ease;
  background: transparent;
  padding: 0;
}

.subtask-btn:hover {
  background-color: var(--secondary-color);
  border-radius: 50%;
}

.subtask-item-divider {
  width: 1px;
  height: 18px;
  background: #d1d1d1;
  border: none;
}

.addtask-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 980px;
  margin-top: 16px;
  padding-top: 10px;
  margin-bottom: 96px;
}

.required-hint {
  font-size: 12px;
  color: #2a3647;
}

.addtask-actions {
  display: flex;
  gap: 14px;
}

.addtask-actions img {
  width: 25px;
  height: 32px;
}

.prio-row {
  margin-bottom: 6px;
}

.date-input {
  position: relative;
}

.task-toast {
  position: fixed;
  bottom: 50%;
  left: 50%;
  transform: translateX(-50%);
  width: 326px;
  max-width: calc(100% - 32px);
  height: 76px;
  background: #2a3647;
  color: white;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-size: 20px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
  z-index: 999;
}

.task-toast.show {
  transform: translateX(-50%);
  opacity: 1;
}

.task-toast img {
  width: 32px;
  height: 32px;
}
