#changeToSubtaskModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2200;
  align-items: center;
  justify-content: center;
}
#changeToSubtaskModal.show {
  display: flex;
}

#changeToSubtaskModal .modal-dialog {
  width: 90%;
  max-width: 480px;
}

#changeToSubtaskModal .modal-content {
  background: var(--white, #fff);
  border-radius: var(--border-radius, 12px);
  padding: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

#changeToSubtaskModal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

#changeToSubtaskModal .modal-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-800, #1f2937);
}

#changeToSubtaskModal .close-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border: none;
  background: var(--gray-100, #f3f4f6);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600, #4b5563);
}
#changeToSubtaskModal .close-btn:hover {
  background: var(--gray-200, #e5e7eb);
}

#changeToSubtaskModal .change-to-subtask-message {
  margin: 0 0 16px 0;
  color: var(--gray-700, #374151);
  font-size: 15px;
}

#changeToSubtaskModal .change-to-subtask-list-wrap {
  margin-bottom: 20px;
}

#changeToSubtaskModal .change-to-subtask-select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid var(--gray-300, #d1d5db);
  border-radius: 8px;
  background: #fff;
  color: var(--gray-800, #1f2937);
}

#changeToSubtaskModal .change-to-subtask-empty {
  margin: 8px 0 0 0;
  color: var(--gray-500, #6b7280);
  font-size: 14px;
}

#changeToSubtaskModal .modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

#changeToSubtaskModal .modal-actions .btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
}
#changeToSubtaskModal .modal-actions .btn-secondary {
  background: var(--gray-100, #f3f4f6);
  color: var(--gray-700, #374151);
}
#changeToSubtaskModal .modal-actions .btn-secondary:hover {
  background: var(--gray-200, #e5e7eb);
}
#changeToSubtaskModal .modal-actions .btn-primary {
  background: var(--primary-color, #ed2047);
  color: #fff;
}
#changeToSubtaskModal .modal-actions .btn-primary:hover:not(:disabled) {
  opacity: 0.9;
}
#changeToSubtaskModal .modal-actions .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
