.workTaskList::-webkit-scrollbar {
  width: 5px;
}
.workTaskList::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}
.workTaskList::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.secondBox {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: 20px;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  color: white;
  padding: 20px;
  margin-top: 30px;
}

.secondBoxHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 5px 0;
}

.secondBoxHeaderleft h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

.secondBoxHeaderleft p {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.newTaskbtn {
  background: #ffffff;
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 10px 20px;
  transition: all 0.3s ease;
}

.newTaskbtn:hover {
  background: #f0f0f014;
  transform: translateY(-2px);
  color: white;
}

/*===========secondBoxMain============*/
.secondBoxMainFrame {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 20px;
  padding: 20px 0 5px;
}

.secondBoxMain {
  flex: 1;
  height: 630px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.027);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

.workTaskList {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 4px;
}

/*==========secondBoxMainHeader==========*/
.secondBoxMainHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.secondBoxS {
  font-size: 15px;
  font-weight: 700;
  color: white;
}

/*==========secondBoxMainHeaderRight============*/
.secondBoxMainHeaderRight {
  min-width: 28px;
  height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);

  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

/*===========task card============*/
.workTaskCard {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 14px 14px 12px;
  margin: 1px 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.workTaskCard:hover {
  transform: scale(1.01);
  border-color: rgba(255, 255, 255, 0.24);
}

.workTaskCardTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.workTaskTitle {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  color: #f8fafc;
  margin: 0;
}

.workTaskMetaRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.workTaskUser {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.workTaskAvatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
}

.workTaskUserName {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workTaskStatusBtn {
  min-width: 100px;
  height: 30px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.workTaskDate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: auto;
  max-width: max-content;
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  margin-top: 0;
}

.deleteTaskBtn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  font-size: 12px;
  padding: 2px;
  transition: color 0.2s;
}

.deleteTaskBtn:hover {
  color: #ff4d4d;
}

/*===========add task============*/
.addTaskBtn {
  border: 1px dashed rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s;
  color: rgba(255, 255, 255, 0.6);
  padding: 10px 5px;
  border-radius: 20px;
}

.addTaskBtn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
}

/* responsive */
@media (max-width: 1100px) {
  .secondBoxMainFrame {
    flex-direction: column;
  }

  .secondBoxMain {
    min-height: auto;
  }
}

/* =========================
   NEW TASK POPUP
========================= */
.newTaskPopupFrame {
  position: fixed;
  inset: 0;
  background: rgba(7, 12, 16, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}

.newTaskPopupBox {
  width: min(760px, 94vw);
  background: var(--app-surface-color, #286263);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  color: white;
  overflow: hidden;
}

.newTaskPopupHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 24px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.newTaskPopupHeader h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.newTaskPopupHeader p {
  margin: 8px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.newTaskPopupClose {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.newTaskPopupBody {
  padding: 22px 24px;
}

.newTaskFormGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.newTaskField {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.newTaskField.full {
  grid-column: 1 / -1;
}

.newTaskLabel {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.newTaskInput,
.newTaskSelect,
.newTaskTextarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  color: white;
  padding: 12px 14px;
  outline: none;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  font-size: 14px;
  box-sizing: border-box;
}

.newTaskInput::placeholder,
.newTaskTextarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.newTaskTextarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
}

.newTaskSelect option {
  color: black;
}

.newTaskInput:focus,
.newTaskSelect:focus,
.newTaskTextarea:focus {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

.newTaskPreview {
  margin-top: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.newTaskPreviewLabel {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
}

.newTaskPreviewUser {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.newTaskPreviewAvatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.newTaskPopupFooter {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.newTaskCancelBtn,
.newTaskCreateBtn {
  min-width: 120px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: white;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.newTaskCancelBtn {
  background: rgba(255, 255, 255, 0.06);
}

.newTaskCreateBtn {
  background: rgba(255, 255, 255, 0.14);
}

.newTaskPopupClose:hover,
.newTaskCancelBtn:hover,
.newTaskCreateBtn:hover {
  background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 700px) {
  .newTaskPopupHeader,
  .newTaskPopupBody,
  .newTaskPopupFooter {
    padding-left: 16px;
    padding-right: 16px;
  }

  .newTaskFormGrid {
    grid-template-columns: 1fr;
  }

  .newTaskPopupFooter {
    flex-direction: column;
  }

  .newTaskCancelBtn,
  .newTaskCreateBtn {
    width: 100%;
  }
}

.newTaskAssigneeRow {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.newTaskAssigneeRow .newTaskSelect {
  flex: 1;
}

.newTaskAddMemberBtn {
  min-width: 84px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.newTaskAddMemberBtn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.newTaskPreviewUsers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.newTaskPreviewUser {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.newTaskPreviewAvatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.newTaskPreviewName {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
}

.newTaskPreviewRemove {
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  padding: 0;
}

.newTaskPreviewRemove:hover {
  background: rgba(255, 255, 255, 0.2);
}

.secondBoxHeaderright {
  display: flex;
  align-items: center;
  gap: 12px;
}

.taskViewSwitch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.taskViewBtn {
  min-width: 72px;
  height: 38px;
  border: none;
  border-radius: 10px;
  padding: 0 14px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.taskViewBtn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.taskViewBtn.active {
  background: rgba(255, 255, 255, 0.16);
  color: white;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* list view */
.taskListViewWrap {
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);

  display: flex;
  flex-direction: column;
  max-height: 640px;
  min-height: 0;
}

.taskListScrollBody {
  overflow-y: auto;
  min-height: 0;
}

.taskListViewHeader,
.taskListRow {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) 1fr 1.1fr 1.1fr 72px;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
}

.taskListViewHeader {
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.taskListRow {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.2s ease;
}

.taskListRow:last-child {
  border-bottom: none;
}

.taskListRow:hover {
  background: rgba(255, 255, 255, 0.045);
}

.taskListCell {
  min-width: 0;
}

.taskListTitleCell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.taskListTitle {
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.35;
}

.taskListDescription {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.58);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.taskListStatusBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 102px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}

.taskListStatusBadge.planned {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.2);
}

.taskListStatusBadge.in-progress {
  background: rgba(96, 165, 250, 0.14);
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.22);
}

.taskListStatusBadge.done {
  background: rgba(74, 222, 128, 0.14);
  color: #86efac;
  border-color: rgba(74, 222, 128, 0.22);
}

.taskListAssignee {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 500;
}

.taskListAvatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
}

.taskListDate {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
}

.taskListMuted {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
}

.taskListActionCell {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 1100px) {
  .secondBoxHeaderright {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .taskListViewHeader {
    display: none;
  }

  .taskListRow {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }

  .taskListActionCell {
    justify-content: flex-start;
  }
}
