.action-btn {
  font-family: "Inter Variable", sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  transition: 0.1s ease;
}

.action-btn:hover,
.action-btn:hover img {
  color: var(--greeting-name-and-hover);
  filter: invert(58%) sepia(82%) saturate(1968%) hue-rotate(168deg)
    brightness(96%) contrast(91%);
}

.badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid white;
  margin-left: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 400;
  color: white;
}

.badge-count {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--user-icon);
  margin-left: -8px;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 400;
  color: black;
}

.badge:first-child {
  margin-left: 0;
}

.badge-circle {
  width: 42px;
  height: 42px;
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badges {
  display: flex;
}

.task-badge {
  padding: 4px 12px;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  width: fit-content;
}

.card {
  background: white;
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.task-move-wrapper {
  position: relative;
}

.drag-and-drop-mobile-button {
  display: none;
  align-items: center;
  justify-content: center;
  border: solid 2px var(--primary-color);
  border-radius: 8px;
  transition: 0.1s ease-in-out;
}

.drag-and-drop-mobile-button:hover {
  filter: invert(61%) sepia(80%) saturate(2256%) hue-rotate(164deg)
    brightness(94%) contrast(91%);
}

.drag-and-drop-icon {
  width: 20px;
  height: 20px;
  filter: invert(19%) sepia(13%) saturate(2254%) hue-rotate(176deg)
    brightness(93%) contrast(92%);
}

.task-move-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  border-radius: 8px;
  background: white;
  box-shadow: var(--card-shadow);
  padding: 8px;
  display: none;
  z-index: 25;
}

.task-move-menu.open {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.task-move-option {
  width: 100%;
  text-align: left;
  font-family: "Inter Variable", sans-serif;
  font-weight: bold;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--primary-color);
}

.task-move-option:hover {
  color: var(--greeting-name-and-hover);
}

.task-move-option:disabled,
.task-move-option.is-current {
  color: var(--side-bar-privacy-legal);
  background: var(--secondary-color);
  cursor: default;
}

.is-dragging {
  transform: rotate(3deg);
}

.card-description {
  color: var(--side-bar-privacy-legal);
  font-size: 14px;
  margin: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.card-title {
  color: var(--primary-color);
  font-size: 16px;
  margin: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.category-badge {
  padding: 4px 24px;
  border-radius: 8px;
  color: white;
  font-size: 21px;
}

.close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.1s ease;
}

.close-btn:hover {
  background-color: var(--secondary-color);
}

.detail-assigned-section,
.detail-subtasks-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 7px 16px;
}

.detail-footer {
  display: flex;
  justify-content: flex-end;
  padding-right: 24px;
  gap: 8px;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  padding-right: 24px;
}

.detail-info-due-date {
  display: flex;
  gap: 25px;
  font-size: 20px;
}

.detail-info-priority {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 20px;
}

.detail-label {
  color: var(--primary-color);
  font-weight: 400;
}

.detail-subtasks-list {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
}

.detail-subtask-item {
  display: flex;
  align-items: center;
  font-size: 16px;
  gap: 12px;
  padding: 6px 16px;
  transition: 0.1s ease;
}

.detail-subtask-item:hover {
  background-color: var(--user-icon);
  border-radius: 8px;
}

.detail-subtask-item:hover .subtask-checkbox {
  background-color: var(--side-bar-privacy-legal);
  border-radius: 50%;
}

.detail-scroll-content {
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-divider {
  height: 24px;
  width: 1px;
  background-color: var(--user-icon);
}

.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  background-color: #ebedef;
  border: 1px dashed var(--side-bar-privacy-legal);
  border-radius: 12px;
  color: #a0a5ad;
  font-size: 16px;
}

.priority-badge-detail {
  display: flex;
  align-items: center;
  padding: 0px 18px;
}

.progress-bar {
  flex-grow: 1;
  height: 8px;
  background-color: #f4f4f4;
  border-radius: 4px;
  overflow: hidden;
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.progress-fill {
  height: 100%;
  background-color: #4589ff;
  border-radius: 4px;
}

.subtask-checkbox {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: 0.1s ease;
}

.subtask-count {
  font-size: 12px;
  color: black;
  white-space: nowrap;
}

.task-card-detail {
  display: flex;
  flex-direction: column;
  background: white;
  width: 525px;
  padding-top: 48px;
  padding-bottom: 48px;
  padding-left: 40px;
  padding-right: 22px;
  border-radius: 30px;
  max-height: 90vh;
  font-size: 20px;
  gap: 24px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.task-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  border: none;
  margin: 0;
  border-radius: 30px;
  box-shadow: var(--card-shadow);
  transform: translate(-50%, -50%);
}

.task-modal::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}

.task-modal[open] {
  animation: slideInRight 0.2s ease-out;
}

.task-modal.is-closing {
  animation: slideOutRight 0.2s ease-out forwards;
  pointer-events: none;
}

.technical-task {
  background-color: var(--technical-task);
}

.user-story {
  background-color: var(--user-storys);
}

@keyframes slideInRight {
  from {
    transform: translate(100%, -50%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
  to {
    transform: translate(100%, -50%);
    opacity: 0;
  }
}

@media (max-width: 1440px) {
  .drag-and-drop-mobile-button {
    display: flex;
  }
}

@media (max-width: 600px) {
  .task-card-detail {
    max-width: 396px;
    font-size: 16px;
    padding: 32px 24px;
    gap: 16px;
  }

  .detail-scroll-content {
    gap: 16px;
    overflow-x: hidden;
  }

  .category-badge {
    padding: 4px 16px;
  }

  .task-card-detail h1 {
    font-size: 36px;
  }

  .detail-info-due-date {
    font-size: 16px;
  }

  .detail-info-priority {
    font-size: 16px;
  }

  .priority-badge-detail img {
    height: 27px;
  }
}

@media (max-width: 440px) {
  .task-modal {
    overflow-x: hidden;
  }

  .task-card-detail {
    width: 90vw;
    max-width: none;
  }

  .detail-header {
    padding-right: 0;
  }
}
